Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ From [PyPI](https://pypi.python.org/pypi/kubernetes/) directly:
pip install kubernetes
```

To use the asyncio client (`kubernetes.aio`), install the `asyncio` extra:

```
pip install kubernetes[asyncio]
```

## Examples

list all pods:
Expand Down
11 changes: 9 additions & 2 deletions setup-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,15 @@
with open('test-requirements.txt') as f:
TESTS_REQUIRES = f.readlines()

# The asyncio client (kubernetes.aio) ships in the same distribution, but its
# dependencies are only installed with the extra: pip install kubernetes[asyncio]
EXTRAS['asyncio'] = []
with open('requirements-asyncio.txt') as f:
REQUIRES_ASYNCIO = f.readlines()
for line in f:
line, _, _ = line.partition('#')
line = line.strip()
if line:
EXTRAS['asyncio'].append(line)

with open('test-requirements-asyncio.txt') as f:
TESTS_REQUIRES_ASYNCIO = f.readlines()
Expand All @@ -63,7 +70,7 @@
license_expression="Apache-2.0",
url="https://github.com/kubernetes-client/python",
keywords=["Swagger", "OpenAPI", "Kubernetes"],
install_requires=REQUIRES+REQUIRES_ASYNCIO,
install_requires=REQUIRES,
tests_require=TESTS_REQUIRES+TESTS_REQUIRES_ASYNCIO,
extras_require=EXTRAS,
packages=['kubernetes', 'kubernetes.client', 'kubernetes.config',
Expand Down