Skip to content

Commit 1cad855

Browse files
authored
Merge pull request #86 from tomplus/feat/python38
Add tests for Python 3.8.
2 parents b149c43 + f4d1774 commit 1cad855

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ matrix:
2222
- python: 3.7
2323
env: TOXENV=py37-functional
2424

25+
- python: 3.8
26+
env: TOXENV=py38
27+
- python: 3.8
28+
env: TOXENV=py38-functional
29+
2530
- python: 3.7
2631
env: TOXENV=docs
2732
- python: 3.7

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ like streaming, watching or reading configuration. Because of an early stage of
6868
| | [synchronous library kubernetes-client/python](https://github.com/kubernetes-client/python) | [this library](https://github.com/tomplus/kubernetes_asyncio/) |
6969
|--|--------------------------------------------------------------------|---------------------------------------------------------------|
7070
| authentication method | gcp-token, azure-token, user-token, oidc-token, user-password, in-cluster | gcp-token (only via gcloud command), user-token, oidc-token, user-password, in-cluster |
71-
| python | 2.7 3.4 3.5 3.6 3.7 | 3.5.3 3.6 3.7 |
71+
| python | 2.7 3.4 3.5 3.6 3.7 3.8 | 3.5.3 3.6 3.7 3.8 |
7272
| streaming data via websocket from PODs | bidirectional | read-only is already implemented |
7373
| generator | swagger-codegen | openapi-generator |
7474

kubernetes_asyncio/utils/create_from_yaml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def create_from_yaml(
7171
for yml_object in yml_document["items"]:
7272
# Mitigate cases when server returns a xxxList object
7373
# See kubernetes-client/python#586
74-
if kind is not "":
74+
if kind != "":
7575
yml_object["apiVersion"] = yml_document["apiVersion"]
7676
yml_object["kind"] = kind
7777
try:

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,6 @@
7373
"Programming Language :: Python :: 3.5",
7474
"Programming Language :: Python :: 3.6",
7575
"Programming Language :: Python :: 3.7",
76+
"Programming Language :: Python :: 3.8",
7677
],
7778
)

tox.ini

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ commands =
3434
python -V
3535
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []
3636

37+
[testenv:py38-functional]
38+
commands =
39+
python -V
40+
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []
41+
3742
[testenv:coverage]
3843
commands =
3944
python -V

0 commit comments

Comments
 (0)