diff --git a/README.md b/README.md index 124efa3a..178a3fde 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The Python wrapper is based on a gRPC client communicating with the gRPC server ## Important Notes -- Python 3.7+ is required (because the wrapper is based on [asyncio](https://docs.python.org/3.7/library/asyncio.html)). +- Python 3.9+ is required (the wrapper is based on [asyncio](https://docs.python.org/3/library/asyncio.html), and its `grpcio`/`protobuf` dependencies need 3.9+). - You may need to run `pip3` instead of `pip` and `python3` instead of `python`, depending of your system defaults. - Auterion used to have a [Getting started with MAVSDK-Python (web.archive.org)](https://web.archive.org/web/20201211155626/https://auterion.com/getting-started-with-mavsdk-python/) guide if you're a beginner and not sure where to start. diff --git a/mavsdk/system.py b/mavsdk/system.py index c2ab5e91..04e745f4 100644 --- a/mavsdk/system.py +++ b/mavsdk/system.py @@ -491,11 +491,7 @@ def _start_mavsdk_server(system_address, port, sysid, compid): import os import subprocess import sys - - if sys.version_info >= (3, 7): - from importlib.resources import path - else: - from importlib_resources import path + from importlib.resources import path try: if sys.platform.startswith("win"): diff --git a/setup.py b/setup.py index 347bfd3f..a80ee9c3 100644 --- a/setup.py +++ b/setup.py @@ -288,14 +288,20 @@ def version(): url="https://github.com/mavlink/MAVSDK-Python", maintainer="Jonas Vautherin, Julian Oes", maintainer_email="dev@jonas.vautherin.ch, julian@oes.ch", - python_requires=">=3.7", + python_requires=">=3.9", include_package_data=True, cmdclass={"build": custom_build}, classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", - "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ], packages=remapped_packages(), package_dir={IMPORT_NAME: SOURCE_PACKAGE}, diff --git a/tox.ini b/tox.ini index 7be7668c..a2a7c59d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{37, 36} +envlist = py{39, 310, 311, 312, 313} [testenv] deps =