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

Do you really need this specific version of requests? #26

Closed
bochecha opened this issue Mar 22, 2017 · 4 comments
Closed

Do you really need this specific version of requests? #26

bochecha opened this issue Mar 22, 2017 · 4 comments

Comments

@bochecha
Copy link

I'm trying to use your Vero client in a project, and overall it looks great!

I just have one tiny issue, but it's turning into a blocker.

Your Vero client requires requests==2.7.0.

I have another dependency in my project which requires a much more recent version of requests.

Maybe you meant to require requests>=2.7.0 instead?

@mwarkentin
Copy link
Contributor

@bochecha You're right, we're not really playing nicely as a library here.

@ryanwilsonperkin Any thoughts on this? I think we can probably switch from

requires = ['requests==2.7.0']
tests_require = ['mock==1.0.1']

to

requires = ['requests']
tests_require = ['mock']

@ryanwilsonperkin
Copy link
Contributor

@bochecha thanks for flagging this for us! ⭐️
requests is pretty good at backwards compatibility, and it looks like there haven't been any breaking changes to the functionality that we're using here in the latest releases. Given that, I feel comfortable taking @mwarkentin's suggestion and un-limiting the versions we require.

If there's demand for it, I'd consider dropping these external dependencies altogether and just using urllib. The tests could be run in python3 which has mock built right in.

@ryanwilsonperkin
Copy link
Contributor

@bochecha try installing our new 2.0.1 version and let us know if that works for you 😄

@bochecha
Copy link
Author

Thanks for fixing this so quickly!

(and sorry for not coming back sooner)

If there's demand for it, I'd consider dropping these external dependencies altogether and just using urllib.

We already use requests for other things, so we're not going to be the ones asking this. 😉

The tests could be run in python3 which has mock built right in.

We use this module in a Python 2 application, so if you dropped the mock dependency and only ran the tests on Python 3, we would be worse for it.

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

No branches or pull requests

3 participants