-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (38 loc) · 1.5 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
import os
from os.path import abspath, dirname, join, normpath
# isort has different behavior for different versions of python here.
import yaml # isort:skip
from setuptools import find_packages, setup # isort:skip
with open(join(dirname(__file__), 'README.md')) as f:
readme_md = f.read()
# allow setup.py to be run from any path
os.chdir(normpath(join(abspath(__file__), os.pardir)))
version = open(join('kompatible', 'VERSION.txt')).read().strip()
travis = yaml.load(open('.travis.yml').read())
python_classifiers = ['Programming Language :: Python :: {}'.format(v)
for v in travis['python']]
assert len(python_classifiers) > 0
setup(
name='kompatible',
version=version,
install_requires=[
'kubernetes>=4.0.0',
],
packages=find_packages(exclude=['tests']),
include_package_data=True,
license='MIT License',
description='Python wrapper for Kubernetes '
'which matches the interface of Docker',
long_description=readme_md,
long_description_content_type='text/markdown',
url='https://github.com/refinery-platform/kompatible/',
author='Chuck McCallum',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python'],
zip_safe=False
# TODO: This fixes "ValueError: bad marshal data (unknown type code)"
# ... but I don't understand why it broke, or whether this is a good fix.
)