Skip to content

High performance self-hosted photo and video management solution.

renovate: use in-range-only strategy for python (#5937)

Mert19ea0ead858e
diff --git a/machine-learning/poetry.lock b/machine-learning/poetry.lock
index dad8268ba5..71f2ed882b 100644
--- a/machine-learning/poetry.lock
+++ b/machine-learning/poetry.lock
@@ -52,8 +52,10 @@ files = [
]
[package.dependencies]
+exceptiongroup = {version = ">=1.0.2", markers = "python_version < \"3.11\""}
idna = ">=2.8"
sniffio = ">=1.1"
+typing-extensions = {version = ">=4.1", markers = "python_version < \"3.11\""}
[package.extras]
doc = ["Sphinx (>=7)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx-rtd-theme"]
@@ -97,6 +99,8 @@ mypy-extensions = ">=0.4.3"
packaging = ">=22.0"
pathspec = ">=0.9.0"
platformdirs = ">=2"
+tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}
+typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""}
[package.extras]
colorama = ["colorama (>=0.4.3)"]
@@ -653,6 +657,20 @@ files = [
{file = "easydict-1.11.tar.gz", hash = "sha256:dcb1d2ed28eb300c8e46cd371340373abc62f7c14d6dea74fdfc6f1069061c78"},
]
+[[package]]
+name = "exceptiongroup"
+version = "1.2.0"
+description = "Backport of PEP 654 (exception groups)"
+optional = false
+python-versions = ">=3.7"
+files = [
+ {file = "exceptiongroup-1.2.0-py3-none-any.whl", hash = "sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14"},
+ {file = "exceptiongroup-1.2.0.tar.gz", hash = "sha256:91f5c769735f051a4290d52edd0858999b57e5876e9f85937691bd4c9fa3ed68"},
+]
+
+[package.extras]
+test = ["pytest (>=6)"]
+
[[package]]
name = "fastapi"
version = "0.95.2"
@@ -915,7 +933,10 @@ files = [
[package.dependencies]
cffi = {version = ">=1.12.2", markers = "platform_python_implementation == \"CPython\" and sys_platform == \"win32\""}
-greenlet = {version = ">=3.0rc3", markers = "platform_python_implementation == \"CPython\" and python_version >= \"3.11\""}
+greenlet = [
+ {version = ">=3.0rc3", markers = "platform_python_implementation == \"CPython\" and python_version >= \"3.11\""},
+ {version = ">=2.0.0", markers = "platform_python_implementation == \"CPython\" and python_version < \"3.11\""},
+]
"zope.event" = "*"
"zope.interface" = "*"
@@ -1833,6 +1854,7 @@ files = [
[package.dependencies]
mypy-extensions = ">=1.0.0"
+tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}
typing-extensions = ">=4.1.0"
[package.extras]
@@ -2014,7 +2036,11 @@ files = [
]
[package.dependencies]
-numpy = {version = ">=1.23.5", markers = "python_version >= \"3.11\""}
+numpy = [
+ {version = ">=1.23.5", markers = "python_version >= \"3.11\""},
+ {version = ">=1.21.4", markers = "python_version >= \"3.10\" and platform_system == \"Darwin\" and python_version < \"3.11\""},
+ {version = ">=1.21.2", markers = "platform_system != \"Darwin\" and python_version >= \"3.10\" and python_version < \"3.11\""},
+]
[[package]]
name = "orjson"
@@ -2387,9 +2413,11 @@ files = [
[package.dependencies]
colorama = {version = "*", markers = "sys_platform == \"win32\""}
+exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""}
iniconfig = "*"
packaging = "*"
pluggy = ">=0.12,<2.0"
+tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""}
[package.extras]
testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"]
@@ -3513,5 +3541,5 @@ testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"]
[metadata]
lock-version = "2.0"
-python-versions = "=3.11.*"
-content-hash = "dbd6985df091bcf647f0e3739d9bddd5b146d94494b2f8b574b3fbd7279a6a10"
+python-versions = ">=3.10,<3.12"
+content-hash = "50692ad0259ad0c541e5fe8727160223ab75a0194fa84e1bd321b061acae9f1c"
diff --git a/machine-learning/pyproject.toml b/machine-learning/pyproject.toml
index 138398c9b8..a43ed43db4 100644
--- a/machine-learning/pyproject.toml
+++ b/machine-learning/pyproject.toml
@@ -9,32 +9,32 @@ packages = [{include = "app"}]
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
onnxruntime = "^1.15.0"
-insightface = "^0.7.3"
-opencv-python-headless = "^4.7.0.72"
-pillow = "^9.5.0"
-fastapi = "^0.95.2"
-uvicorn = {extras = ["standard"], version = "^0.22.0"}
+insightface = ">=0.7.3,<1.0"
+opencv-python-headless = ">=4.7.0.72,<5.0"
+pillow = ">=9.5.0,<11.0"
+fastapi = ">=0.95.2,<1.0"
+uvicorn = {extras = ["standard"], version = ">=0.22.0,<1.0"}
pydantic = "^1.10.8"
-aiocache = "^0.12.1"
-rich = "^13.4.2"
-ftfy = "^6.1.1"
+aiocache = ">=0.12.1,<1.0"
+rich = ">=13.4.2"
+ftfy = ">=6.1.1"
setuptools = "^68.0.0"
-python-multipart = "^0.0.6"
-orjson = "^3.9.5"
-gunicorn = "^21.1.0"
-huggingface-hub = "^0.20.1"
-tokenizers = "^0.15.0"
+python-multipart = ">=0.0.6,<1.0"
+orjson = ">=3.9.5"
+gunicorn = ">=21.1.0"
+huggingface-hub = ">=0.20.1,<1.0"
+tokenizers = ">=0.15.0,<1.0"
[tool.poetry.group.dev.dependencies]
-mypy = "^1.3.0"
-black = "^23.3.0"
-pytest = "^7.3.1"
-locust = "^2.15.1"
-httpx = "^0.24.1"
-pytest-asyncio = "^0.21.0"
-pytest-cov = "^4.1.0"
-ruff = "^0.0.272"
-pytest-mock = "^3.11.1"
+mypy = ">=1.3.0"
+black = ">=23.3.0"
+pytest = ">=7.3.1"
+locust = ">=2.15.1"
+httpx = ">=0.24.1"
+pytest-asyncio = ">=0.21.0"
+pytest-cov = ">=4.1.0"
+ruff = ">=0.0.272"
+pytest-mock = ">=3.11.1"
[build-system]
requires = ["poetry-core"]
diff --git a/renovate.json b/renovate.json
index 0881f82606..6f6bfce684 100644
--- a/renovate.json
+++ b/renovate.json
@@ -2,10 +2,6 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", "docker:pinDigests"],
"minimumReleaseAge": "5 days",
- "constraints": {
- "python": "< 3.12"
- },
- "constraintsFiltering": "strict",
"packageRules": [
{
"matchFileNames": ["cli/**"],
@@ -46,7 +42,7 @@
{
"matchFileNames": ["machine-learning/**"],
"groupName": "machine-learning",
- "matchUpdateTypes": ["minor", "patch"],
+ "rangeStrategy": "in-range-only",
"schedule": "on tuesday"
},
{