Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: workflow_call

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.11, 3.12, 3.13]
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:

coverage-check:
name: Coverage check
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [test]
steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [30.0.1] - 2025-06-03
- Winter was made compatible with the latest version of 'uritemplate'
- 'uritemplate' doesn't follow semantic versioning so exact version was pinned
- GH runners were updated from 20.04 to 22.04

## [30.0.0] - 2025-02-27
- Dropped support of Python earlier than 3.11
- Dropped support of Django earlier than 4.2
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "winter"
version = "30.0.0"
version = "30.0.1"
homepage = "https://github.com/WinterFramework/winter"
description = "Web Framework with focus on python typing, dataclasses and modular design"
authors = ["Alexander Egorov <mofr@zond.org>"]
Expand Down Expand Up @@ -39,7 +39,7 @@ StrEnum = "^0.4.8"
openapi-pydantic = ">=0.5.0, <0.6"
pydantic = ">=1.10, <2"
openapi-spec-validator = ">=0.5.7, <1"
uritemplate = ">=4.1.1, <5"
uritemplate = "==4.2.0" # Lib doesn't follow semantic versioning
httpx = ">=0.24.1, <0.28"

[tool.poetry.dev-dependencies]
Expand Down
3 changes: 2 additions & 1 deletion winter/web/routing/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import uritemplate
from uritemplate import URITemplate
from uritemplate.variable import Operator

from winter.core import ComponentMethod
from winter.web.query_parameters import MapQueryParameterAnnotation
Expand Down Expand Up @@ -42,7 +43,7 @@ def get_query_parameters(self) -> List[QueryParameter]:
query_variables = (
variable
for variable in URITemplate(self._url_path_with_query_parameters).variables
if variable.operator == '?'
if variable.operator == Operator.form_style_query
)
for variable in query_variables:
for variable_name, variable_params in variable.variables:
Expand Down