-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
61 lines (54 loc) · 1.7 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
import re
import ast
import sys
from setuptools import setup
from codecs import open
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('iamine/__init__.py', 'r', 'utf-8') as f:
version = str(ast.literal_eval(_version_re.search(f.read()).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()
if sys.version_info <= (3,):
sys.stderr.write('"iamine" requires a Python version greater than 3.3.')
sys.exit(1)
install_requires = [
'aiohttp>=0.13.1,<0.21.0',
'schema>=0.4.0,<0.6.0',
'docopt>=0.6.0,<0.7.0',
]
if sys.version_info <= (3,4):
install_requires.append('asyncio')
setup(
name = 'iamine',
version = version,
author='Jacob M. Johnson',
author_email='[email protected]',
url='https://github.com/jjjake/iamine',
license='AGPL 3',
description='Concurrently retrieve metadata from Archive.org items.',
long_description=readme + '\n\n' + history,
packages=['iamine'],
install_requires = install_requires,
entry_points = {
'internetarchive.plugins': [
'Miner = iamine.core:Miner',
'mine_items = iamine.api:mine_items',
],
'internetarchive.cli.plugins': [
'ia_mine = iamine.__main__',
],
'console_scripts': [
'ia-mine = iamine.__main__:main',
],
},
classifiers=[
'Development Status :: 1 - Planning',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Programming Language :: Python :: 3',
],
)