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

Remove upper bounds on dependency versions #821

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

victorlin
Copy link
Member

From Python Packaging User Guide:

It is not considered best practice to use install_requires to pin dependencies to specific versions

Most of these pins were added a couple years ago and there are now newer versions. For example pytest>=6.2.5 is required for Python 3.10 due to pytest-dev/pytest#8540.

Keeping the lower bounds in case of minimum version support that I might be unaware of.

Merging without approval given passing tests.

@victorlin victorlin self-assigned this Dec 30, 2021
@victorlin victorlin merged commit 73a07cf into master Dec 30, 2021
@victorlin victorlin deleted the victorlin/relax-dependency-versions branch December 30, 2021 19:44
@victorlin
Copy link
Member Author

I just realized the upper bound on Snakemake was intentional in #625. It looks like this is specific to Python <3.7. I'll leave this as-is since we are planning to drop support for 3.6 anyways (#793).

@huddlej
Copy link
Contributor

huddlej commented Jan 3, 2022

Ah, I misunderstood your original suggestion in Slack, I think, @victorlin. The dev dependencies don't need to be pinned, but we do want to keep the main deps and the "extra" deps pinned at major version numbers. Even though the Python docs say this is not a best practice, Python's own packaging "best practices" are not consistently followed and we have good reason not to follow this guideline. In our case, we want to protect against unexpectedly using Pandas 2.0, for example, when we haven't fully tested it.

The dev dependencies are less critical, since so few people use them and they don't need to be as conservatively pinned anyway.

Would you mind reverting just the major version pins here for the main and extra deps?

@huddlej huddlej added this to the Patch release 13.1.1 milestone Jan 10, 2022
huddlej added a commit that referenced this pull request Jan 21, 2022
Although we recently relaxed version pinning for development
dependencies [1], we still need to maintain major version limits for base
and full requirements to prevent unexpected issues when those
dependencies release new major versions. For example, a new major pandas
version has a potential to produce breaking changes.

[1] #821
@victorlin
Copy link
Member Author

@huddlej sorry, your comment got lost in my sea of GitHub notifications. Thanks for taking care of it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants