Skip to content

Commit

Permalink
Ensure tests are run on Pydantic 1 in CI. Unpin pydantic for the proj…
Browse files Browse the repository at this point in the history
…ect. Fixes #187.
  • Loading branch information
jaraco committed Jul 3, 2023
1 parent 4293219 commit a099bff
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ jobs:
platform: ubuntu-latest
- python: pypy3.9
platform: ubuntu-latest
- python: "3.x"
platform: ubuntu-latest
env:
TOX_ENV: pydantic1
runs-on: ${{ matrix.platform }}
continue-on-error: ${{ matrix.python == '3.12' }}
steps:
Expand Down
1 change: 1 addition & 0 deletions newsfragments/189.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Project now supports Pydantic 2 while retaining support for Pydantic 1.
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ packages = find_namespace:
include_package_data = true
python_requires = >=3.8
install_requires =
# "< 2" is workaround for #187
pydantic >= 1.9.1, < 2
pydantic >= 1.9.1
typing_extensions
keywords = plural inflect participle

Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ usedevelop = True
extras =
testing

[testenv:pydantic1]
deps =
pydantic < 2

[testenv:docs]
extras =
docs
Expand Down

0 comments on commit a099bff

Please sign in to comment.