-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: dynamic versioning for hatch #156
Conversation
Hmm weird, this does not fail locally + if I add the |
src/scicookie/{{cookiecutter.project_slug}}/{{cookiecutter.package_slug}}/__init__.py
Outdated
Show resolved
Hide resolved
Hi @Saransh-cpp When you run |
Oh, I missed that. Thanks, @Anavelyz! Will revert this. |
@Saransh-cpp thanks for working on that!
|
Thanks for the quick review, @xmnlab!
That would be very similar to the other backends, but it would just require updating the version manually in
Yes, that could be an issue.
Yes, that would be nice. Right now every backend offers dynamic versioning by default, the only difference being that they do execute functions while obtaining that version from I'd be happy to convert this PR into "static/dynamic" choice PR, or keep this as it is and offer users only "dynamic" versions! :) |
@Saransh-cpp thanks for the explanation! if so, in this case it would still be static .. so it looks good to me in general. but I think that the hard-coded |
Yes! Agreed, I will switch to |
thanks for working on that @Saransh-cpp ! LGTM! |
__version__ = version | ||
{%- endif %} | ||
__author__ = {{ QUOTE }}{{ cookiecutter.project_version }}{{ QUOTE }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Saransh-cpp Why did you change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohhh good catch!! and sorry for my dynamic reading in the review XD
I really need some vacations! I can fix that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 This PR is included in version 0.5.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Pull Request description
This PR switches
hatch
to use dynamic versioning, similar toflit
-scicookie/src/scicookie/{{cookiecutter.project_slug}}/build-system/flit-pyproject.toml
Line 47 in 03377b0
and
pdm
scicookie/src/scicookie/{{cookiecutter.project_slug}}/build-system/pdm-pyproject.toml
Line 47 in 03377b0
in this repository. There are also some minor fixes which I found while using the repo -
Fixes #153
How to test these changes
...
Pull Request checklists
This PR is a:
About this PR:
Author's checklist:
Additional information
Reviewer's checklist
Copy and paste this template for your review's note: