Skip to content

Drop support for Python 3.6 - #7006

Merged
jrbourbeau merged 9 commits into
dask:mainfrom
jrbourbeau:drop-py3.6
Mar 9, 2021
Merged

jrbourbeau merged 9 commits into
dask:mainfrom
jrbourbeau:drop-py3.6

Conversation

@jrbourbeau

Copy link
Copy Markdown
Member

For additional context see the discussion over in dask/community#66

  • Tests added / passed
  • Passes black dask / flake8 dask

Comment thread setup.py
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When do we add 3.9 here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was done in PR ( dask/distributed#4460 )

@@ -1,58 +0,0 @@
name: test-environment
channels:
- conda-forge

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to keep this build, but with eg py 3.7, since its testing specific versions of numpy and pandas?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think maybe min, max, and upstream is enough for our numpy, pandas matrix?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that sounds good for the time being. We can add an intermediate numpy / pandas version when add a Python 3.9 CI build

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think either of these are intentional changes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that was meant to keep the same "minimum" version that is tested (the versions that are currently in the 3.6 environment)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok. Thanks for clarifying!

@crusaderky

Copy link
Copy Markdown
Collaborator

See dask/distributed#4460 for Python 3.9.

What is missing in this PR?

@jrbourbeau

Copy link
Copy Markdown
Member Author

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 distributed over in dask/distributed#4460. Let's do something similar here first and then drop support for Python 3.6

@jorisvandenbossche

Copy link
Copy Markdown
Member

we may be better off waiting to merging this PR until we have a Python 3.9 CI build.

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.

@jakirkham

Copy link
Copy Markdown
Member

Would it makes sense to do this after the upcoming release? Sorry if this was already answered elsewhere

@jrbourbeau

Copy link
Copy Markdown
Member Author

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?

@jakirkham

Copy link
Copy Markdown
Member

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

@jrbourbeau

Copy link
Copy Markdown
Member Author

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

Comment on lines -8 to +9
- numpy=1.17
- pandas=1.1
- numpy=1.15
- pandas=0.25

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jorisvandenbossche does this work for you? 🙂

- fsspec
- sqlalchemy
- pyarrow=1.0
- pyarrow=0.14

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this one (cc @jorisvandenbossche)

Comment thread .github/workflows/ci-additional.yml Resolved
Comment thread setup.py
packages=packages + tests,
long_description=open("README.rst").read() if exists("README.rst") else "",
python_requires=">=3.6",
python_requires=">=3.7",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@crusaderky

Copy link
Copy Markdown
Collaborator
  • 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)

@martindurant

martindurant commented Mar 7, 2021 via email

Copy link
Copy Markdown
Member

Base automatically changed from master to main March 8, 2021 20:19
@jrbourbeau

Copy link
Copy Markdown
Member Author

Thanks all for reviewing!

@jrbourbeau
jrbourbeau merged commit 1767fed into dask:main Mar 9, 2021
@jrbourbeau
jrbourbeau deleted the drop-py3.6 branch March 9, 2021 19:07
@jakirkham

Copy link
Copy Markdown
Member

Thanks James! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants