revise deployment procedure
@@ -34,6 +34,9 @@ deployment:
hub:
tag: /.*/
commands:
- - printf "[distutils]\nindex-servers =\n pypi\n\n[pypi]\nusername:$PYPI_USER\npassword:$PYPI_PASS\n" > ~/.pypirc
+ - pip install twine
- sed -i -E "s/(__version__ = )'[A-Za-z0-9.-]+'/\1'$CIRCLE_TAG'/" niworkflows/info.py
- - python setup.py sdist upload -r pypi
\ No newline at end of file
+ - printf "[distutils]\nindex-servers =\n pypi\n\n[pypi]\nusername:$PYPI_USER\npassword:$PYPI_PASS\n" > ~/.pypirc
+ - python setup.py sdist
+ - twine upload dist/*
+ - cp -r dist/* ~/scratch/ || true
\ No newline at end of file
