Skip to content

Commit

Permalink
Use newer python version for releasing to pypi (#395)
Browse files Browse the repository at this point in the history
* Pin kube dependency properly

* Use python3 instead of 2 for pushing to pypi
  • Loading branch information
fabianvf authored Feb 25, 2021
1 parent 85713b3 commit d7afd1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
- TEST_SUITE=lint OPENSHIFT_VERSION=latest
- stage: deploy
script: skip
python: '3.5'
deploy:
provider: pypi
user: openshift
Expand All @@ -49,6 +50,7 @@ jobs:
repo: openshift/openshift-restclient-python
condition: "$TRAVIS_TAG =~ ^v[0-9]+\\.[0-9]+\\.[0-9]+(([ab]|dev|rc)[0-9]+)?$"
- stage: test-deploy
python: '3.5'
script: python -c "import openshift ; print(openshift.__version__)"
install:
- pip install openshift
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jinja2
kubernetes
kubernetes ~= 12.0
python-string-utils
ruamel.yaml
six
2 changes: 1 addition & 1 deletion scripts/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ echo "--- updating version information..."
sed -i'' "s/^CLIENT_VERSION = .*/CLIENT_VERSION = \\\"${CLIENT_VERSION}\\\"/" "${SCRIPT_ROOT}/../setup.py"
sed -i'' "s/^__version__ = .*/__version__ = \\\"${CLIENT_VERSION}\\\"/" "${CLIENT_ROOT}/__init__.py"
sed -i'' "s/^Version:.*/Version: ${CLIENT_VERSION}/" "${SCRIPT_ROOT}/../python-openshift.spec"
sed -i'' "s/^kubernetes ~= .*/kubernetes ~= ${KUBERNETES_CLIENT_VERSION}/" "${SCRIPT_ROOT}/../requirements.txt"
sed -i'' "s/^kubernetes.*/kubernetes ~= ${KUBERNETES_CLIENT_VERSION}/" "${SCRIPT_ROOT}/../requirements.txt"
sed -i'' "s/^__k8s_client_version__ = .*/__k8s_client_version__ = \\\"${KUBERNETES_CLIENT_VERSION}\\\"/" "${CLIENT_ROOT}/__init__.py"
sed -i'' "s/^kubernetes .=.*/kubernetes ~= ${KUBERNETES_CLIENT_VERSION}/" ${SOURCE_ROOT}/requirements.txt

0 comments on commit d7afd1d

Please sign in to comment.