question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Relax install_requires constraints

See original GitHub issue

Based on https://packaging.python.org/discussions/install-requires-vs-requirements/ “It is not considered best practice to use install_requires to pin dependencies to specific versions”.

We need to loosen up install_requires while keeping the CI stable. We don’t have good, documented reasons for the lower/upper boundaries. Maybe we could just pin to major versions and let the minors fly free? And then, for CI we could setup a bot that checks for updates weekly and raises a PR with an updated minor version for each requirement (with pur: https://pypi.org/project/pur/) to make sure we’re testing against the latest available versions.

Context:

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
m-szalaycommented, Dec 1, 2020

The way python devs are going at this is convoluted to say the least… I cannot believe that they pulled the switch on the new dependency resolution “feature” without allowing for a reasonable override method… forking the dependency and loosen the requirements as the standard solution is… questionable. Having said that, to fix the current blocking issue, having >= + blacklist sounds good to me.

0reactions
mpharrigancommented, May 26, 2021

Can we just freeze depth=1 or depth=2 of our dependency graph? I guess it technically wouldn’t be a reproducible build but it’s more than what we have now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Relaxing / Ignoring constraints during dependency resolution
I want this command to remain simple, so that new contributors can have an easy time getting started. $ pip install -r requirements/dev.txt...
Read more >
Adding and Updating Software in Oracle® Solaris 11.3
Relaxing Version Constraints Specified by Constraint Packages. A constraint package specifies which versions of packages can be installed.
Read more >
PIP Constraints Files - python - Stack Overflow
Constraints files are requirements files that only control which version of a requirement is installed, not whether it is installed or not.
Read more >
how to solve the error regarding constraint relax in linear ...
how to solve the error regarding constraint relax in linear analysis tool ... It is hard to say what is happening without knowing...
Read more >
Relax Mode | Inventor - Autodesk Knowledge Network
If you want to add the new constraint or dimension, you need to: Find the conflicted constraints and delete them manually. Find the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found