-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
50 lines (45 loc) · 1.65 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
from subprocess import check_call
import sys
from setuptools import setup
if sys.argv[-1] in ('build', 'publish'):
check_call(
'rst_include include -s ./_README.rst -t ./README.rst', shell=True)
check_call('python setup.py sdist bdist_wheel', shell=True)
if sys.argv[-1] == 'publish':
check_call('twine upload dist/*', shell=True)
sys.exit()
tests_require = [
'pytest',
]
setup(
name='anticipate',
packages=['anticipate'],
package_data={'': ['LICENSE']},
package_dir={'anticipate': 'anticipate'},
version=open('VERSION.txt').read().strip(),
author='Mike Thornton',
author_email='six8@devdetails.com',
url='http://github.com/six8/anticipate',
download_url='http://github.com/six8/anticipate',
keywords=['packaging'],
license='BSD',
description='A type checking and adapting library',
classifiers=[
"Programming Language :: Python",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Software Development :: Libraries :: Python Modules",
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
],
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst',
tests_require=tests_require,
extras_require=dict(test=tests_require),
setup_requires=['pytest-runner'] if {'pytest', 'test'}.intersection(sys.argv) else [],
)