Skip to content

Migrate project to modern python PEPs and uv#24

Merged
balsa-sarenac merged 12 commits intomainfrom
chore/modernize-uv-pep517
Feb 25, 2026
Merged

Migrate project to modern python PEPs and uv#24
balsa-sarenac merged 12 commits intomainfrom
chore/modernize-uv-pep517

Conversation

@balsa-sarenac
Copy link
Contributor

No description provided.

Switch to PEP 517/621 metadata so installs work with build isolation (including uv pip) and remove legacy setup.py-driven configuration.
Use uv pip for dependency installation so CI matches modern build isolation workflows and avoids legacy pip/setuptools bootstrapping.
Route install/uninstall operations through uv pip when available, while keeping pip for list/check. This avoids relying on deprecated pip behaviors and makes upgrades resilient to stdout changes.
Stop asserting pip-specific uninstall/install output so tests remain valid when installs are performed via uv pip.
Use python -m build to generate test wheels so fixture generation matches modern, isolated build workflows.
Add a uv-first dev install snippet so contributors use the same modern installer behavior as CI and production.
Preserve symlinks when cloning venvs for blue/green upgrades and treat failed upgrade subprocess output as empty so error paths don't crash with TypeError.
Use uv pip install/uninstall -p <python> so installs target the intended interpreter even when the venv is not activated.
Avoid untracked upgrade/_version.py after editable installs.
CI previously used `uv pip install --system` because no virtualenv existed, which installs into the runner interpreter environment. Create and target a per-job venv instead to keep dependency state isolated and reduce cross-runner contamination risk (especially on self-hosted runners).
The function already treats a missing version as valid input; updating the signature prevents misleading type assumptions and makes intent explicit.
@balsa-sarenac balsa-sarenac force-pushed the chore/modernize-uv-pep517 branch from e9fecf2 to 39e0853 Compare February 24, 2026 23:59
@balsa-sarenac balsa-sarenac requested a review from sale3 February 25, 2026 00:12
@balsa-sarenac balsa-sarenac merged commit 1b7995d into main Feb 25, 2026
27 checks passed
@balsa-sarenac balsa-sarenac deleted the chore/modernize-uv-pep517 branch February 25, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants