-
Notifications
You must be signed in to change notification settings - Fork 473
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
[minor] Dependency management with poetry #1202
Conversation
Model Benchmark
|
@noxan I concur that this would be the right thing to do if our package would not be used within other packages or in environments with other packages. Does poetry allow us to relax, rather than tighten the dependency bounds? A small point is the familiarity most developers/users have with pip vs poetry. |
Also I agree with your argument of not defining them to tightly as it creates issues. But having unbound dependency versions creates other kinds of issues, e.g. our package breaks if another dependency introduces a breaking change. And in my experience it is better to be explicit about versions, it is easy to report a too tightly bound dependency and relax it. In contrary you can spend hours on figuring out which versions are incompatible, and why which package breaks. Especially if they are not explicitly defined, everything works fine, you recreate your development environment or a new developer joins the team and nothing works anymore - because the dependency versions luckily overlapped during your first project setup, just now things changed and nobody has a clue what...
How tightly we define our dependencies is independent of poetry or pip. They both allow the same options.
Into what kind of issues? That package versions are not compatible? At least it would be explicit then, good look trying to figure out which exact version of a dependency (3rd party) of your dependencies are incompatible to another.
Agree - yet poetry also makes a lot of things a lot easier |
Another thing which I became aware of: we use a lot of dependencies which are actually not supporting our python version anymore, e.g. Another example: |
3172eda
to
32f2f16
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.
LGTM @noxan Please have a look at the failing test again
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #1202 +/- ##
==========================================
+ Coverage 89.67% 89.77% +0.10%
==========================================
Files 38 38
Lines 4977 5055 +78
==========================================
+ Hits 4463 4538 +75
- Misses 514 517 +3 see 4 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
🔬 Background
🔮 Key changes
3.7.1
(Project dependencies may have API risk issues #911)❓ Discussion points
requirements/*.txt
setup?📓 Open tasks
✨ Why poetry?
tests
,docs
) and unifies them all into a single configuration filepoetry list --outdated
) and update them accordingly