-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (51 loc) · 1.63 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
def long_description():
def read_markdown(file):
try:
from pypandoc import convert
return convert(file, 'rst')
except (ImportError, OSError):
with open(file) as readme:
return readme.read()
readme = read_markdown('README.md')
with open('HISTORY.rst') as history_file:
history = history_file.read()
return '\n\n'.join((readme, history))
requirements = [
'requests',
'lxml',
'cssselect'
]
setup_requirements = [
# TODO(nuncjo): put setup requirements (distutils extensions, etc.) here
]
test_requirements = [
# TODO: put package test requirements here
]
setup(
name='delver',
version='0.1.6',
description="Modern user friendly web automation and scraping library.",
long_description=long_description(),
author="Nuncjo",
author_email='zoreander@gmail.com',
url='https://github.com/nuncjo/delver',
packages=find_packages(include=['delver']),
include_package_data=True,
install_requires=requirements,
license="MIT license",
zip_safe=False,
keywords='delver, web automation, spider, scraper, mechanize, scrapy, robobrowser',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=test_requirements,
setup_requires=setup_requirements,
)