Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Python 3.6 support #482

Merged
merged 3 commits into from
Mar 29, 2022
Merged

Drop Python 3.6 support #482

merged 3 commits into from
Mar 29, 2022

Conversation

adamjstewart
Copy link
Collaborator

Python 3.6 is no longer supported by the Python Software Foundation, nor is it supported by PyTorch. This PR drops Python 3.6 support. All users should upgrade to a modern version of Python in order to use future TorchGeo releases.

The biggest new language feature in Python 3.6 is the ability to use:

from __future__ import annotations

This allows us to use annotation capabilities from Python 3.10 in Python 3.7–3.9 by avoiding annotation evaluation at run-time. I'll add this in a separate PR since it's a more controversial change.

Reboot of #326
Closes #413
@weiji14

@adamjstewart adamjstewart added this to the 0.3.0 milestone Mar 26, 2022
.github/workflows/tests.yaml Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
setup.cfg Show resolved Hide resolved
setup.cfg Outdated Show resolved Hide resolved
Copy link
Contributor

@weiji14 weiji14 left a comment

Choose a reason for hiding this comment

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

Readthedocs build failing with AttributeError: module 'jinja2.utils' has no attribute 'escape' due to jupyter/nbconvert#1736, either pin jinja2 explicitly or wait for upstream to fix things. Otherwise this looks good to me once the rest of the test suite passes.

Edit: Whoops, spoke too soon. Need to check why Windows builds are failing.

@adamjstewart
Copy link
Collaborator Author

Not sure why we're having fiona issues all of a sudden.

@adamjstewart
Copy link
Collaborator Author

Yep, for RtD, see #480 (comment). If this isn't fixed soon I'll pin.

@weiji14
Copy link
Contributor

weiji14 commented Mar 27, 2022

Not sure why we're having fiona issues all of a sudden.

See Toblerity/Fiona#1030 and linked thread.

@adamjstewart
Copy link
Collaborator Author

Thanks for the pointer. It's still not clear why my 2nd commit would change something in the install process. I don't see a new release of any possible conflicting packages in the last couple of days.

@weiji14
Copy link
Contributor

weiji14 commented Mar 27, 2022

Thanks for the pointer. It's still not clear why my 2nd commit would change something in the install process. I don't see a new release of any possible conflicting packages in the last couple of days.

Between your first commit 23hrs ago and the one 1hr ago, it seems like the fiona conda-forge package had a new build about 21 hrs ago (conda-forge/fiona-feedstock#191). Looking at that PR however, I can't really see why that would break things on Windows.

@jorisvandenbossche
Copy link

jorisvandenbossche commented Mar 29, 2022

The fiona Windows issue should be resolved for now (see conda-forge/fiona-feedstock#192 (comment)). The green tests here confirm that?

@weiji14
Copy link
Contributor

weiji14 commented Mar 29, 2022

The fiona Windows issue should be resolved for now (see conda-forge/fiona-feedstock#192 (comment)). The green tests here confirm that?

Yes, it seems like we're picking up the older, non-broken version of fiona now and the tests all pass. Thanks Joris!

@adamjstewart, remember to disable the required checks on Python 3.6 after merging this PR 😉

@adamjstewart adamjstewart merged commit 3baf1ef into main Mar 29, 2022
@adamjstewart adamjstewart deleted the python/3.6 branch March 29, 2022 18:58
remtav pushed a commit to remtav/torchgeo that referenced this pull request May 26, 2022
* Drop Python 3.6 support

* pandas 0.23.2+ required for Python 3.7+ support

* Update environment.yml too
@adamjstewart adamjstewart mentioned this pull request Jul 11, 2022
yichiac pushed a commit to yichiac/torchgeo that referenced this pull request Apr 29, 2023
* Drop Python 3.6 support

* pandas 0.23.2+ required for Python 3.7+ support

* Update environment.yml too
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.

Timeline for dropping Python 3.6 support
4 participants