|
| 1 | +# Copyright 2016 The Kubernetes Authors. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +from setuptools import setup |
| 16 | + |
| 17 | +# Do not edit these constants. They will be updated automatically |
| 18 | +# by scripts/update-client.sh. |
| 19 | +CLIENT_VERSION = "36.0.0+snapshot" |
| 20 | +PACKAGE_NAME = "kubernetes" |
| 21 | +DEVELOPMENT_STATUS = "3 - Alpha" |
| 22 | + |
| 23 | +# To install the library, run the following |
| 24 | +# |
| 25 | +# python setup.py install |
| 26 | +# |
| 27 | +# prerequisite: setuptools |
| 28 | +# http://pypi.python.org/pypi/setuptools |
| 29 | + |
| 30 | +EXTRAS = { |
| 31 | + 'google-auth': ['google-auth>=1.0.1'] |
| 32 | +} |
| 33 | +REQUIRES = [] |
| 34 | +with open('requirements.txt') as f: |
| 35 | + for line in f: |
| 36 | + line, _, _ = line.partition('#') |
| 37 | + line = line.strip() |
| 38 | + if not line or line.startswith('setuptools'): |
| 39 | + continue |
| 40 | + elif ';' in line: |
| 41 | + requirement, _, specifier = line.partition(';') |
| 42 | + for_specifier = EXTRAS.setdefault(':{}'.format(specifier), []) |
| 43 | + for_specifier.append(requirement) |
| 44 | + else: |
| 45 | + REQUIRES.append(line) |
| 46 | + |
| 47 | +with open('test-requirements.txt') as f: |
| 48 | + TESTS_REQUIRES = f.readlines() |
| 49 | + |
| 50 | +with open('requirements-asyncio.txt') as f: |
| 51 | + REQUIRES_ASYNCIO = f.readlines() |
| 52 | + |
| 53 | +with open('test-requirements-asyncio.txt') as f: |
| 54 | + TESTS_REQUIRES_ASYNCIO = f.readlines() |
| 55 | + |
| 56 | + |
| 57 | +setup( |
| 58 | + name=PACKAGE_NAME, |
| 59 | + version=CLIENT_VERSION, |
| 60 | + description="Kubernetes python client", |
| 61 | + author_email="", |
| 62 | + author="Kubernetes", |
| 63 | + license="Apache License Version 2.0", |
| 64 | + url="https://github.com/kubernetes-client/python", |
| 65 | + keywords=["Swagger", "OpenAPI", "Kubernetes"], |
| 66 | + install_requires=REQUIRES+REQUIRES_ASYNCIO, |
| 67 | + tests_require=TESTS_REQUIRES+TESTS_REQUIRES_ASYNCIO, |
| 68 | + extras_require=EXTRAS, |
| 69 | + packages=['kubernetes', 'kubernetes.client', 'kubernetes.config', |
| 70 | + 'kubernetes.watch', 'kubernetes.client.api', |
| 71 | + 'kubernetes.stream', 'kubernetes.client.models', |
| 72 | + 'kubernetes.utils', 'kubernetes.client.apis', |
| 73 | + 'kubernetes.dynamic', 'kubernetes.leaderelection', |
| 74 | + 'kubernetes.leaderelection.resourcelock', |
| 75 | + 'kubernetes_asyncio', |
| 76 | + 'kubernetes_asyncio.config', |
| 77 | + 'kubernetes_asyncio.client', |
| 78 | + 'kubernetes_asyncio.client.api', |
| 79 | + 'kubernetes_asyncio.client.models' |
| 80 | + ], |
| 81 | + include_package_data=True, |
| 82 | + long_description="Python client for kubernetes http://kubernetes.io/", |
| 83 | + python_requires='>=3.10', |
| 84 | + classifiers=[ |
| 85 | + "Development Status :: %s" % DEVELOPMENT_STATUS, |
| 86 | + "Topic :: Utilities", |
| 87 | + "Intended Audience :: Developers", |
| 88 | + "Intended Audience :: Information Technology", |
| 89 | + "License :: OSI Approved :: Apache Software License", |
| 90 | + "Operating System :: OS Independent", |
| 91 | + "Programming Language :: Python", |
| 92 | + "Programming Language :: Python :: 3", |
| 93 | + "Programming Language :: Python :: 3.10", |
| 94 | + "Programming Language :: Python :: 3.11", |
| 95 | + "Programming Language :: Python :: 3.12", |
| 96 | + "Programming Language :: Python :: 3.13", |
| 97 | + "Programming Language :: Python :: 3.14", |
| 98 | + ], |
| 99 | +) |
0 commit comments