- Notifications
You must be signed in to change notification settings - Fork73
Fix deprecated license syntax#549
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecovbot commentedApr 9, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## main #549 +/- ##========================================= Coverage 100.00% 100.00% ========================================= Files 28 28 Lines 1555 1555 ========================================= Hits 1555 1555 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e801cba to448f46fCompare
niksirbi left a comment
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.
Thanks@sfmig for taking the initiative to tackle this.
On your questions:
- It feels a bit odd that we set different lower bounds for the setuptools version used in building and in checking the manifest file... Any thoughts about this?
I am worried about this to be honest, it might cause weird mismatches between local hooks and CI, which will be hard to debug.
- What is the reasoning behind running check-manifest in the precommits with no-build-isolation? From the check manifest repo, this option was introduced "so that check-manifest can succeed buildingpep517-based distributions without an internet connection". But: "With --no-build-isolation, you must preinstall the build-system.requires beforehand."
I had totally forgotten the reason, but luckily git never forgets.
This was added to the cookiecutter by@lauraporta inthis PR, approved by me.
However, I now think we should re-examine and check whether it's truly necessary.
My preference would be to remove the--no-build-isolation arg, which means we will no longer needadditional_dependencies. This way we keep a single source of truth — the[build-system].requires inpyproject.toml. The added benefit is that each manifest check will happen in a fresh env, making sure we're not relying on package versions that happened to be locally present. However, I'm not 100% sure if I'm correctly understanding the docs on this.
- Should
build-system.requiresand the additional dependencies forcheck-manifestmatch?
I'd say yes, if we follow my proposal above, and it works, we will only have the former (yay for DRY).
- If we agree to implement this, should we add it to other NIU repos and/or the cookiecutter?
I would be in favour of that, unless we can't do that because of reasons mentionedhere.
niksirbi commentedApr 28, 2025
Beware that we might have a problem with |
448f46f to69583eaComparelauraporta commentedApr 29, 2025
Hey@sfmig, I faintly remember the bug related to
So no need of additional pre-installations. |



Uh oh!
There was an error while loading.Please reload this page.
Description
What is this PR
Why is this PR needed?
In CI we are getting two warnings re the syntax used to specify the license in
pyproject.toml:Thefirst one says:
This followsPEP 639 and is also explained in thePython packing guide.
Thesecond one says:
This is also explained in the samePEP and in the packaging guidehere.
What does this PR do?
In pyproject.toml:
license-filesfieldIn the pre-commit config file
check-manifest --no-build-isolation. The lower-bound forsetuptoolsneeds to be set to 77, since that is the version when the new license syntax is supported (seehere).Question
check-manifestin the precommits withno-build-isolation? From the check manifest repo, this option was introduced "so that check-manifest can succeed buildingpep517-based distributions without an internet connection". But: "With--no-build-isolation, you must preinstall thebuild-system.requiresbeforehand."
build-system.requiresand the additional dependencies forcheck-manifestmatch?References
\
How has this PR been tested?
pre-commitspasscheck-manifest --no-build-isolationthrows no warnings locallyIs this a breaking change?
\
Does this PR require an update to the documentation?
\
Checklist: