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.

Migrate to the next version of Python requests when released

See original GitHub issue

Hello Maintainers,

I am a PMC member of Apache Airflow, and I wanted to give you a bit of heads-up with rather important migration to the upcoming version of requests library in your Python release.

Since you are using requests library in your project, you are affected.

As discussed at length in https://issues.apache.org/jira/browse/LEGAL-572 we found out that the chardet library used by requests library was a mandatory dependency to requests and since it has LGPL licence, we should not release any Apache Software with it.

Since then (and since in Airflow we rely on requests heavily) we have been working with the requests maintainers and “charset-normalizer” maintainer to make it possible to replace chardet with MIT-licensed charset-normalizer instead so that requests library can be used in Python releases by Apache projects.

This was a bumpy road but finally the PR by @ashb has been merged: https://github.com/psf/requests/pull/5797 and we hope soon a new version of requests library will be released.

This is just a heads-up. I will let you know when it is released, but I have a kind requests as well - I might ask the maintainers to release a release candidate of requests and maybe you could help to test it before it is released, that would be some re-assurance for the maintainers of requests who are very concerned about stability of their releases.

Let me know if you need any more information and whether you would like to help in testing the candidate when it is out.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
Kamicommented, Oct 24, 2021

Since Python 3.5 is EOL for more than a year now (https://endoflife.date/python), I think it’s reasonable for us to drop support for it in the release after the next one.

Next one will be 3.4.0 and should go out this year and the one after that will be 3.5.0 and will likely go out some time next year.

What do other people think? /cc @c-w @vdloo @tonybaloney @micafer @RunOrVeith

EDIT: Per package download stats (https://pypistats.org/packages/apache-libcloud), Python 3.5, on average, represents less than 2% of daily downloads.

0reactions
Kamicommented, Nov 11, 2021

@potiuk Thanks for your input and additional context (and of course many thanks for bringing this issue to our and other projects attention and coordinating with the requests project, etc.)

@justinmclean Also thanks for your input. With all the info above, we would like to get some additional clarify on how to proceed here.

We will of course comply with any legal requirements, but we need to know how to proceed so we can plan and execute accordingly.

If there is no other way, but to update our setup.py metadata file but to require requests >= 2.26.0 (which will likely cause issues with a lot of our users and they won’t be able to upgrade), we will also need to drop support for Python 3.5 since that version is only available for Python >= 3.6 (that’s something we have been planning to do in the future anyway, but not just yet).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrate to the next version of Python `requests` when released
Hello Maintainers, I am a PMC member of Apache Airflow, and I wanted to give you a bit of heads-up with rather important...
Read more >
Migrating outbound requests - App Engine - Google Cloud
We recommend that you migrate Python 2 apps to Python 3. ... For compatibility with Python 2, we recommend you pin the requests...
Read more >
Porting Python 2 Code to Python 3 — Python 3.11.1 ...
Typically the two best ways of doing that is reading the “What's New” doc for each release of Python 3 and the Porting...
Read more >
Upgrading Python Versions - Painless Migration to Python 3
Python 3.8.2 is the newest major release of the Python language in ... How to Update Python Versions ... from urllib.request import urlopen...
Read more >
Community Updates — Requests 2.28.1 documentation
Requests support for Python 2.7 and 3.6 will be ending in 2022. While we don't have exact dates, Requests 2.27.x is likely to...
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