-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
74 lines (64 loc) · 2.16 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
"""
Setup script for DC/OS End to End tests.
"""
from pathlib import Path
import versioneer
from setuptools import find_packages, setup
from typing import List
def _get_dependencies(requirements_file: Path) -> List[str]:
"""
Return requirements from a requirements file.
This expects a requirements file with no ``--find-links`` lines.
"""
lines = requirements_file.read_text().strip().split('\n')
return [line for line in lines if not line.startswith('#')]
_DIRECT_REQUIRES = _get_dependencies(
requirements_file=Path('requirements.txt'),
)
_INDIRECT_REQUIRES = _get_dependencies(
requirements_file=Path('indirect-requirements.txt'),
)
INSTALL_REQUIRES = _DIRECT_REQUIRES + _INDIRECT_REQUIRES
DEV_REQUIRES = _get_dependencies(
requirements_file=Path('dev-requirements.txt'),
)
PACKAGING_REQUIRES = _get_dependencies(
requirements_file=Path('packaging-requirements.txt'),
)
LONG_DESCRIPTION = Path('README.rst').read_text()
setup(
name='DCOS E2E',
version=versioneer.get_version(), # type: ignore
cmdclass=versioneer.get_cmdclass(), # type: ignore
author='Adam Dangoor',
author_email='[email protected]',
description='Test helpers for testing DC/OS end to end.',
long_description=LONG_DESCRIPTION,
packages=find_packages(where='src'),
zip_safe=False,
package_dir={'': 'src'},
install_requires=INSTALL_REQUIRES,
include_package_data=True,
license='Apache License 2.0',
keywords='dcos mesos docker',
url='https://github.com/dcos/dcos-e2e',
extras_require={
'dev': DEV_REQUIRES,
'packaging': PACKAGING_REQUIRES,
},
classifiers=[
'Operating System :: POSIX',
'Environment :: Web Environment',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
],
# Avoid dependency links because they are not supported by Read The Docs.
#
# Also, they require users to use ``--process-dependency-links``.
dependency_links=[],
entry_points="""
[console_scripts]
minidcos=dcos_e2e_cli.minidcos:minidcos
""",
)