Skip to content

Drop Python 3.8 and 3.9 support; add Python 3.14 to tests - #5883

Merged
KoolADE85 merged 4 commits into
mainfrom
chore/drop-python-38-39
Nov 17, 2026
Merged

KoolADE85 merged 4 commits into
mainfrom
chore/drop-python-38-39

Conversation

@KoolADE85

Copy link
Copy Markdown
Contributor

This PR drops python 3.8 and 3.9 support.
The test matrices are updated accordingly.

This unblocks the dependabot updates that need Python 3.10 or later:

@camdecoster camdecoster self-assigned this Nov 16, 2026
test-optional:
name: Optional tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you add a comment stating why this is necessary and maybe a TODO to switch back to ubuntu-latest in the future?

Comment thread CHANGELOG.md Outdated
- Fix color utilities mutating the list of colors passed to them [[#5836](https://github.com/plotly/plotly.py/pull/5836)], with thanks to @Enesuygurs for the contribution!

### Updated
- Removed Python 3.8 and Python 3.9 support. plotly.py now requires Python 3.10 or later [[#5883](https://github.com/plotly/plotly.py/pull/5883)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Removed Python 3.8 and Python 3.9 support. plotly.py now requires Python 3.10 or later [[#5883](https://github.com/plotly/plotly.py/pull/5883)]
- Remove Python 3.8 and Python 3.9 support. plotly.py now requires Python 3.10 or later. [[#5883](https://github.com/plotly/plotly.py/pull/5883)]

Comment thread doc/requirements.txt Outdated
scikit-learn
scipy==1.9.1
setuptools<=81
# geopandas pin also requires a transitive dependency pin for python>=3.10

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you clarify this comment? I'm confused as to what you mean.

@KoolADE85 KoolADE85 Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Extra detail that probably doesn't belong in the comment: geopandas in this version didn't pin its own shapely dep so shapely resolves to a newer version that removes this method.
We were protected from this previously, because newer shapely packages drop support for Python 3.9. Our CI jobs used python 3.9 and it automatically selected the older, compatible version. Our dropping of python3.9 allows the newer version to be pulled in, which breaks geopandas.

Comment thread pyproject.toml
Comment on lines +52 to +54
"matplotlib",
"contourpy>=1.3.3; python_version>='3.14'",
"kiwisolver>=1.4.9"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why was this change required?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added a comment with the explanation.

@KoolADE85
KoolADE85 merged commit 10d7adf into main Nov 17, 2026
29 checks passed
@KoolADE85
KoolADE85 deleted the chore/drop-python-38-39 branch November 17, 2026 16:31
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.

2 participants