split sdist and upload commands
@@ -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:
@@ -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
\ No newline at end of file
+ - python setup.py sdist
+ - cp dist/* ${SCRATCH}/dist || true
+ - python setup.py upload -r pypi
\ No newline at end of file
