Merge pull request #1468 from Priyankasaggu11929/drop-python-2-support
drop python 2 support
This commit is contained in:
commit
821618feb3
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@ -8,7 +8,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
|
||||
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
22
.travis.yml
22
.travis.yml
@ -24,16 +24,12 @@ jobs:
|
||||
[[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(([ab]|dev|rc)[0-9]+)?$ ]]
|
||||
|
||||
- stage: test
|
||||
python: 2.7
|
||||
env: TOXENV=update-pycodestyle
|
||||
python: 3.9
|
||||
env: TOXENV=update-pycodestyle
|
||||
- python: 3.9
|
||||
env: TOXENV=coverage,codecov
|
||||
- python: 3.7
|
||||
env: TOXENV=docs
|
||||
- python: 2.7
|
||||
env: TOXENV=coverage,codecov
|
||||
- python: 2.7
|
||||
env: TOXENV=py27
|
||||
- python: 2.7
|
||||
env: TOXENV=py27-functional
|
||||
- python: 3.5
|
||||
env: TOXENV=py35
|
||||
- python: 3.5
|
||||
@ -68,18 +64,12 @@ jobs:
|
||||
distributions: sdist bdist_wheel
|
||||
|
||||
- stage: test
|
||||
python: 2.7
|
||||
python: 3.9
|
||||
env: TOXENV=update-pycodestyle
|
||||
arch: ppc64le
|
||||
arch: ppc64le
|
||||
- python: 3.7
|
||||
env: TOXENV=docs
|
||||
arch: ppc64le
|
||||
- python: 2.7
|
||||
env: TOXENV=coverage,codecov
|
||||
arch: ppc64le
|
||||
- python: 2.7
|
||||
env: TOXENV=py27
|
||||
arch: ppc64le
|
||||
- python: 3.5
|
||||
env: TOXENV=py35
|
||||
arch: ppc64le
|
||||
|
||||
@ -18,9 +18,10 @@ Allows you to pick a context and then lists all pods in the chosen context.
|
||||
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():
|
||||
|
||||
@ -18,9 +18,10 @@ Allows you to pick a context and then lists all pods in the chosen context.
|
||||
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():
|
||||
|
||||
@ -19,9 +19,10 @@ context includes a cluster, a user, and a namespace.
|
||||
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():
|
||||
|
||||
@ -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)"
|
||||
|
||||
2
setup.py
2
setup.py
@ -72,8 +72,6 @@ setup(
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 2",
|
||||
"Programming Language :: Python :: 2.7",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.5",
|
||||
"Programming Language :: Python :: 3.6",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user