On 21 Sep 2021, at 04:09, John ZuHone <jzuhone@gmail.com> wrote:+1On Sep 20, 2021, at 6:45 PM, Michael Zingale <michael.zingale@stonybrook.edu> wrote:sounds good to me.On Mon, Sep 20, 2021 at 2:44 PM Clément Robert via yt-dev <yt-dev@python.org> wrote:_______________________________________________Dear yt dev team,As was previously mentioned in yt 4.0.0's release notes, we're currentlyplanning to drop support for Python 3.6 in our next feature release (4.1.0)I propose that this change be performed on the dev branch of yt by lateOctober this year, but not earlier than October the 20th.As was discussed on Slack, I would like to send an official announcementto yt-users@python.org, but I’ll leave open to discussion for a week first, oras long as necessary for the discussion to resolve happily.—Here's the PR to drop Python 3.6 https://github.com/yt-project/yt/pull/2917Please take minute to either request changes, discuss and/or approve it.—Nice implicationsThis means we'll soon be able to use Python 3.7+ only syntax and features.Here are the two key highlights that I personally think are most impactful for yt:
- `from __future__ import annotations` can be used to leverage modern Python annotations features from more recent versions (as late as 3.11 !) This will be extremely useful to improve typing in yt, and in support to YTEP 0038 https://github.com/yt-project/ytep/pull/17 Here's a gist with some showcase examples of how this __future__ import helps simplifying typed code https://gist.github.com/neutrinoceros/0eaa046a00689254dee0738c65c9bdfc
- the `dataclasses` module becomes available https://docs.python.org/3/whatsnew/3.7.html#whatsnew37-pep557
See the detailed "what's new" note from Python 3.7.0 for more https://docs.python.org/3/whatsnew/3.7.htmlAdditional notes
- Python 3.6 is 5 years old and will be EOL (end of life) by December https://www.python.org/dev/peps/pep-0494/
- Numpy dropped support for Python 3.6 in numpy 1.20.0, released in January 2021 https://github.com/numpy/numpy/releases/tag/v1.20.0
- Matplotlib dropped support fot Python 3.6 in matplotlib 3.4.0, released in March 2021 https://github.com/matplotlib/matplotlib/commit/f9907b49f9d00c03cf014a25d057d0d09d43d8cf
- Python 3.10 will be officially released early October https://www.python.org/dev/peps/pep-0619/
- Adding support for 3.10 should be a breeze^{TM}: we've been running a subset of our test suite against it (+ future versions of matplotlib and numpy) for a couple months, so the expected most important bottleneck for us will depend on when numpy and matplotlib are able to publish wheels for 3.10
- The plan is to first add support to 3.10 and *then* drop 3.6.
- This is in agreement with NEP 29, which was coauthored by our own release manager, Madicken Munk https://numpy.org/neps/nep-0029-deprecation_policy.html
- Various 3.7+ idioms will now be continuously enforced with pyupgrade https://github.com/asottile/pyupgrade which is already part of our pre-commit toolbelt.
Cheers, and have a great weekClément
yt-dev mailing list -- yt-dev@python.org
To unsubscribe send an email to yt-dev-leave@python.org
https://mail.python.org/mailman3/lists/yt-dev.python.org/
Member address: michael.zingale@stonybrook.edu
--_______________________________________________Michael ZingaleProfessor of Physics and AstronomyDept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800phone: 631-632-8225e-mail: Michael.Zingale@stonybrook.eduweb: https://zingale.github.iogithub: https://github.com/zingale
yt-dev mailing list -- yt-dev@python.org
To unsubscribe send an email to yt-dev-leave@python.org
https://mail.python.org/mailman3/lists/yt-dev.python.org/
Member address: jzuhone@gmail.com