Conversation
Codecov Report
@@ Coverage Diff @@
## main #1716 +/- ##
=======================================
Coverage 93.31% 93.31%
=======================================
Files 75 75
Lines 15616 15616
=======================================
Hits 14572 14572
Misses 1044 1044 |
|
I think we should wait a bit longer to merge this. While I'm a huge fan of dropping support for older versions of Python, if people are still using it we should still maintain a modicum of support for at least the next few months. It appears, looking at numpy PyPI download stats, that there's still significant usage of Python 3.6, around the order of 18%. What we should aim for is a simple validation that the package works under 3.6 and that we don't add any non-backwards compatible features, at least until Python 3.10 is supported by VTK on PyPI. |
|
+1 for waiting a bit longer However, I'm wondering if those download stats should be taken with a grain of salt... I suspect most of those downloads are from CIs and most of the 3.6 downloads are just for testing. I'd be curious to see how those stats change in the next few months Overall, I think we should wait until it becomes a burden before dropping support |
|
FWIW, conda-forge dropped 3.6 a while ago so this is only relevant to PyPI |
|
Based on a glance of the release notes the large changes in the subsequent two versions were
Overall probably nothing we can't live without. The substantial improvement was the addition of f-strings in 3.6. But we already have that. |
|
I'm +1 on dropping support now, but I can see the other points too.
This was for the native pvd reader that was added. Otherwise, the implementation is much lengthier. |
Oh, I wasn't complaining :) I just haven't yet run into a good use case for dataclasses, and I wouldn't have guessed that we have one in PyVista. Especially now that it's stdlib there's no reason not to use it if it makes life easier. |
Agreed. I can see some edge cases where this is useful, but I don't encourage its use. |
I can pretty much only accept their use in the opening line of a loop or conditional clause, i.e. something like while line:=f.readline():
# do something until EOFAnything else is instant spaghetti code. |
|
We should look at #2251 and makes sure everything 3.6-related is handled |
|
One more reason why this would be nice to have: in #2175 a monstrous type alias could be replaced by just the name of the alias in the built docs if we can use the |
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Sure thing! In the PR @dcbr introduced a type alias Normally if we had a from __future__ import annotationsa.k.a. PEP 563. And this feature is only available since Python 3.7, see e.g. the table at the bottom of the |
|
Got it. Sounds nice. |
adeak
left a comment
There was a problem hiding this comment.
There seem to be a few things missing spotted by @larsoner in https://github.com/pyvista/pyvista/pull/2251/files, we should adopt their changes here.
larsoner
left a comment
There was a problem hiding this comment.
Looks like a few simplifications in setup.py are missing
And some bumps in doc/extras/building_vtk.rst
larsoner
left a comment
There was a problem hiding this comment.
Pushed a commit for the missing doc changes, plus a comment about deps being kept up to date by dependabot
|
Thanks @larsoner. Ended up committing at the exact same time you were. Recommending that we merge this. |
|
Agreed! |
tkoyama010
left a comment
There was a problem hiding this comment.
LGTM for additional changes. Thank you for making up the shortfall.
|
All green, feel free to merge! |


Overview
🌇 Python3.6 security support Ends in 2 months and 2 weeks (23 Dec 2021). Please merge this PR after the support ends.
Details