@@ -410,7 +410,7 @@ jobs:
410
410
name : Check sdist package in build environment
411
411
command : |
412
412
source /tmp/build/bin/activate
413
- twine check dist/sdcflows*.tar.gz
413
+ twine check dist/sdcflows*
414
414
- run :
415
415
name : Install sdist package into install environment and check version
416
416
command : |
@@ -442,47 +442,46 @@ jobs:
442
442
443
443
deploy_pypi :
444
444
machine :
445
- image : circleci/classic:201711-01
445
+ image : circleci/python:3.7.4
446
446
working_directory : /tmp/src/sdcflows
447
447
steps :
448
448
- checkout
449
449
- run :
450
450
name : Setup Python environment with virtualenvs
451
451
command : |
452
- pyenv global 3.5.2
453
- python3 -m pip install --upgrade virtualenv
452
+ python -m pip install --user --upgrade virtualenv pip
454
453
- run :
455
454
name : Prepare build environment
456
455
command : |
457
456
virtualenv --python=python3 /tmp/build
458
457
source /tmp/build/bin/activate
459
458
python3 -m pip install "setuptools>=30.3.0" "pip>=10.0.1" twine docutils
460
459
- run :
461
- name : Prepare install environment
460
+ name : Prepare install environments
462
461
command : |
463
- virtualenv --python=python3 /tmp/install
464
- source /tmp/install /bin/activate
462
+ virtualenv --python=python3 /tmp/install_sdist
463
+ source /tmp/install_sdist /bin/activate
465
464
python3 -m pip install "setuptools>=30.3.0" "pip>=10.0.1"
466
465
- run :
467
466
name : Build SDCflows in build environment
468
467
command : |
469
468
source /tmp/build/bin/activate
470
- python setup.py sdist
469
+ python setup.py sdist bdist_wheel
471
470
- store_artifacts :
472
471
path : /tmp/src/sdcflows/dist
473
472
- run :
474
- name : Check sdist package in build environment
473
+ name : Check sdist and wheel in build environment
475
474
command : |
476
475
source /tmp/build/bin/activate
477
- twine check dist/sdcflows*.tar.gz
476
+ twine check dist/sdcflows*
478
477
- run :
479
478
name : Install sdist package into install environment and check version
480
479
command : |
481
- source /tmp/install /bin/activate
480
+ source /tmp/install_sdist /bin/activate
482
481
THISVERSION=$( python get_version.py )
483
482
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
484
483
pip install dist/sdcflows*.tar.gz
485
- which sdcflows | grep install \\/bin
484
+ which sdcflows | grep install_sdist \\/bin
486
485
INSTALLED_VERSION=$(sdcflows --version)
487
486
INSTALLED_VERSION=${INSTALLED_VERSION%$'\r'}
488
487
INSTALLED_VERSION=${INSTALLED_VERSION#*"sdcflows v"}
0 commit comments