forked from vapor-ware/kubetest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (53 loc) · 1.61 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
"""Setup and packaging for kubetest."""
import os
from codecs import open # for consistent encoding
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
# Load the package's __init__.py file as a dictionary.
pkg = {}
with open(os.path.join(here, 'kubetest', '__init__.py'), 'r', 'utf-8') as f:
exec(f.read(), pkg)
# Load the README
readme = ''
if os.path.exists('README.md'):
with open('README.md', 'r', 'utf-8') as f:
readme = f.read()
setup(
name=pkg['__title__'],
version=pkg['__version__'],
description=pkg['__description__'],
long_description=readme,
long_description_content_type='text/markdown',
url=pkg['__url__'],
author=pkg['__author__'],
author_email=pkg['__author_email__'],
license=pkg['__license__'],
packages=find_packages(),
python_requires='>=3.6',
package_data={
'': ['LICENSE'],
},
install_requires=[
'kubernetes',
'pyyaml>=4.2b1',
'pytest',
'requests>=2.21.0', # used by 'kubernetes'
],
zip_safe=False,
classifiers=[
'Environment :: Plugins',
'Framework :: Pytest',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
],
# this make a plugin available to pytest
# https://docs.pytest.org/en/latest/writing_plugins.html#making-your-plugin-installable-by-others
entry_points={
'pytest11': [
'kubetest = kubetest.plugin'
]
}
)