Skip to content

packaging: require Python 3.9+ to match grpcio and protobuf - #841

Merged
julianoes merged 4 commits into
mavlink:mainfrom
vishwagw:packaging-python-3.9
Nov 30, 2026
Merged

julianoes merged 4 commits into
mavlink:mainfrom
vishwagw:packaging-python-3.9

Conversation

@vishwagw

Copy link
Copy Markdown
Contributor

Problem

setup.py declares python_requires=">=3.7", and its only version classifier is 3.7. But
requirements.txt pins grpcio>=1.75.0 and protobuf>=6.32.1, and both declare
Requires-Python: >=3.9 on PyPI. On Python 3.7/3.8, pip accepts mavsdk-grpc and then fails
while resolving its dependencies, rather than skipping to a release that works or showing a
clear "requires Python >=3.9" message.

Changes

  • setup.py: python_requires=">=3.9", with classifiers for 3.9–3.13.
  • tox.ini: envlist goes from py{37, 36} to py{39, 310, 311, 312, 313}.
  • README.md: the requirement now says 3.9+.
  • mavsdk/system.py: removed the importlib_resources fallback for Python < 3.7, which can
    no longer run (importlib_resources was never a dependency anyway).

Checked

  • python3 setup.py egg_info with MAVSDK_DIST_NAME=mavsdk-grpc gives
    Requires-Python: >=3.9 and the new classifiers.
  • python3 -m pytest tests passes.

other/docker/testing/Dockerfile still has PYTHON_VERSIONS 3.7.0. I left it alone because
I'm not sure it's still used. I can update or remove it if you'd like.

@julianoes

Copy link
Copy Markdown
Collaborator

Makes sense, thanks. Not sure about that dockerfile either.

@julianoes
julianoes enabled auto-merge (squash) November 30, 2026 00:37
@julianoes
julianoes disabled auto-merge November 30, 2026 00:50
@julianoes
julianoes merged commit 6164a9f into mavlink:main Nov 30, 2026
9 checks passed
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