Skip to content

Commit 33d1aff

Browse files
committed
CI: Use build instead of hard-pinned tools
1 parent dbd19ca commit 33d1aff

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.circleci/config.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,8 @@ jobs:
406406
command: |
407407
python3 -m venv /tmp/buildenv
408408
source /tmp/buildenv/bin/activate
409-
python3 -m pip install "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
410-
"pip>=10.0.1" twine docutils
411-
python setup.py sdist bdist_wheel
409+
python3 -m pip install --upgrade pip build twine
410+
python3 -m build
412411
twine check dist/sdcflows*
413412
- store_artifacts:
414413
path: /tmp/src/sdcflows/dist
@@ -420,8 +419,8 @@ jobs:
420419
command: |
421420
python3 -m venv /tmp/install_sdist
422421
source /tmp/install_sdist/bin/activate
423-
python3 -m pip install "setuptools ~= 42.0" "pip>=10.0.1"
424-
THISVERSION=$( python3 setup.py --version )
422+
python3 -m pip install --upgrade pip setuptools_scm
423+
THISVERSION=$( python3 -m setuptools_scm )
425424
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
426425
python3 -m pip install dist/sdcflows*.tar.gz
427426
INSTALLED_VERSION=$(python3 -c 'import sdcflows as sdc; print(sdc.__version__, end="")')
@@ -433,8 +432,8 @@ jobs:
433432
command: |
434433
python3 -m venv /tmp/install_wheel
435434
source /tmp/install_wheel/bin/activate
436-
python3 -m pip install "setuptools ~= 42.0" "pip>=10.0.1"
437-
THISVERSION=$( python3 setup.py --version )
435+
python3 -m pip install --upgrade pip setuptools_scm
436+
THISVERSION=$( python3 -m setuptools_scm )
438437
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
439438
python3 -m pip install dist/sdcflows*.whl
440439
INSTALLED_VERSION=$(python3 -c 'import sdcflows as sdc; print(sdc.__version__, end="")')

0 commit comments

Comments
 (0)