forked from jjjake/internetarchive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (52 loc) · 1.59 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
from setuptools import setup
import sys
from codecs import open
import re
import ast
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('internetarchive/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(
name='internetarchive',
version=version,
url='https://github.com/jjjake/internetarchive',
license='AGPL 3',
author='Jacob M. Johnson',
author_email='[email protected]',
description='A python interface to archive.org.',
long_description=readme,
include_package_data=True,
zip_safe=False,
packages=[
'internetarchive',
'internetarchive.cli',
],
entry_points={
'console_scripts': [
'ia = internetarchive.cli.ia:main',
],
},
install_requires=[
'requests>=2.9.1,<3.0.0',
'jsonpatch>=0.4',
'docopt>=0.6.0,<0.7.0',
'clint>=0.4.0,<0.6.0',
'six>=1.0.0,<2.0.0',
'schema>=0.4.0,<0.6.0',
'backports.csv',
] + (['total-ordering'] if sys.version_info < (2, 7) else []),
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
)
)