Skip to content

Instantly share code, notes, and snippets.

@noahyonack
Last active December 7, 2019 20:19
Show Gist options
  • Save noahyonack/24c8e813e65e37d06bc811c0b8b7b1dc to your computer and use it in GitHub Desktop.
Save noahyonack/24c8e813e65e37d06bc811c0b8b7b1dc to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# just to be safe: wipe the dist folder of previous builds
rm -r dist/*
# ensure you hav the latest versions of twine, setuptools, and wheel
python3 -m pip install --user --upgrade twine setuptools wheel
# build the package
python3 setup.py sdist bdist_wheel
# upload it to PyPI
python3 -m twine upload dist/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment