PIG 3 - Plan for dropping Python 2.7 support #1278
Conversation
The Fermi STs only support python 2 so for the moment Fermipy can't update to Python 3 (although some modules that don't import the STs have already been updated). To the extent that we would like to continue moving functionality from Fermipy into gammapy we would prefer if gammapy could keep python 2 support until we can update Fermipy to Python 3. I've recently had some discussions within the Fermi team and there seems to be support for migrating the Fermi STs to python 3. However the timeline is still pretty uncertain and I doubt a python 3 compatible ST release would be ready sooner than a ~year from now. We're having our software meeting the week after next so we will have some more information about timelines at that point. |
@woodmd or @dimauromattia or @eacharles - is there a plan / timeline for Python 3 support in the Fermi ST and Fermipy? A recent CTA Gammapy user survey (50 responses) showed that 40% still use Python 2.7, which I found surprising. I thought the fraction of Python 2 users very small already. So overall it looks like we'll keep supporting Python 2.7 for a while. But given that many packages (e.g. Jupyter / ipython / Astropy) have dropped Python 2.7 support and a more (e.g. Numpy and core Python itself) will drop it in 2019. It would be nice if we in Gammapy could as well at some point. There's also https://github.com/astropy/astropy-healpix and https://github.com/astropy/regions which very likely will mature and land as |
@woodmd @dimauromattia @eacharles @adonath @registerrier - I have updated the PIG (basically re-written). Please have a look and comment here. The proposal is to have Gammapy v0.10 in January 2019 as the last Gammapy version to support Python 2.7. And to support Fermipy, we will backport bug-fixes to v0.10.x and make bugfix releases there on request / as needed. This allows Gammapy to move ahead in 2019 to work towards Gammapy 1.0 and an application as CTA science tools (see #1841), and I hope is an OK solution for Fermipy? |
All earlier Gammapy versions, up to Gammapy v0.10, support Python 2.7 and of | ||
course will remain available indefinitely. | ||
|
||
Use surveys in 2018 have shown that most Gammapy users are already on Python 3. |
adonath
Nov 30, 2018
Member
Typo -> "User surveys..."
Typo -> "User surveys..."
I didn't receive any further comments on this in the past week. Merging this now. Like I already said: if anyone needs help with Python 2 vs 3 or in general Python issues and questions, I or the others from the Gammapy team are happy to help any time! |
This PIG is a proposal that we should drop Python 2.7 support with Gammapy and users and developers are encouraged to update to Python 3 now. No timescale is proposed yet, this is just to mention the goal and have a place for discussion on this question.
cc @woodmd and @eacharles from Fermipy.