Skip to content
Snippets Groups Projects
Commit 87e01a7c authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Create source distribution before twining it to PyPI

parent da193398
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,13 @@ if [ "${VISIBILITY}" != "public" ]; then ...@@ -15,6 +15,13 @@ if [ "${VISIBILITY}" != "public" ]; then
exit 0 exit 0
fi fi
log_info "Creating source distribution..."
run_cmd $(PREFIX)/bin/python setup.py check sdist --formats zip
if [ $? != 0 ]; then
log_error "Could not create source distribution zip file"
exit 1
fi
log_info "Uploading package to ${PYPISERVER} on behalf of ${PYPIUSER}..." log_info "Uploading package to ${PYPISERVER} on behalf of ${PYPIUSER}..."
twine register --username ${PYPIUSER} --password ${PYPIPASS} dist/*.zip twine register --username ${PYPIUSER} --password ${PYPIPASS} dist/*.zip
twine upload --username ${PYPIUSER} --password ${PYPIPASS} dist/*.zip twine upload --username ${PYPIUSER} --password ${PYPIPASS} dist/*.zip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment