Adopt PEP 723 script metadata, uv build, and a .python-version file#392
Closed
tpvasconcelos wants to merge 3 commits into
Closed
Adopt PEP 723 script metadata, uv build, and a .python-version file#392tpvasconcelos wants to merge 3 commits into
tpvasconcelos wants to merge 3 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 219-dependency-groups #392 +/- ##
=======================================================
Coverage 100.00% 100.00%
=======================================================
Files 19 19
Lines 674 674
Branches 88 88
=======================================================
Hits 674 674
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Three more items from the
uvadoption tracked in #219, stacked on top of #388 (this PR targets the219-dependency-groupsbranch and should auto-retarget tomainonce #388 merges).PEP 723 inline script metadata (the "Script dependencies" item):
cicd_utils/cicd/scripts/extract_latest_release_notes.pynow declares its own dependencies as PEP 723 inline metadata, with a#!/usr/bin/env -S uv run --scriptshebang, so it can be executed standalone.release-notestox env becomes a thin wrapper arounduv run --no-project --script ...(no more env dependencies to install), sotox -e release-notesand the release workflow keep working unchanged.cicd_utilsdependency group as well: the unit tests intests/cicd_utils/test_scripts/import the script's functions and need them importable in the test env. Both places carry cross-referencing comments.test_scripts_are_executable.pynow also accepts theuv run --scriptform.open_in_browser.pywas left alone - it is stdlib-only, so there are no dependencies to declare.uv build: thebuild-diststox env usesuv buildinstead ofpython -m build(dropping thebuilddependency;twine check --strictis kept). Also addedskip_install = truesince building dists doesn't require installing the package into the env - wheel installability is already covered by the test envs..python-version: pins the default dev interpreter to 3.10 (the lowest supported version, matchingBASE_PYTHONin the Makefile anddefault_language_versionin pre-commit), so plainuv venv/uv syncpicks the right Python. Added toMANIFEST.into keepcheck-manifesthappy.Locally validated:
tox -e release-notesandtox -e build-distsboth pass (twine check OK), and the fulltests/cicd_utilssuite passes (24/24).Related issues
Related to #219. Stacked on #388.
PR check list
docs/reference/changelog.md.📚 Documentation preview 📚: https://ridgeplot--392.org.readthedocs.build/en/392/