Skip to content

Commit

Permalink
fix: Require Pydantic 1.10.2 when Python is 3.11
Browse files Browse the repository at this point in the history
Fixes #234
  • Loading branch information
tombh committed Oct 24, 2022
1 parent f2ef956 commit 00790cb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion pygls/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,20 @@ classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11

[options]
setup_requires =
setuptools>=44
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 =
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{36,37,38,39}
envlist = py{36,37,38,39,310,311}

[testenv]
extras =
Expand Down

0 comments on commit 00790cb

Please sign in to comment.