Skip to content
Snippets Groups Projects
Commit ac2905bc authored by dh00601's avatar dh00601
Browse files

updated development requirements and script to upload to pypi

parent 88a9a826
No related branches found
No related tags found
No related merge requests found
...@@ -3,3 +3,4 @@ gitpython ...@@ -3,3 +3,4 @@ gitpython
sphinx sphinx
sphinx_autodoc_typehints sphinx_autodoc_typehints
nbsphinx nbsphinx
twine
#!/bin/bash
# Get current version
VERSION_NUMBER=$(cat "VERSION")
# Create dist
echo "Creating source distribution for binarycpython-$VERSION_NUMBER"
python setup.py sdist
# Checking validity
echo ""
echo "Checking validity of for binarycpython-$VERSION_NUMBER source distribution:"
twine check dist/binarycpython-$VERSION_NUMBER.tar.gz
echo "Uploading binarcpython version $VERSION_NUMBER to pypi."
read -p "Continue? y/n " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
twine upload check dist/binarycpython-$VERSION_NUMBER.tar.gz
fi
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