From 1d0276f6221e2aa51824c7bfe870b2e27e0cc501 Mon Sep 17 00:00:00 2001 From: David Marteau Date: Thu, 3 Oct 2024 10:39:42 +0200 Subject: [PATCH] Relax python requirement to >= 3.8 --- README.md | 2 +- config.mk | 2 +- pyproject.toml | 7 ++++++- pyqgisserver/qgsworker.py | 2 ++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 35c0fa4..3dce64c 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ See the QGIS [roadmap](https://www.qgis.org/en/site/getinvolved/development/road ## Requirements: - OS: Unix/Posix variants (Linux or OSX) (Windows not officially supported) -- Python >= 3.10 +- Python >= 3.8 - Qgis >= 3.28 - Some python knowledge about python virtualenv and package installation. - libzmq >= 4.0.1 and pyzmq >= 17 diff --git a/config.mk b/config.mk index 4fef106..b0cd10f 100644 --- a/config.mk +++ b/config.mk @@ -3,7 +3,7 @@ PROJECT_NAME:=py-qgis-server # Project version -VERSION:=1.9.0 +VERSION:=1.9.1 ifndef CI_COMMIT_TAG VERSION_TAG=$(VERSION)rc0 diff --git a/pyproject.toml b/pyproject.toml index 4e2a62a..3598edc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,12 +6,14 @@ build-backend = "setuptools.build_meta" name = "py-qgis-server" description = "Py-Qgis-Server is an OWS/OGC server built on top of QGIS Server implementation" readme = "README.md" -requires-python = ">= 3.10" +requires-python = ">= 3.8" classifiers=[ "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -26,6 +28,9 @@ dependencies = [ ] dynamic = ["version"] +[project.optional-dependencies] +amqp = ["py-amqp-client<2.0.0"] + [[project.authors]] name = "3Liz" email = "david.marteau@3liz.com" diff --git a/pyqgisserver/qgsworker.py b/pyqgisserver/qgsworker.py index 1579dbd..e39d07d 100644 --- a/pyqgisserver/qgsworker.py +++ b/pyqgisserver/qgsworker.py @@ -274,6 +274,8 @@ def init_server(cls): verbose = LOGGER.level <= logging.DEBUG or confservice.getboolean('logging', 'qgis_info') LOGGER.debug("Initializing qgis server") + # Disable Qgis cache strategy + os.environ['QGIS_SERVER_PROJECT_CACHE_STRATEGY'] = 'off' qgsserver = init_qgis_server(enable_processing=False, logger=LOGGER, verbose=verbose)