This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
85 lines (76 loc) · 2.53 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
import codecs
import os
import re
import sys
from setuptools import find_packages, setup
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*parts): # Stolen from txacme
with codecs.open(os.path.join(HERE, *parts), 'rb', 'utf-8') as f:
return f.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find version string')
install_requires = [
'acme >= 0.21.0',
'cryptography',
'josepy',
'klein',
'pem >= 16.1.0',
'requests',
# treq.testing broken on older versions of treq with Twisted 17.1.0
'treq >= 17.3.1',
# Despite treq & txacme depending on Twisted[tls], we don't get all the tls
# extras unless we depend on the option too, I guess, because pip.
'Twisted[tls] >= 18.4.0',
'txacme >= 0.9.2',
'uritools >= 1.0.0'
]
if sys.version_info < (3, 3):
install_requires.append('ipaddress')
setup(
name='marathon-acme',
version=find_version('marathon_acme', '__init__.py'),
license='MIT',
url='https://github.com/praekeltfoundation/marathon-acme',
description=("Automated management of Let's Encrypt certificates for apps "
"running on Mesosphere Marathon"),
author='Jamie Hewland',
author_email='[email protected]',
long_description=read('README.rst'),
packages=find_packages(),
install_requires=install_requires,
extras_require={
'test': [
'fixtures',
'pytest >= 3.0.0',
'testtools',
'txfake >= 0.1.1',
],
'lint': [
'flake8',
'flake8-import-order',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Twisted',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'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',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
],
entry_points={
'console_scripts': ['marathon-acme = marathon_acme.cli:_main'],
}
)