Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
setup.pydeclarespython_requires=">=3.7", and its only version classifier is 3.7. Butrequirements.txtpinsgrpcio>=1.75.0andprotobuf>=6.32.1, and both declareRequires-Python: >=3.9on PyPI. On Python 3.7/3.8, pip acceptsmavsdk-grpcand then failswhile 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:envlistgoes frompy{37, 36}topy{39, 310, 311, 312, 313}.README.md: the requirement now says 3.9+.mavsdk/system.py: removed theimportlib_resourcesfallback for Python < 3.7, which canno longer run (
importlib_resourceswas never a dependency anyway).Checked
python3 setup.py egg_infowithMAVSDK_DIST_NAME=mavsdk-grpcgivesRequires-Python: >=3.9and the new classifiers.python3 -m pytest testspasses.other/docker/testing/Dockerfilestill hasPYTHON_VERSIONS 3.7.0. I left it alone becauseI'm not sure it's still used. I can update or remove it if you'd like.