-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
72 lines (65 loc) · 1.76 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
import re
import setuptools
with open('README.md', 'r') as readme_file:
long_description = readme_file.read()
# Inspiration: https://stackoverflow.com/a/7071358/6064135
with open('harvey/_version.py', 'r') as version_file:
version_groups = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read(), re.M)
if version_groups:
version = version_groups.group(1)
else:
raise RuntimeError('Unable to find version string!')
REQUIREMENTS = [
'docker == 7.1.*',
'flask == 3.*',
'python-dotenv == 1.*',
'pyyaml == 6.*',
'requests == 2.*',
'requests_unixsocket == 0.3.*',
'sentry-sdk == 2.*',
'slack_sdk == 3.*',
'sqlitedict == 2.1.*',
'uwsgi == 2.0.27',
'woodchips == 1.*',
]
DEV_REQUIREMENTS = [
'bandit == 1.7.*',
'black == 24.*',
'build == 1.2.*',
'flake8 == 7.*',
'isort == 5.*',
'mypy == 1.12.*',
'pytest == 8.*',
'pytest-cov == 5.*',
'wheel == 0.43.*', # Needed to build uwsgi
]
setuptools.setup(
name='harvey-runner',
version=version,
description='The lightweight Docker Compose deployment runner.',
long_description=long_description,
long_description_content_type="text/markdown",
url='http://github.com/justintime50/harvey',
author='Justintime50',
license='MIT',
packages=setuptools.find_packages(
exclude=[
'test',
]
),
package_data={
'harvey': [
'py.typed',
]
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=REQUIREMENTS,
extras_require={
'dev': DEV_REQUIREMENTS,
},
python_requires='>=3.8, <4.0',
)