From 00790cb6496a5f81b90ceb8841c3d475cda67f10 Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Mon, 24 Oct 2022 16:20:05 -0300 Subject: [PATCH] fix: Require Pydantic 1.10.2 when Python is 3.11 Fixes #234 --- .github/workflows/ci.yml | 2 +- CHANGELOG.md | 4 ++++ pygls/__init__.py | 2 +- setup.cfg | 6 ++++-- tox.ini | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 910819d1..89836d8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"] runs-on: ${{ matrix.os }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 90777468..50282e5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning][semver]. ### Changed ### Fixed +## [0.12.3] - 24/10/2022 +### Fixed +- Require Pydantic 1.10.2 when Python is 3.11 + ## [0.12.2] - 26/09/2022 ### Fixed - Relaxed the Python version upper bound to `<4` diff --git a/pygls/__init__.py b/pygls/__init__.py index b6f8f198..6f477ffe 100644 --- a/pygls/__init__.py +++ b/pygls/__init__.py @@ -19,7 +19,7 @@ import os import sys -__version__ = "0.12.2" +__version__ = "0.12.3" IS_WIN = os.name == 'nt' IS_PYODIDE = 'pyodide' in sys.modules diff --git a/setup.cfg b/setup.cfg index 0da96ff3..cbdd3349 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,6 +21,7 @@ classifiers = Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 [options] setup_requires = @@ -28,11 +29,12 @@ setup_requires = wheel setuptools_scm>=3.4.3 toml -python_requires = >=3.7,<4 +python_requires = >=3.7,<3.12 packages = find: zip_safe = False install_requires = - pydantic>=1.9.1,<1.10 + pydantic>=1.9.1,<1.10 ; python_version<"3.11" + pydantic>=1.10.2 ; python_version>="3.11" typeguard>=2.10.0,<3 include_package_data = True tests_require = diff --git a/tox.ini b/tox.ini index b1531016..5f5c8b59 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{36,37,38,39} +envlist = py{36,37,38,39,310,311} [testenv] extras =