forked from maroux/hedwig-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
97 lines (67 loc) · 2.67 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
95
96
97
"""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('hedwig/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(f.read().decode('utf-8')).group(1)))
tests_require = [
'pytest', 'flake8', 'mypy', 'pytest-env', 'ipdb', 'factory-boy', 'coverage', 'coveralls', 'pytest-cov'
]
setup(
name='authedwig',
version=version,
description='Hedwig Python Library',
long_description=long_description,
url='https://github.com/Automatic/hedwig-python',
author='Automatic Labs',
license='Apache Software License (Apache License 2.0)',
maintainer='Aniruddha Maru',
maintainer_email='aniruddhamaru@gmail.com',
# 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 authedwig hedwig',
# https://mypy.readthedocs.io/en/latest/installed_packages.html
package_data={'hedwig': ['py.typed']},
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', 'jsonpointer', 'jsonschema'],
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>=1.7.2'],
'test': tests_require,
'publish': ['bumpversion', 'twine'],
},
include_package_data=True,
)