Skip to content

Updating The Package

CoderDonohoe edited this page Dec 8, 2021 · 1 revision

To update the package, I have been using these instructions: https://packaging.python.org/tutorials/packaging-projects/#generating-distribution-archives

  1. Update the version no in setup.py: https://github.com/urlbox/urlbox-python/blob/main/setup.py#L8
  2. Commit that in git.
  3. Update the python build package: python3 -m pip install --upgrade build
  4. Build the new distribution/ package: python3 -m build
  5. Update/install the twine tool: python3 -m pip install --upgrade twine
  6. Push it up to PyPi: python3 -m twine upload dist/*
  7. Enter your user name and pass word for your PyPi account when asked.
  8. That’s it!
Clone this wiki locally