Skip to content

Commit d7afd1d

Browse files
authored
Use newer python version for releasing to pypi (#395)
* Pin kube dependency properly * Use python3 instead of 2 for pushing to pypi
1 parent 85713b3 commit d7afd1d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
- TEST_SUITE=lint OPENSHIFT_VERSION=latest
4040
- stage: deploy
4141
script: skip
42+
python: '3.5'
4243
deploy:
4344
provider: pypi
4445
user: openshift
@@ -49,6 +50,7 @@ jobs:
4950
repo: openshift/openshift-restclient-python
5051
condition: "$TRAVIS_TAG =~ ^v[0-9]+\\.[0-9]+\\.[0-9]+(([ab]|dev|rc)[0-9]+)?$"
5152
- stage: test-deploy
53+
python: '3.5'
5254
script: python -c "import openshift ; print(openshift.__version__)"
5355
install:
5456
- pip install openshift

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jinja2
2-
kubernetes
2+
kubernetes ~= 12.0
33
python-string-utils
44
ruamel.yaml
55
six

scripts/update-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ echo "--- updating version information..."
99
sed -i'' "s/^CLIENT_VERSION = .*/CLIENT_VERSION = \\\"${CLIENT_VERSION}\\\"/" "${SCRIPT_ROOT}/../setup.py"
1010
sed -i'' "s/^__version__ = .*/__version__ = \\\"${CLIENT_VERSION}\\\"/" "${CLIENT_ROOT}/__init__.py"
1111
sed -i'' "s/^Version:.*/Version: ${CLIENT_VERSION}/" "${SCRIPT_ROOT}/../python-openshift.spec"
12-
sed -i'' "s/^kubernetes ~= .*/kubernetes ~= ${KUBERNETES_CLIENT_VERSION}/" "${SCRIPT_ROOT}/../requirements.txt"
12+
sed -i'' "s/^kubernetes.*/kubernetes ~= ${KUBERNETES_CLIENT_VERSION}/" "${SCRIPT_ROOT}/../requirements.txt"
1313
sed -i'' "s/^__k8s_client_version__ = .*/__k8s_client_version__ = \\\"${KUBERNETES_CLIENT_VERSION}\\\"/" "${CLIENT_ROOT}/__init__.py"
1414
sed -i'' "s/^kubernetes .=.*/kubernetes ~= ${KUBERNETES_CLIENT_VERSION}/" ${SOURCE_ROOT}/requirements.txt

0 commit comments

Comments
 (0)