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

Unpin the requests library #98

Merged
merged 3 commits into from
Apr 26, 2016

Conversation

TylerLubeck
Copy link
Contributor

Hi all,

Is pinning requests>2.9.1,<3 necessary? We have a few packages that rely on both tldextract and requests 2.2 (long story), and we're getting version conflicts because of it.

I ran the test suite with requests 2.2.1, requests 2.8.1, and requests 2.9.1 and they all pass.

Related to #89

@john-kurkowski
Copy link
Owner

requests 2.9.1 was an arbitrary starting point. Happy to expand this to all of 2.x, as you've demonstrated it's compatible.

@@ -5,6 +5,6 @@ pytest==2.7.3
pytest-gitignore==1.3
pytest-mock==0.9.0
pytest-pylint==0.4.0
requests>=2.9.1,<3
requests
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this promise compatibility with all versions of requests? This PR doesn't test requests 1.x. And who knows what breaking changes 3.x will incur. Makes me 😟 .

But if that's the Python way, ok!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately it doesn't promise compatibility. Generally, I've avoided pinning in library packages unless there's a known version of a dependency that breaks things. This allows apps to pin their dependencies as needed.

Funnily enough, this is how we found this issue in the first place. We had an internal package pinning tldextract>1.2 and an internal application pinning requests==2.2. tldextract auto-updated on a release and we ran in to a hell of version conflicts.

I just did another test run locally with requests==2.0.1 and it failed. I'll bump the pin to be >=2.1.0 since that's the lowest known working version. I'm of the opinion that leaving the upper-end unrestricted (i.e. don't pin requests<3) is alright, since it's not yet known to fail.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good! Thanks for the explanation!

@mauricioabreu
Copy link
Contributor

LGTM 👍

I am not a fan of pinning dependencies.

@john-kurkowski john-kurkowski merged commit 8787bd8 into john-kurkowski:master Apr 26, 2016
@TylerLubeck TylerLubeck deleted the unpin_requests branch April 26, 2016 04:59
@TylerLubeck
Copy link
Contributor Author

Thanks for the quick turn around! And thanks for maintaining this package - it's been a lifesaver.

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

Successfully merging this pull request may close these issues.

3 participants