Skip to content

Commit

Permalink
Merge pull request #2678 from effigies/maint/wheels
Browse files Browse the repository at this point in the history
MAINT: Fix wheel build to ensure futures is only required in Python 2
  • Loading branch information
effigies authored Aug 10, 2018
2 parents a2c2d79 + 10ec7d9 commit 297a24c
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,25 @@ jobs:
- run:
name: Check pypi preconditions
command: |
pip install twine future wheel readme_renderer
pip install --upgrade twine future wheel readme_renderer setuptools
python setup.py check -r -s
python setup.py sdist bdist_wheel
- run:
name: Validate Python 2 installation
command: |
pyenv local 2.7.12
pip install dist/nipype-*-py2.py3-none-any.whl
# Futures should install in Python 2
pip show futures 2>/dev/null | grep "Name: futures"
- run:
name: Validate Python 3 installation
command: |
pyenv local 3.5.2
pip install dist/nipype-*-py2.py3-none-any.whl
# Futures should not install in Python 3
test $(pip show futures 2>/dev/null | wc -l) = "0"
- store_artifacts:
path: /home/circleci/nipype/dist

deploy_pypi:
machine: *machine_kwds
Expand All @@ -352,7 +368,7 @@ jobs:
- run:
name: Deploy to PyPI
command: |
pip install twine future wheel readme_renderer
pip install --upgrade twine future wheel readme_renderer setuptools
python setup.py check -r -s
python setup.py sdist bdist_wheel
twine upload dist/*
Expand Down Expand Up @@ -393,6 +409,7 @@ workflows:
version: 2
build_test_deploy:
jobs:
- pypi_precheck
- compare_base_dockerfiles:
filters:
tags:
Expand Down Expand Up @@ -428,6 +445,7 @@ workflows:
tags:
only: /.*/
requires:
- pypi_precheck
- test_pytest
- update_feedstock:
context: nipybot
Expand All @@ -436,7 +454,3 @@ workflows:
only: /rel\/.*/
tags:
only: /.*/
- pypi_precheck:
filters:
branches:
only: /rel\/.*/

0 comments on commit 297a24c

Please sign in to comment.