python-caldav / caldav

Apache License 2.0
313 stars 91 forks source link

Use setuptools-scm / pyproject.toml (modern packaging) #364

Closed sim0nx closed 6 months ago

sim0nx commented 6 months ago

fixes #357

Please note that in order to build packages, you should after merging this, do the following:

pip install -U pip build
python -m build

The version variable will be available just as before, but auto-generated.

Ref: https://packaging.python.org/en/latest/tutorials/packaging-projects/#generating-distribution-archives

tobixen commented 6 months ago

Please note that in order to build packages, you should after merging this, do the following:

pip install -U pip build
python -m build

This should probably be included in the documentation

sim0nx commented 6 months ago

Please note that in order to build packages, you should after merging this, do the following:

pip install -U pip build
python -m build

This should probably be included in the documentation

updated release-howto.md

tobixen commented 6 months ago

Another thing, the RELEASE-HOWTO.md probably needs some modifications (after several really silly embarrassing mistakes while releasing, I've made a rather complicated procedure to make sure I'm on the correct branch, that the version number is updated, that the tag is correct and that I'm doing the dist from a clean checkout - I suppose some of the steps may be sidestepped now).

tobixen commented 6 months ago

Seems like my last comment was posted some seconds too late :-)

tobixen commented 6 months ago

Or maybe not. There are still some steps in the RELEASE-HOWTO that doesn't make sense now I think (like grepping for the version number from __init__.py)

sim0nx commented 6 months ago

I removed those obsolete parts. Should hopefully be fine now :-)

tobixen commented 6 months ago
>>> import caldav
>>> caldav.__version__
'1.3.10.dev4+g70e7856.d20231219'

lovely :-)