Skip to content

Commit

Permalink
COMP: Fix setup of CircleCI python env. used to upload package
Browse files Browse the repository at this point in the history
Update docker image used to install scikit-ci-addons to use `cimg/python:3.10`
providing a version of OpenSSL >= 1.1.1

References:
* https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html#ssl-module-is-compiled-with-openssl-1-0-2-k-fips
* https://circleci.com/developer/images/image/cimg/python
  • Loading branch information
jcfr committed Jul 2, 2024
1 parent 1027903 commit 49f77d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
upload:
docker:
- image: dockbuild/centos7-devtoolset4-gcc5:latest
- image: cimg/python:3.10
steps:
- restore_cache:
keys:
Expand All @@ -54,8 +54,11 @@ jobs:
- run:
name: Upload release and prerelease packages
command: |
pip install -U scikit-ci-addons
# Test if python environment provides at least OpenSSL >= 1.1.1
# See https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html#ssl-module-is-compiled-with-openssl-1-0-2-k-fips
python -c "import requests"
if [[ "${CIRCLE_BRANCH}" == "main" ]]; then
pip install -U scikit-ci-addons
cd /usr/src/AppLauncher
ci_addons publish_github_release commontk/applauncher \
--exit-success-if-missing-token \
Expand Down

0 comments on commit 49f77d2

Please sign in to comment.