-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
68 lines (56 loc) · 1.42 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
63
64
65
66
67
68
#!/usr/bin/env python3
import sys
import os
from setuptools import setup, find_packages
setup_requires = ['setuptools_scm']
args = frozenset(sys.argv)
is_test = {'pytest', 'test'} & args
is_sphinx = 'build_sphinx' in args
is_flake8 = 'flake8' in args
docs_requires = (
'sphinx-rtd-theme',
'sphinxcontrib-asyncio',
'Sphinx~=1.4'
)
if is_test:
setup_requires += (
'pytest-runner~=2.9',
'pytest~=3.0'
)
if is_sphinx:
setup_requires += docs_requires
if is_flake8:
setup_requires += (
'flake8~=3.7',
)
setup(
name="aiogithub",
use_scm_version={
'write_to': os.path.join('aiogithub', 'version.py')
},
packages=find_packages(exclude=['tests*']),
install_requires=[
'aiohttp~=3.0',
'async-timeout~=3.0',
'LinkHeader~=0.4',
'uritemplate~=3.0',
'python-dateutil~=2.5'
],
include_package_data=True,
python_requires='~=3.5',
setup_requires=setup_requires,
tests_require=['pytest-asyncio~=0.10.0'],
extras_require={
'docs': docs_requires,
},
author="Reupen Shah",
description="asyncio-based GitHub API client",
license="BSD",
keywords="github api client asyncio",
url="https://github.com/reupen/aiogithub",
classifiers=[
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Development Status :: 2 - Pre-Alpha'
]
)