Skip to content

Commit

Permalink
Merge pull request #91 from mgxd/ci/deploy
Browse files Browse the repository at this point in the history
FIX: Circle deployment
  • Loading branch information
mgxd authored Feb 15, 2020
2 parents a73006b + 39665d1 commit 8ed800c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ jobs:
name: Check sdist package in build environment
command: |
source /tmp/build/bin/activate
twine check dist/sdcflows*.tar.gz
twine check dist/sdcflows*
- run:
name: Install sdist package into install environment and check version
command: |
Expand Down Expand Up @@ -442,47 +442,46 @@ jobs:
deploy_pypi:
machine:
image: circleci/classic:201711-01
image: circleci/python:3.7.4
working_directory: /tmp/src/sdcflows
steps:
- checkout
- run:
name: Setup Python environment with virtualenvs
command: |
pyenv global 3.5.2
python3 -m pip install --upgrade virtualenv
python -m pip install --user --upgrade virtualenv pip
- run:
name: Prepare build environment
command: |
virtualenv --python=python3 /tmp/build
source /tmp/build/bin/activate
python3 -m pip install "setuptools>=30.3.0" "pip>=10.0.1" twine docutils
- run:
name: Prepare install environment
name: Prepare install environments
command: |
virtualenv --python=python3 /tmp/install
source /tmp/install/bin/activate
virtualenv --python=python3 /tmp/install_sdist
source /tmp/install_sdist/bin/activate
python3 -m pip install "setuptools>=30.3.0" "pip>=10.0.1"
- run:
name: Build SDCflows in build environment
command: |
source /tmp/build/bin/activate
python setup.py sdist
python setup.py sdist bdist_wheel
- store_artifacts:
path: /tmp/src/sdcflows/dist
- run:
name: Check sdist package in build environment
name: Check sdist and wheel in build environment
command: |
source /tmp/build/bin/activate
twine check dist/sdcflows*.tar.gz
twine check dist/sdcflows*
- run:
name: Install sdist package into install environment and check version
command: |
source /tmp/install/bin/activate
source /tmp/install_sdist/bin/activate
THISVERSION=$( python get_version.py )
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
pip install dist/sdcflows*.tar.gz
which sdcflows | grep install\\/bin
which sdcflows | grep install_sdist\\/bin
INSTALLED_VERSION=$(sdcflows --version)
INSTALLED_VERSION=${INSTALLED_VERSION%$'\r'}
INSTALLED_VERSION=${INSTALLED_VERSION#*"sdcflows v"}
Expand Down
8 changes: 8 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
core:
- sdcflows/cli/*
- sdcflows/interfaces/*
- sdcflows/viz/*
- sdcflows/workflows/*

docs:
- docs/*

0 comments on commit 8ed800c

Please sign in to comment.