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

This commit is contained in:
Mert 2023-12-23 09:04:36 -05:00 committed by GitHub
parent e47e25e671
commit 19ea0ead85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 31 deletions

View File

@ -52,8 +52,10 @@ files = [
] ]
[package.dependencies] [package.dependencies]
exceptiongroup = {version = ">=1.0.2", markers = "python_version < \"3.11\""}
idna = ">=2.8" idna = ">=2.8"
sniffio = ">=1.1" sniffio = ">=1.1"
typing-extensions = {version = ">=4.1", markers = "python_version < \"3.11\""}
[package.extras] [package.extras]
doc = ["Sphinx (>=7)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx-rtd-theme"] 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" packaging = ">=22.0"
pathspec = ">=0.9.0" pathspec = ">=0.9.0"
platformdirs = ">=2" 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] [package.extras]
colorama = ["colorama (>=0.4.3)"] colorama = ["colorama (>=0.4.3)"]
@ -653,6 +657,20 @@ files = [
{file = "easydict-1.11.tar.gz", hash = "sha256:dcb1d2ed28eb300c8e46cd371340373abc62f7c14d6dea74fdfc6f1069061c78"}, {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]] [[package]]
name = "fastapi" name = "fastapi"
version = "0.95.2" version = "0.95.2"
@ -915,7 +933,10 @@ files = [
[package.dependencies] [package.dependencies]
cffi = {version = ">=1.12.2", markers = "platform_python_implementation == \"CPython\" and sys_platform == \"win32\""} 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.event" = "*"
"zope.interface" = "*" "zope.interface" = "*"
@ -1833,6 +1854,7 @@ files = [
[package.dependencies] [package.dependencies]
mypy-extensions = ">=1.0.0" mypy-extensions = ">=1.0.0"
tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}
typing-extensions = ">=4.1.0" typing-extensions = ">=4.1.0"
[package.extras] [package.extras]
@ -2014,7 +2036,11 @@ files = [
] ]
[package.dependencies] [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]] [[package]]
name = "orjson" name = "orjson"
@ -2387,9 +2413,11 @@ files = [
[package.dependencies] [package.dependencies]
colorama = {version = "*", markers = "sys_platform == \"win32\""} colorama = {version = "*", markers = "sys_platform == \"win32\""}
exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""}
iniconfig = "*" iniconfig = "*"
packaging = "*" packaging = "*"
pluggy = ">=0.12,<2.0" pluggy = ">=0.12,<2.0"
tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""}
[package.extras] [package.extras]
testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] 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] [metadata]
lock-version = "2.0" lock-version = "2.0"
python-versions = "=3.11.*" python-versions = ">=3.10,<3.12"
content-hash = "dbd6985df091bcf647f0e3739d9bddd5b146d94494b2f8b574b3fbd7279a6a10" content-hash = "50692ad0259ad0c541e5fe8727160223ab75a0194fa84e1bd321b061acae9f1c"

View File

@ -9,32 +9,32 @@ packages = [{include = "app"}]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.10,<3.12" python = ">=3.10,<3.12"
onnxruntime = "^1.15.0" onnxruntime = "^1.15.0"
insightface = "^0.7.3" insightface = ">=0.7.3,<1.0"
opencv-python-headless = "^4.7.0.72" opencv-python-headless = ">=4.7.0.72,<5.0"
pillow = "^9.5.0" pillow = ">=9.5.0,<11.0"
fastapi = "^0.95.2" fastapi = ">=0.95.2,<1.0"
uvicorn = {extras = ["standard"], version = "^0.22.0"} uvicorn = {extras = ["standard"], version = ">=0.22.0,<1.0"}
pydantic = "^1.10.8" pydantic = "^1.10.8"
aiocache = "^0.12.1" aiocache = ">=0.12.1,<1.0"
rich = "^13.4.2" rich = ">=13.4.2"
ftfy = "^6.1.1" ftfy = ">=6.1.1"
setuptools = "^68.0.0" setuptools = "^68.0.0"
python-multipart = "^0.0.6" python-multipart = ">=0.0.6,<1.0"
orjson = "^3.9.5" orjson = ">=3.9.5"
gunicorn = "^21.1.0" gunicorn = ">=21.1.0"
huggingface-hub = "^0.20.1" huggingface-hub = ">=0.20.1,<1.0"
tokenizers = "^0.15.0" tokenizers = ">=0.15.0,<1.0"
[tool.poetry.group.dev.dependencies] [tool.poetry.group.dev.dependencies]
mypy = "^1.3.0" mypy = ">=1.3.0"
black = "^23.3.0" black = ">=23.3.0"
pytest = "^7.3.1" pytest = ">=7.3.1"
locust = "^2.15.1" locust = ">=2.15.1"
httpx = "^0.24.1" httpx = ">=0.24.1"
pytest-asyncio = "^0.21.0" pytest-asyncio = ">=0.21.0"
pytest-cov = "^4.1.0" pytest-cov = ">=4.1.0"
ruff = "^0.0.272" ruff = ">=0.0.272"
pytest-mock = "^3.11.1" pytest-mock = ">=3.11.1"
[build-system] [build-system]
requires = ["poetry-core"] requires = ["poetry-core"]

View File

@ -2,10 +2,6 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", "docker:pinDigests"], "extends": ["config:base", "docker:pinDigests"],
"minimumReleaseAge": "5 days", "minimumReleaseAge": "5 days",
"constraints": {
"python": "< 3.12"
},
"constraintsFiltering": "strict",
"packageRules": [ "packageRules": [
{ {
"matchFileNames": ["cli/**"], "matchFileNames": ["cli/**"],
@ -46,7 +42,7 @@
{ {
"matchFileNames": ["machine-learning/**"], "matchFileNames": ["machine-learning/**"],
"groupName": "machine-learning", "groupName": "machine-learning",
"matchUpdateTypes": ["minor", "patch"], "rangeStrategy": "in-range-only",
"schedule": "on tuesday" "schedule": "on tuesday"
}, },
{ {