Skip to content

Commit

Permalink
Merge branch 'master' into enh/threaded-topup
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcieslak authored May 2, 2024
2 parents 513ef6e + 75a61fd commit 65bf7dc
Showing 1 changed file with 0 additions and 108 deletions.
108 changes: 0 additions & 108 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,99 +346,6 @@ jobs:
fi
fi
test_deploy_pypi:
docker:
- image: cimg/python:3.10.9
working_directory: /tmp/src/qsiprep
steps:
- checkout
- run:
name: Install stuff
command: |
sudo apt-get update
sudo apt-get install -y libblas-dev liblapack-dev
- run:
name: Update build tools
command: pip install --upgrade build twine hatch
- run:
name: Build QSIPrep
command: python -m build
- run:
name: Twine check qsiprep
command: twine check dist/*
- run:
name: Pre-run hatch version
command: hatch version
- store_artifacts:
path: /tmp/src/qsiprep/dist
- run:
name: Check sdist distribution
command: |
THISVERSION=$( hatch version )
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
virtualenv --python=python sdist
source sdist/bin/activate
python -m pip install --upgrade pip
python -m pip install dist/qsiprep*.tar.gz
which qsiprep | grep sdist\\/bin
INSTALLED_VERSION=$(qsiprep --version)
INSTALLED_VERSION=${INSTALLED_VERSION%$'\r'}
INSTALLED_VERSION=${INSTALLED_VERSION#*"qsiprep v"}
echo "VERSION: \"$THISVERSION\""
echo "INSTALLED: \"$INSTALLED_VERSION\""
test "$INSTALLED_VERSION" = "$THISVERSION"
- run:
name: Check wheel distribution
command: |
THISVERSION=$( hatch version )
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
virtualenv --python=python wheel
source wheel/bin/activate
python -m pip install dist/qsiprep*.whl
which qsiprep | grep wheel\\/bin
INSTALLED_VERSION=$(qsiprep --version)
INSTALLED_VERSION=${INSTALLED_VERSION%$'\r'}
INSTALLED_VERSION=${INSTALLED_VERSION#*"qsiprep v"}
echo "VERSION: \"$THISVERSION\""
echo "INSTALLED: \"$INSTALLED_VERSION\""
test "$INSTALLED_VERSION" = "$THISVERSION"
- run:
name: Build qsiprep-docker
command: |
THISVERSION=$( hatch version )
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
sed -i "s/REPLACEME/${THISVERSION}/g" wrapper/pyproject.toml
python -m build wrapper
- run:
name: Twine check wrapper
command: twine check wrapper/dist/*
- store_artifacts:
path: /tmp/src/qsiprep/wrapper/dist

deploy_pypi:
docker:
- image: cimg/python:3.10.9
working_directory: /tmp/src/qsiprep
steps:
- checkout
- run:
name: Install stuff
command: |
sudo apt-get update
sudo apt-get install -y libblas-dev liblapack-dev
- run:
name: Update build tools
command: pip install --upgrade build twine
- run:
name: Build QSIPrep
command: python -m build
- run:
name: Build qsiprep-docker
command: python -m build wrapper/
- run:
name: Upload packages to PyPI
command: python -m twine upload -u __token__ -p ${PYPI_PASS} dist/qsiprep* wrapper/dist/qsiprep*

workflows:
version: 2
build_test_deploy:
Expand All @@ -449,11 +356,6 @@ workflows:
tags:
only: /.*/

- test_deploy_pypi:
filters:
tags:
only: /.*/

- DSCSDSI:
requires:
- build
Expand Down Expand Up @@ -609,7 +511,6 @@ workflows:

- deployable:
requires:
- test_deploy_pypi
- DSCSDSI
- DSDTI_nofmap
- DSDTI_synfmap
Expand Down Expand Up @@ -642,12 +543,3 @@ workflows:
only: master
tags:
only: /.*/

- deploy_pypi:
requires:
- deployable
filters:
branches:
ignore: /.*/
tags:
only: /.*/

0 comments on commit 65bf7dc

Please sign in to comment.