forked from ISEAGE-ISU/flag-bearer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·79 lines (63 loc) · 1.74 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
#!/usr/bin/env python
import os
import re
from setuptools import setup, find_packages
from flag_bearer import __version__
ROOT = os.path.dirname(__file__)
def parse_requirements(filename):
requirements = []
for line in open(filename, 'r').read().split('\n'):
# Skip comments
if re.match(r'(\s*#)|(\s*#)', line):
continue
requirements.append(line)
return requirements
def read(fname):
return open(os.path.join(ROOT, fname)).read()
tests_require = [
'vcrpy',
'pytest',
'pytest-mock',
'tox',
]
setup(
name='flag-bearer',
version=__version__,
url='http://github.com/ISEAGE-ISU/flag-bearer',
description='CDC IScorE Flag Utility',
long_description=read('README.md'),
author='ISEAGE',
author_email='iseage@iastate.edu',
license='MIT',
packages=find_packages(),
setup_requires=[
'pytest-runner',
],
install_requires=parse_requirements(os.path.join(ROOT, 'requirements.txt')),
tests_require=tests_require,
extras_require={
'remote': [
'paramiko',
],
'tests': tests_require,
},
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
'License :: OSI Approved :: MIT License',
],
entry_points={
'console_scripts': [
'flag-bearer=flag_bearer.cli:main',
]
},
package_data={
'flag_bearer': ['default.ini'],
},
)