-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
93 lines (83 loc) · 2.27 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
#!/usr/bin/env python
from setuptools import setup, find_packages
with open('requirements.txt') as f:
# Load one dependency per line, ignoring comments
requirements = [
line.strip()
for line in f.read().strip().split('\n')
if not line.strip().startswith('#')
]
with open('requirements-tests.txt') as f:
# Load one dependency per line, ignoring comments
requirements_tests = [
line.strip()
for line in f.read().strip().split('\n')
if not line.strip().startswith('#')
]
with open('requirements-dev.txt') as f:
# Load one dependency per line, ignoring comments
requirements_dev = [
line.strip()
for line in f.read().strip().split('\n')
if not line.strip().startswith('#')
]
with open('README.rst') as f:
long_description = f.read().strip()
extra_reqs = {
'fmt': ['fmt==0.3.1'],
'pickle': [
'dill==0.3.2',
'cloudpickle==1.4.1'
],
'cli': [
'click==7.1.2',
# TODO: This doesn't work w/ PyPI, need to either submit a PR
# to the main repo or figure something else out
# 'asciidag @ git+https://github.com/cfeenstra67/asciidag.git',
'asciidag==0.2.0'
],
'pulumi': [
'pylumi==1.2.2',
'jsonschema==3.2.0'
],
'graphviz': [
'graphviz==0.16'
]
}
extra_reqs['all'] = sum(extra_reqs.values(), [])
extra_reqs['core'] = extra_reqs['fmt'] + extra_reqs['cli']
extra_reqs['tests'] = requirements_tests + extra_reqs['core']
extra_reqs['dev'] = requirements_dev
setup(
name='statey',
version='0.0.9',
description='Graph-based provisioning framework.',
long_description=long_description,
long_description_content_type='text/x-rst',
classifiers=[
'Development Status :: 1 - Planning',
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License"
],
license='MIT',
author='Cam Feenstra',
author_email='cameron.l.feenstra@gmail.com',
packages=find_packages(exclude=('tests', 'tests.*')),
install_requires=requirements,
extras_require=extra_reqs,
entry_points={
'console_scripts': [
'statey=statey.cli.__main__:main'
]
},
url='https://github.com/cfeenstra67/statey',
package_data={
'': [
'requirements.txt',
'requirements-dev.txt',
'requirements-tests.txt',
'README.rst',
],
},
include_package_data=True
)