Skip to content

Release

Jonas Kittner edited this page Mar 10, 2022 · 1 revision

Make a new release

  1. Make sure all issues and pull requests are addressed, that should go into this version
  2. Checkout the default branch
git checkout main
  1. Pull changes from the default branch
git pull --prune
  1. Bump the version in setup.cfg
diff --git a/setup.cfg b/setup.cfg
index 5d42c6c..f270632 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,6 @@
 [metadata]
 name = w2w
-version = v0.1.1
+version = v0.2.0
 description = A python tool that ingests WUDAPT's Local Climate Zone information into WRF.
 long_description = file: README.md
 long_description_content_type = text/markdown
  1. Commit the changes with the following commit
git add setup.cfg
git commit -m "v0.2.0"
  1. Create a new tag for the release
git tag v0.2.0
  1. Build a source- and binary distribution
python setup.py sdist bdist_wheel
  1. Run tox one last time to make sure all tests pass
tox
  1. Upload to PyPi
twine upload dist/*
  1. Push the new release commit and tag directly to the default branch
git push origin HEAD --tags
  1. Check everything is okay ony PyPi
Clone this wiki locally