Repository navigation
Drop support for Python 3.6 - #7006
Conversation
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.6", | ||
| "Programming Language :: Python :: 3.7", | ||
| "Programming Language :: Python :: 3.8", |
There was a problem hiding this comment.
Good question, I've not tried to run on 3.9 yet. We can open a PR which adds a Python 3.9 job to CI to see what issues pop up. So far, in distributed, I think dask/distributed#4168 is the only reported 3.9 compatibility issue
| @@ -1,58 +0,0 @@ | |||
| name: test-environment | |||
| channels: | |||
| - conda-forge | |||
There was a problem hiding this comment.
We might want to keep this build, but with eg py 3.7, since its testing specific versions of numpy and pandas?
There was a problem hiding this comment.
Do you think maybe min, max, and upstream is enough for our numpy, pandas matrix?
There was a problem hiding this comment.
Yeah, that sounds good for the time being. We can add an intermediate numpy / pandas version when add a Python 3.9 CI build
There was a problem hiding this comment.
Given the number of special cases we are having for different versions of pandas at the moment (due to not catching them in time the last months), I think it would help to keep 3 builds for now (for min, max and one in the middle). At least that helps for fixing all the CI builds in #6996
Or could we directly add a 3.9 build instead, to not have to drop a build? (only change python versions)
Or are there many failures with 3.9?
There was a problem hiding this comment.
Please see this thread ( #7006 (comment) ).
Yep Python 3.9 was added in PR ( dask/distributed#4460 )
| - fsspec>=0.6.0 | ||
| - sqlalchemy | ||
| - pyarrow=1.0.* | ||
| - pyarrow=0.14.* |
There was a problem hiding this comment.
I don't think either of these are intentional changes
There was a problem hiding this comment.
I think that was meant to keep the same "minimum" version that is tested (the versions that are currently in the 3.6 environment)
|
See dask/distributed#4460 for Python 3.9. What is missing in this PR? |
Overall I think this PR is okay barring the merge conflict I need to fix. However, following on @jorisvandenbossche's comment #7006 (comment) we may be better off waiting to merging this PR until we have a Python 3.9 CI build. This will give us better Pandas / NumPy / PyArrow version coverage in tests. There's also less pressure to drop 3.6 than there is to add 3.9. I see you've started adding Python 3.9 for |
You could also keep a third build but with Python 3.8 (which can then be swapped to Python 3.9 when that gets added), then this PR doesn't need to be blocked by Python 3.9 support. |
|
Would it makes sense to do this after the upcoming release? Sorry if this was already answered elsewhere |
|
My plan was to include this (and dask/distributed#4390) in the release tomorrow as other projects in the space (e.g. pandas, NumPy, RAPIDS, etc.) have already dropped 3.6 and there wasn't any pushback in dask/community#66. That said, it's not a big deal to wait until after the release either. Is there a group you're aware of that would be negatively impacted by including this in the release tomorrow? |
|
I don't think there would be an issue dropping. Though have occasionally seen a Python 3.6 user around ( dask/distributed#4314 ). Not that this should influence us too much (especially given dependencies are moving off Python 3.6) That said, we have supported Python 3.6 up to this point, it doesn't seem like it will cost much to include it in one last release. Also I've found it works better to give people as much warning as possible that a version is being dropped. Doing that right after release and mentioning in the release notes that "this is the last version that supports X" helps give users plenty of lead time to adjust to that change |
|
Sure, it won't cost much to keep our existing Python 3.6 support in for one last release. This will be a rare version of Dask that supports 4 versions of Python! I'll be sure to include a comment in the release notes which mentions we plan to drop Python 3.6 in the next release |
| - numpy=1.17 | ||
| - pandas=1.1 | ||
| - numpy=1.15 | ||
| - pandas=0.25 |
| - fsspec | ||
| - sqlalchemy | ||
| - pyarrow=1.0 | ||
| - pyarrow=0.14 |
| packages=packages + tests, | ||
| long_description=open("README.rst").read() if exists("README.rst") else "", | ||
| python_requires=">=3.6", | ||
| python_requires=">=3.7", |
There was a problem hiding this comment.
This may cause an issue in the distributed environment-3.7.yml, see
https://github.com/dask/distributed/blob/5ea74cd7ec3cf5b90c5e6d5a31fb7dc3888ea242/continuous_integration/environment-3.6.yaml#L43-L46
Needs testing
There was a problem hiding this comment.
I'm temporarily pointing the distributed CI to this PR over in dask/distributed#4390. My aim is to avoid the issue you're pointing out. Let me know if this won't properly check that
Missing changes:
|
|
No, s3fs should be fine. Some py36 problems can now be forgotten.
…On March 7, 2021 6:17:12 AM EST, crusaderky ***@***.***> wrote:
- environment-3.6.yml used to pin an old version of s3fs; shouldn't the
same appear in 3.7 now?
- we don't have a <3.8 enviroment without pickle5 anymore; should we
care?
Missing changes:
- develop.rst
- compatibility.py (dataclasses) + everything importing from it
- test_delayed.py:100 (dataclasses)
- test_base.py:484 (dataclasses)
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#7006 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
|
Thanks all for reviewing! |
|
Thanks James! 😄 |
For additional context see the discussion over in dask/community#66
black dask/flake8 dask