Skip to content

Commit 49f77d2

Browse files
committed
COMP: Fix setup of CircleCI python env. used to upload package
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
1 parent 1027903 commit 49f77d2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
4444
upload:
4545
docker:
46-
- image: dockbuild/centos7-devtoolset4-gcc5:latest
46+
- image: cimg/python:3.10
4747
steps:
4848
- restore_cache:
4949
keys:
@@ -54,8 +54,11 @@ jobs:
5454
- run:
5555
name: Upload release and prerelease packages
5656
command: |
57+
pip install -U scikit-ci-addons
58+
# Test if python environment provides at least OpenSSL >= 1.1.1
59+
# See https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html#ssl-module-is-compiled-with-openssl-1-0-2-k-fips
60+
python -c "import requests"
5761
if [[ "${CIRCLE_BRANCH}" == "main" ]]; then
58-
pip install -U scikit-ci-addons
5962
cd /usr/src/AppLauncher
6063
ci_addons publish_github_release commontk/applauncher \
6164
--exit-success-if-missing-token \

0 commit comments

Comments
 (0)