-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathsetup.py
executable file
·62 lines (58 loc) · 1.77 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
62
#!/usr/bin/env python
from setuptools import setup
import re
import os
def get_version():
fn = os.path.join(os.path.dirname(__file__), "autopager", "__init__.py")
with open(fn) as f:
return re.findall("__version__ = '([\d\.\w]+)'", f.read())[0]
setup(
name='autopager',
version=get_version(),
author='Mikhail Korobov',
author_email='[email protected]',
license='MIT license',
long_description=open('README.rst').read() + "\n\n" + open('CHANGES.rst').read(),
description="Detect and classify pagination links on web pages",
url='https://github.com/TeamHG-Memex/autopager',
zip_safe=False,
packages=['autopager'],
install_requires=[
"six",
"w3lib >= 1.13.0",
"parsel >= 1.0.1",
"tldextract",
"docopt",
"sklearn-crfsuite >= 0.3.3",
],
package_data={
'autopager': [
'autopager.crf',
# 'data/*.csv',
# 'data/html/*.html'
],
},
# extras_require={
# 'with-deps': [
# # 'scikit-learn >= 0.17',
# # 'scipy',
# 'sklearn-crfsuite >= 0.3.1',
# ],
# },
entry_points={
'console_scripts': ['autopager = autopager.__main__:main']
},
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)