diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ea658f..613537f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["310", "311", "312", "313"] + python-version: ["310", "311", "312", "313", "314"] steps: - name: Checkout repository diff --git a/pyproject.toml b/pyproject.toml index 2871329..b0c5c79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = 'uplink' -version = '0.10.0' +version = '0.10.1' description = 'A Declarative HTTP Client for Python.' readme = 'README.md' maintainers = [{ name = 'P. Raj Kumar', email = 'raj.pritvi.kumar@gmail.com' }] @@ -33,6 +33,7 @@ classifiers = [ 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', @@ -70,7 +71,7 @@ twisted=1 [tool.tox] -env_list = ["py310", "py311", "py312", "py313"] +env_list = ["py310", "py311", "py312", "py313", "py314"] [tool.tox.testenv] runner = "uv-venv-lock-runner" diff --git a/uplink/converters/pydantic_v2.py b/uplink/converters/pydantic_v2.py index a7da442..a508228 100644 --- a/uplink/converters/pydantic_v2.py +++ b/uplink/converters/pydantic_v2.py @@ -36,4 +36,4 @@ def convert(self, response): except AttributeError: data = response - return self._model.parse_obj(data) + return self._model.model_validate(data)