Skip to content

Commit

Permalink
split sdist and upload commands
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Mar 16, 2017
1 parent 7a96f89 commit 2ca6312
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- "~/data"

pre:
- mkdir -p ~/data/ ~/docker ${CIRCLE_TEST_REPORTS}/py2 ${CIRCLE_TEST_REPORTS}/py3
- mkdir -p ${SCRATCH}/dist ~/data/ ~/docker ${CIRCLE_TEST_REPORTS}/py2 ${CIRCLE_TEST_REPORTS}/py3
- mkdir -p $SCRATCH && sudo setfacl -d -m group:ubuntu:rwx $SCRATCH && sudo setfacl -m group:ubuntu:rwx $SCRATCH
- mkdir -p $SCRATCH/py2 $SCRATCH/py3
override:
Expand All @@ -38,4 +38,6 @@ deployment:
commands:
- sed -i -E "s/(__version__ = )'[A-Za-z0-9.-]+'/\1'$CIRCLE_TAG'/" niworkflows/info.py
- printf "[distutils]\nindex-servers =\n pypi\n\n[pypi]\nusername:$PYPI_USER\npassword:$PYPI_PASS\n" > ~/.pypirc
- python setup.py sdist upload -r pypi
- python setup.py sdist
- cp dist/* ${SCRATCH}/dist || true
- python setup.py upload -r pypi

0 comments on commit 2ca6312

Please sign in to comment.