-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
84 lines (76 loc) · 2.26 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
import os
import re
from setuptools import find_packages, setup
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
with open(os.path.join(HERE, *parts)) 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')
setup(
name='seaworthy',
version=find_version('seaworthy', '__init__.py'),
license='BSD',
url='https://github.com/praekeltfoundation/seaworthy',
description='Test Docker container images',
author='Praekelt.org SRE team',
author_email='[email protected]',
long_description=read('README.rst'),
packages=find_packages(),
install_requires=[
'attrs>=17.4.0',
'docker>=3.6,<4',
'hyperlink',
'requests',
],
extras_require={
'pytest': [
'pytest>=3.0.0',
],
'testtools': [
'testtools',
],
'test': [
'pytest>=3.0.0',
'responses',
'testtools',
],
'test-core': [
'responses',
],
'docstest': [
'doc8',
'readme_renderer',
'Sphinx>=1.7,<1.8',
'sphinx_rtd_theme',
],
'pep8test': [
'flake8>=3.7.0',
'flake8-import-order',
'pep8-naming',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Pytest',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Testing',
],
entry_points={
'pytest11': ['seaworthy = seaworthy.pytest'],
},
)