Skip to content
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

Pinned dependencies on package install #14

Open
doshitan opened this issue Jan 24, 2025 · 0 comments
Open

Pinned dependencies on package install #14

doshitan opened this issue Jan 24, 2025 · 0 comments

Comments

@doshitan
Copy link
Contributor

doshitan commented Jan 24, 2025

When pipx or uv go to install the tool, they determine the version of dependencies to install based on the project.dependencies section in pyproject.toml/the generic packaging metdata. At the moment we only specify lower bounds there for most packages. This should be okay in general, and when we know there's an issue with a particular package, we can add upper bounds or pin to a specific version.

But we develop and test mostly against the specific versions pinned in uv.lock, it might be nice if we could lock down the installs to these versions to avoid surprises.

Direct solutions

For uv, maybe astral-sh/uv#8729 (or something like the mentioned build plugin there).

Indirect solutions

One approach might be to run uv export --format requirements-txt --no-dev --no-editable --output-file cli-requirements.txt on package/lockfile updates.

If then fetched, for pipx could then maybe pipx inject nava-platform-cli -r cli-requirements.txt.

Or we could use that cli-requirements.txt to then update the project.dependencies section in pyproject.toml? Which is sub-optimal and makes updating more of a pain.

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

No branches or pull requests

1 participant