forked from ocadotechnology/kube-e2etestapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (50 loc) · 1.7 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
import os
from setuptools import find_packages, setup
import versioneer
from setuptools.command.test import test as TestCommand
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
test_dependencies = ['nose', 'coverage'
]
dependencies = ['requests',
'kubernetes',
'prometheus_client'
]
class NoseTestCommand(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# Run nose ensuring that argv simulates running nosetests directly
import nose
nose.run_exit(argv=['nosetests'])
cmdclass = versioneer.get_cmdclass()
cmdclass['test'] = NoseTestCommand
setup(
name='kubee2etests',
packages=find_packages(),
include_package_data=True,
description='Package for testing kubernetes end to end, intended for live clusters',
long_description=README,
url='https://github.com/ocadotechnology/kube-e2etestapp',
author='Ocado Technology',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
entry_points={
},
test_suite='tests',
tests_require=test_dependencies,
install_requires=dependencies,
version=versioneer.get_version(),
cmdclass=cmdclass
)