forked from hjacobs/pykube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (50 loc) · 1.58 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
import sys
from pathlib import Path
from setuptools import setup, find_packages
def read_version(package):
with (Path(package) / '__init__.py').open('r') as fd:
for line in fd:
# do not use "exec" here and do manual parsing to not require deps
if line.startswith('__version__ = '):
return line.split()[-1].strip().strip('\'')
with open("README.rst") as fp:
long_description = fp.read()
install_requires = [
"requests>=2.12",
"PyYAML"
]
if sys.version_info < (3,):
install_requires.extend([
"ipaddress",
])
setup(
name="pykube-ng",
version=read_version('pykube'),
description="Python client library for Kubernetes",
long_description=long_description,
long_description_content_type='text/x-rst',
author="Eldarion, Inc.",
author_email="[email protected]",
license="Apache",
url="https://github.com/hjacobs/pykube",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3 :: Only",
],
zip_safe=False,
packages=find_packages(exclude=("tests",)),
install_requires=install_requires,
extras_require={
"gcp": [
"google-auth",
"jsonpath-ng",
]
},
)