Skip to content

Commit 81c65bf

Browse files
drop python2 support
- remove python2 from the .travis.yaml file - remove python2 from the tox.ini file - remove `-y` flag from isort command in update-pycodestle.sh script - fix sequence of module imports to fix faiing pycodestyle check in the following files: - examples/multiple_clusters.py - examples/pick_kube_config_context.py - examples/pod_config_list.py - testing coverage & codecov tests with python3 Signed-off-by: Priyanka Saggu <[email protected]>
1 parent 4431c4d commit 81c65bf

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ jobs:
2424
[[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(([ab]|dev|rc)[0-9]+)?$ ]]
2525
2626
- stage: test
27-
python: 3.7
27+
python: 3.9
28+
env: TOXENV=update-pycodestyle
29+
- python: 3.9
30+
env: TOXENV=coverage,codecov
31+
- python: 3.7
2832
env: TOXENV=docs
2933
- python: 3.5
3034
env: TOXENV=py35

examples/multiple_clusters.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
Please install the pick library before running this example.
1919
"""
2020

21+
from pick import pick # install pick using `pip install pick`
22+
2123
from kubernetes import client, config
2224
from kubernetes.client import configuration
23-
from pick import pick # install pick using `pip install pick`
2425

2526

2627
def main():

examples/pick_kube_config_context.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
Please install the pick library before running this example.
1919
"""
2020

21+
from pick import pick # install pick using `pip install pick`
22+
2123
from kubernetes import client, config
2224
from kubernetes.client import configuration
23-
from pick import pick # install pick using `pip install pick`
2425

2526

2627
def main():

examples/pod_config_list.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
Please install the pick library before running this example.
2020
"""
2121

22+
from pick import pick # install pick using `pip install pick`
23+
2224
from kubernetes import client, config
2325
from kubernetes.client import configuration
24-
from pick import pick # install pick using `pip install pick`
2526

2627

2728
def main():

scripts/update-pycodestyle.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ done
6767

6868
echo "--- applying isort"
6969
for SOURCE in $SOURCES; do
70-
isort -y $SOURCE
70+
isort $SOURCE
7171
done
7272

7373
echo "--- check pycodestyle (all need to be fixed manually)"

0 commit comments

Comments
 (0)