ioos / cc-plugin-ugrid

Compliance Checker Plugin for UGRID: http://ugrid-conventions.github.io/ugrid-conventions
Apache License 2.0
3 stars 6 forks source link

use versioneer #9

Closed ocefpaf closed 6 years ago

ocefpaf commented 6 years ago

xref.: https://github.com/ioos/cc-plugin-ugrid/pull/8#discussion_r185302446

Bobfrat commented 6 years ago

@ocefpaf Thanks for this. So now I can just create a release (tag) and versioneer will be able to parse the version number? Then I can push to PyPI as normal?

ocefpaf commented 6 years ago

So now I can just create a release (tag) and versioneer will be able to parse the version number?

Ye, the tag format must have a v first, like v1.0.0.

Then I can push to PyPI as normal?

Not sure what is your workflow but I usually do:

git checkout <tag version>
python setup.py sdist  # for the source distribution
python setup.py bdist_wheel  # for the binary distribution
wine upload dist/*  # to upload both to PyPI.

Versioneer will do the right thing there and "print" the tag into the right places.