-
Notifications
You must be signed in to change notification settings - Fork 76
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
Deprecate Python 2.x #693
Comments
At IPP, we will be happy to participate to the big switch, but we will be ready to do that around next december ... |
Shall we announce the end of Python 2 compatibility for January 1st 2019 then? It seems a reasonable amount time for re-users to adapt their code. |
@fpagnoux : I am not against having a strong deadline. The best way to keep every contributors happy to reach it might be helping them to go through the necessary steps to transition to Python 3. One point thought, using Python 2 until jan 2019 should be possible. And so the best way is having code supporting both Python until then. Since @Anna-Livia and you went through the process, could you list somewhere if it is not to cumbersome the necessary steps to go through and I will definitively try to use that info to update IPP codebase and other packages like openfisca-survey-manager and openfisca-france-indirect-taxation (wich is BTW laggard in core too) |
@jmdallais, @Lashchuk , @ThibaultCCMSA , @SChiusa , @JenniferTelep , @LacombeEric, @frtomas , @mtifarine , @marchand-laetitia-msa, would you be able to move PNDS servers to Python 3 before early 2019 ? |
Right now, the code is tested to run both in Python 2.7 and 3.6. So no worries until January!
Yes, we can work on some documentation to support re-users migrations. We are right now still learning how to do it best, but we'll share recommandations when we have stronger convictions. If I can recommend two things to get ready to migrating your codebase:
|
Hello @jmdallais @guillett Migration delay to switch to Python 3 seems really feasible, but I need to check with technical teams. |
@guillett : we plan to take advantage of the python 3 switch to get rid of the apache / mod_wsgi stack we're currently using to serve openfisca on our infrastructure. Which python webserver would you advocate to replace this stack ? Which one do you use in production ? |
We use gunicorn and nginx in MesAides. |
@guillett : is it possible to directly switch to a Python 3.7 interpreted or is it too risky at the moment ? |
@tchabaud I don't understand your question. Please feel free to call me next week. |
@tchabaud Just for your information, I just ran a CircleCI build against OpenFisca-France and Python 3.7, and there were no visible problems: https://circleci.com/gh/openfisca/openfisca-france/3293#queue-placeholder. |
Everything seems ready, we just need to wait for January 1st to:
|
Thanks @fpagnoux 👍. I'll create another issue to track down shut down and close this one. |
As per python/devguide#344, Python 2 will be sunset come Jan 1st, 2020.
Additionally, a number of projects used in conjunction with OpenFisca have pledged to stop supporting Python 2 soon :
Notably, NumPy's Python 2 maintenance mode will start come 2019.
Let's open the discussion and tackle this effort together.
To-do:
EDIT by @fpagnoux:
Todo on January 1st:
from __future__
,from builtins
andfrom future
importsThe text was updated successfully, but these errors were encountered: