From 2ef30fbda6ddb3cb922476c4e0d2f82d82a7c336 Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Sun, 23 Aug 2026 00:39:19 +0300 Subject: [PATCH 1/4] fix: default to empty url for external jwt download --- src/rasenmaeher_api/rmsettings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rasenmaeher_api/rmsettings.py b/src/rasenmaeher_api/rmsettings.py index 22ebb2c..4a90714 100644 --- a/src/rasenmaeher_api/rmsettings.py +++ b/src/rasenmaeher_api/rmsettings.py @@ -131,7 +131,7 @@ def log_level_int(self) -> int: ldap_client_secret: str | None = None # Tilauspalvelu integration - tilauspalvelu_jwt: str = "https://tilaa.pvarki.fi/api/v1/config/jwtPublicKey.pem" + tilauspalvelu_jwt: str = "" # "https://tilaa.pvarki.fi/api/v1/config/jwtPublicKey.pem" kraftwerk_announce: str | None = None # When KRAFTWERK actually exists kraftwerk_timeout: float = 2.0 From 5c8b8d4bfa3b24aa098f887b11afcc7281991d25 Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Sun, 23 Aug 2026 03:06:41 +0300 Subject: [PATCH 2/4] chore: update multikeyjwt dep to fix #178 --- pyproject.toml | 2 +- uv.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 08a87cd..d91493a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ dependencies = [ "pydantic>=2.0,<3.0", "pydantic-settings>=2.0,<3.0", "requests>=2.31,<3.0", - "multikeyjwt>=1.5,<2.0", + "multikeyjwt>=1.6,<2.0", "uvicorn[standard]>=0.47,<1.0", "gunicorn>=26.0", "libpvarki>=2.2,<3.0", diff --git a/uv.lock b/uv.lock index 922ecf5..e59f613 100644 --- a/uv.lock +++ b/uv.lock @@ -1373,7 +1373,7 @@ wheels = [ [[package]] name = "multikeyjwt" -version = "1.5.0" +version = "1.6.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "click" }, @@ -1382,9 +1382,9 @@ dependencies = [ { name = "pendulum" }, { name = "pyjwt", extra = ["crypto"] }, ] -sdist = { url = "https://files.pythonhosted.org/packages/0c/31/7c89328b6d8130ab7b19662b9ffd48f90ab89dbf4fb27c8e3b9a82c97462/multikeyjwt-1.5.0.tar.gz", hash = "sha256:302da40091226dfa5a851895d053a69213ed8102c77b47bc5483d2ca4cc93552", size = 9927, upload-time = "2026-04-04T17:00:23.494Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e7/86/85e12c386cf7f22fde3070201f853c125486b8776322f61a1891d8700ec3/multikeyjwt-1.6.0.tar.gz", hash = "sha256:442d99cd810a8ba4fb02e06f652e13ed8bbf55f4802ec8096b7163d618551b90", size = 9961, upload-time = "2026-08-23T00:01:33.469Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/2a/81/eee17ce6d32c1a18d4f3a6baf8c4d414616db6c077e85844bd808e0934b6/multikeyjwt-1.5.0-py3-none-any.whl", hash = "sha256:f14d52ed00fccd3ce42536ca68a5489c3af3210e1c29e5e8262d6edeb26b26f7", size = 12336, upload-time = "2026-04-04T17:00:22.128Z" }, + { url = "https://files.pythonhosted.org/packages/4a/24/44a14d4cbd48a6cc62fa86ad3e1bc570d49cadb7bb140e831d62f49fa255/multikeyjwt-1.6.0-py3-none-any.whl", hash = "sha256:926eef6b50d7daa3bc062bf618db69c456569b9f8bb891f4de458c5eb6f2a5a7", size = 12386, upload-time = "2026-08-23T00:01:24.746Z" }, ] [[package]] @@ -2171,7 +2171,7 @@ requires-dist = [ { name = "gunicorn", specifier = ">=26.0" }, { name = "libadvian", specifier = ">=1.6,<2.0" }, { name = "libpvarki", specifier = ">=2.2,<3.0", index = "https://nexus.dev.pvarki.fi/repository/pypilocal/simple" }, - { name = "multikeyjwt", specifier = ">=1.5,<2.0" }, + { name = "multikeyjwt", specifier = ">=1.6,<2.0" }, { name = "openapi-readme", specifier = ">=0.2,<0.3" }, { name = "psycopg2-binary", specifier = ">=2.9,<3.0" }, { name = "pydantic", specifier = ">=2.0,<3.0" }, From 58c80c9112e2489c05950a593e5db0a0ebdd09c4 Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Sun, 23 Aug 2026 03:07:41 +0300 Subject: [PATCH 3/4] chore: bump version --- .bumpversion.toml | 2 +- pyproject.toml | 2 +- src/rasenmaeher_api/__init__.py | 2 +- tests/test_rasenmaeher_api.py | 2 +- uv.lock | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.bumpversion.toml b/.bumpversion.toml index b5d3fc2..704d184 100644 --- a/.bumpversion.toml +++ b/.bumpversion.toml @@ -1,5 +1,5 @@ [tool.bumpversion] -current_version = "1.19.0+260822" +current_version = "1.19.1+260823" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)\\+(?P\\d+)" serialize = ["{major}.{minor}.{patch}+{build}"] search = "{current_version}" diff --git a/pyproject.toml b/pyproject.toml index d91493a..2b6794e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "rasenmaeher_api" -version = "1.19.0+260822" +version = "1.19.1+260823" description = "python-rasenmaeher-api" authors = [ { name = "Aciid", email = "703382+Aciid@users.noreply.github.com" }, diff --git a/src/rasenmaeher_api/__init__.py b/src/rasenmaeher_api/__init__.py index 184d5e2..d678680 100644 --- a/src/rasenmaeher_api/__init__.py +++ b/src/rasenmaeher_api/__init__.py @@ -1,3 +1,3 @@ """python-rasenmaeher-api""" -__version__ = "1.19.0+260822" # NOTE Use `bump-my-version` to bump versions correctly +__version__ = "1.19.1+260823" # NOTE Use `bump-my-version` to bump versions correctly diff --git a/tests/test_rasenmaeher_api.py b/tests/test_rasenmaeher_api.py index 3882e13..1052f65 100644 --- a/tests/test_rasenmaeher_api.py +++ b/tests/test_rasenmaeher_api.py @@ -15,7 +15,7 @@ def test_version() -> None: """Make sure version matches expected""" - assert __version__ == "1.19.0+260822" + assert __version__ == "1.19.1+260823" @pytest.mark.asyncio(loop_scope="session") diff --git a/uv.lock b/uv.lock index e59f613..9a4e4e4 100644 --- a/uv.lock +++ b/uv.lock @@ -2110,7 +2110,7 @@ wheels = [ [[package]] name = "rasenmaeher-api" -version = "1.19.0+260822" +version = "1.19.1+260823" source = { editable = "." } dependencies = [ { name = "aiodns" }, From 02d968f244521221bfd6153a2671ed578c939fb2 Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Sun, 23 Aug 2026 09:52:31 +0000 Subject: [PATCH 4/4] chore: update deps --- pyproject.toml | 4 ++-- uv.lock | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2b6794e..55101fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,10 +17,10 @@ dependencies = [ "pydantic>=2.0,<3.0", "pydantic-settings>=2.0,<3.0", "requests>=2.31,<3.0", - "multikeyjwt>=1.6,<2.0", + "multikeyjwt>=1.7,<2.0", "uvicorn[standard]>=0.47,<1.0", "gunicorn>=26.0", - "libpvarki>=2.2,<3.0", + "libpvarki>=2.4,<3.0", "openapi-readme>=0.2,<0.3", "python-multipart>=0.0.21,<1.0.0", "aiohttp>=3.11.10,<4.0", diff --git a/uv.lock b/uv.lock index 9a4e4e4..e0ef1dd 100644 --- a/uv.lock +++ b/uv.lock @@ -1134,7 +1134,7 @@ wheels = [ [[package]] name = "libpvarki" -version = "2.3.0" +version = "2.4.0" source = { registry = "https://nexus.dev.pvarki.fi/repository/pypilocal/simple" } dependencies = [ { name = "aiodns" }, @@ -1145,9 +1145,9 @@ dependencies = [ { name = "fastapi" }, { name = "pydantic" }, ] -sdist = { url = "https://nexus.dev.pvarki.fi/repository/pypilocal/packages/libpvarki/2.3.0/libpvarki-2.3.0.tar.gz", hash = "sha256:1db367b5b60e0ef8e6c81ab21e620569f5a60845e9cda078621918add12dacfe" } +sdist = { url = "https://nexus.dev.pvarki.fi/repository/pypilocal/packages/libpvarki/2.4.0/libpvarki-2.4.0.tar.gz", hash = "sha256:9a11a18cb855b1840cf3a1a4933c53138aaf0f031ef5a645bf85d8e731c93b0f" } wheels = [ - { url = "https://nexus.dev.pvarki.fi/repository/pypilocal/packages/libpvarki/2.3.0/libpvarki-2.3.0-py3-none-any.whl", hash = "sha256:3b6bb0c75e29c39a0b82141ac4dc8cb9d16490087f0ab74d9d4cbbe84a5f0f83" }, + { url = "https://nexus.dev.pvarki.fi/repository/pypilocal/packages/libpvarki/2.4.0/libpvarki-2.4.0-py3-none-any.whl", hash = "sha256:575a93aaa9b0e09901f832d76234919082a2bde6f451378039722b40097945a0" }, ] [[package]] @@ -1373,7 +1373,7 @@ wheels = [ [[package]] name = "multikeyjwt" -version = "1.6.0" +version = "1.7.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "click" }, @@ -1382,9 +1382,9 @@ dependencies = [ { name = "pendulum" }, { name = "pyjwt", extra = ["crypto"] }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e7/86/85e12c386cf7f22fde3070201f853c125486b8776322f61a1891d8700ec3/multikeyjwt-1.6.0.tar.gz", hash = "sha256:442d99cd810a8ba4fb02e06f652e13ed8bbf55f4802ec8096b7163d618551b90", size = 9961, upload-time = "2026-08-23T00:01:33.469Z" } +sdist = { url = "https://files.pythonhosted.org/packages/91/d8/343cea7e5c83966d78aa51bdab3fb9061ef457ad1c61efc1a7aeba9aab3a/multikeyjwt-1.7.0.tar.gz", hash = "sha256:73050fc3dd685c36dbbdcd8d4602b963fad39818f4b8a99b0104f50fc5b257f6", size = 10214, upload-time = "2026-08-23T09:44:47.71Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/4a/24/44a14d4cbd48a6cc62fa86ad3e1bc570d49cadb7bb140e831d62f49fa255/multikeyjwt-1.6.0-py3-none-any.whl", hash = "sha256:926eef6b50d7daa3bc062bf618db69c456569b9f8bb891f4de458c5eb6f2a5a7", size = 12386, upload-time = "2026-08-23T00:01:24.746Z" }, + { url = "https://files.pythonhosted.org/packages/98/57/0b2eb40df649668034afaa1b1260d5bc5f6a8f26f1d807c2900715e01583/multikeyjwt-1.7.0-py3-none-any.whl", hash = "sha256:19c2ef3f1b040c5c1c799422bab55f8429308ec73ef64e24db3dc85b393cbc3f", size = 12712, upload-time = "2026-08-23T09:44:46.606Z" }, ] [[package]] @@ -2170,8 +2170,8 @@ requires-dist = [ { name = "filelock", specifier = ">=3.12,<4.0" }, { name = "gunicorn", specifier = ">=26.0" }, { name = "libadvian", specifier = ">=1.6,<2.0" }, - { name = "libpvarki", specifier = ">=2.2,<3.0", index = "https://nexus.dev.pvarki.fi/repository/pypilocal/simple" }, - { name = "multikeyjwt", specifier = ">=1.6,<2.0" }, + { name = "libpvarki", specifier = ">=2.4,<3.0", index = "https://nexus.dev.pvarki.fi/repository/pypilocal/simple" }, + { name = "multikeyjwt", specifier = ">=1.7,<2.0" }, { name = "openapi-readme", specifier = ">=0.2,<0.3" }, { name = "psycopg2-binary", specifier = ">=2.9,<3.0" }, { name = "pydantic", specifier = ">=2.0,<3.0" },