Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,19 @@ jobs:
- /tmp/docker/cache/Dockerfile.base-pruned
key: dockerfile-cache-v1-{{ .Branch }}-{{ checksum "/tmp/docker/cache/Dockerfile.base-pruned" }}

pypi_precheck:
machine: *machine_kwds
working_directory: /home/circleci/nipype
steps:
- checkout:
path: /home/circleci/nipype
- run:
name: Check pypi preconditions
command: |
pip install twine future wheel readme_renderer
python setup.py check -r -s
python setup.py sdist bdist_wheel

deploy_pypi:
machine: *machine_kwds
working_directory: /home/circleci/nipype
Expand All @@ -339,7 +352,8 @@ jobs:
- run:
name: Deploy to PyPI
command: |
pip install twine future wheel
pip install twine future wheel readme_renderer
python setup.py check -r -s
python setup.py sdist bdist_wheel
twine upload dist/*

Expand Down Expand Up @@ -422,3 +436,7 @@ workflows:
only: /rel\/.*/
tags:
only: /.*/
- pypi_precheck:
filters:
branches:
only: /rel\/.*/