Skip to content

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

Open
vishwagw wants to merge 4 commits into
mavlink:mainfrom
vishwagw:packaging-python-3.9
Open

vishwagw wants to merge 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.

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.

1 participant