-
Notifications
You must be signed in to change notification settings - Fork 15
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
Pin pyproject dependencies #2154
Pin pyproject dependencies #2154
Conversation
5871fe9
to
e4fa6be
Compare
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.
I don't think this is the way I want to go.
We loose the pinned dependencies here as we only have direct dependencies. That would make debugging more difficult and docs builds unreproducible.
I think there is an advantage to having the minimal dependencies for development (for example, when we had to set a minimum patch version for pulumi-azure-native
) and the full pinned dependencies. pip-tools
feels like a good, hosting agnostic way to do that.
A better solution might be to figure out how to support a requirements.in
with the full dependencies going to pyproject.toml
rather than requirement.txt
In principle pinning direct dependencies should be OK. If any of the functions from our directly-called libraries change their behaviour because of the specific version of their dependencies then we actually depend on that library too and we should be explicit about that. I disagree that having minimal dependencies listed in |
@JimMadge : Transitive dependencies now pinned using |
e45b32c
to
57d002a
Compare
dfb3480
to
e58dd19
Compare
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.
Happy to merge this as it doesn't look like there is a sensible way to do what we would ideally want.
We can review that again in the future.
✅ Checklist
Enable foobar integration
rather than515 foobar
).develop
.🚦 Depends on
n/a
pyproject.toml
dependabot
pip install ".[test]"
Justification:
Potential issues:
This only pins direct dependencies, not the things that those packages depend onpyproject.toml
hatch-pip-compile
which is a built-in version of what we were previously doing manuallyrequirements
files🌂 Related issues
Part of #2084
🔬 Tests
Tested on a fork of this repository - dependabot is updating
pyproject.toml
as expected.