-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic versioning #116
Comments
@henryiii I am interested in this feature and would be happy to be involved with implementing it, but I guess that there are some design decisions to take first. For example, setuptools provides a I guess that as a backend only option, scikit-build-core doesn't want anything as complicated as hatch, so I would be inclined to go more down the setuptools route. We could implement an entrypoint like Let me know if any of this sounds sensible, and I will get to work on an implementation. |
I've got an initial implementation in 4fa6150, actually. It would be pretty easy to add (as done in that commit) if we simply require a single method using setuptools_scm. There are some other tools (like dunamai), so I paused that work to see if there was a more general way to add it that would allow other backends in the future. I also would like to support hatch's method of pulling a version from a file via regex. We'd want some configuration options (I'd really have liked it if setuptools_scm would let me just tell it to read its normal configuration from I'd also like to support https://pypi.org/project/hatch-fancy-pypi-readme/. |
Interesting, I hadn't seen that hatch plugin before, but that is implemented using a different hatch hook which is essentially identical to my The only difference is that rather than a single function, hatch defines an interface class that plugins override, that class then has hatch provided methods to allow the project root and pyproject config to be passed in (so config comes from To support To be honest, I am surprised there isn't some kind of PEP standard to define an entry point system for dynamic core metadata, having defined the |
Closed by #197. |
No description provided.
The text was updated successfully, but these errors were encountered: