Skip to content

Commit

Permalink
drop python2 support
Browse files Browse the repository at this point in the history
  - 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

Signed-off-by: Priyanka Saggu <priyankasaggu11929@gmail.com>
  • Loading branch information
Priyankasaggu11929 committed May 14, 2021
1 parent 4431c4d commit 7c1c0c3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ jobs:
[[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(([ab]|dev|rc)[0-9]+)?$ ]]
- stage: test
python: 3.7
python: 3.9
env: TOXENV=update-pycodestyle
- python: 3.7
env: TOXENV=docs
- python: 3.5
env: TOXENV=py35
Expand Down
3 changes: 2 additions & 1 deletion examples/multiple_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
Please install the pick library before running this example.
"""

from pick import pick # install pick using `pip install pick`

from kubernetes import client, config
from kubernetes.client import configuration
from pick import pick # install pick using `pip install pick`


def main():
Expand Down
3 changes: 2 additions & 1 deletion examples/pick_kube_config_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
Please install the pick library before running this example.
"""

from pick import pick # install pick using `pip install pick`

from kubernetes import client, config
from kubernetes.client import configuration
from pick import pick # install pick using `pip install pick`


def main():
Expand Down
3 changes: 2 additions & 1 deletion examples/pod_config_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
Please install the pick library before running this example.
"""

from pick import pick # install pick using `pip install pick`

from kubernetes import client, config
from kubernetes.client import configuration
from pick import pick # install pick using `pip install pick`


def main():
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-pycodestyle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ done

echo "--- applying isort"
for SOURCE in $SOURCES; do
isort -y $SOURCE
isort $SOURCE
done

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

0 comments on commit 7c1c0c3

Please sign in to comment.