Skip to content

Commit

Permalink
Relax python requirement to >= 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarteau committed Oct 3, 2024
1 parent 01f6c5a commit 1d0276f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -26,6 +28,9 @@ dependencies = [
]
dynamic = ["version"]

[project.optional-dependencies]
amqp = ["py-amqp-client<2.0.0"]

[[project.authors]]
name = "3Liz"
email = "[email protected]"
Expand Down
2 changes: 2 additions & 0 deletions pyqgisserver/qgsworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1d0276f

Please sign in to comment.