-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
94 lines (65 loc) · 2.48 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import ast
from codecs import open
from os import path
import re
from setuptools import setup, find_packages
cwd = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(cwd, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
_version_re = re.compile(r'VERSION\s+=\s+(.*)')
with open('taskhawk/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(f.read().decode('utf-8')).group(1)))
tests_require = [
'pytest', 'flake8', 'pytest-env', 'ipdb'
]
setup(
name='taskhawk',
version=version,
description='Taskhawk Python Library',
long_description=long_description,
url='https://github.com/Automatic/taskhawk-python',
author='Automatic Labs',
license='Apache Software License (Apache License 2.0)',
maintainer='Aniruddha Maru',
maintainer_email='[email protected]',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Natural Language :: English',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: Apache Software License',
],
python_requires='>=3.6',
keywords='python taskhawk',
packages=find_packages(exclude=['contrib', 'docs', 'tests', 'tests.*']),
# List run-time dependencies here. These will be installed by pip when
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=['funcy', 'retrying', 'boto3', 'raven>=6.4.0'],
tests_require=tests_require,
setup_requires=[
'pytest-runner'
],
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
extras_require={
'dev': ['flake8', 'Sphinx'],
'test': tests_require,
'publish': ['bumpversion', 'twine'],
},
include_package_data=True,
)