Skip to content

Commit

Permalink
Fixed pydantic install issue on Python 3.13
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <[email protected]>
  • Loading branch information
andy-maier committed Oct 28, 2024
1 parent edd1658 commit ee84735
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ coveralls>=3.3.0

# Safety CI by pyup.io
# Safety 3.0.0 requires exact versions of authlib==1.2.0 and jwt==1.3.1.
safety>=3.0.1
# Safety 3.0.x pins pydantic to <2.0, preventing bug fixes.
# pydantic 2.8.0 fixes an install issue on Python 3.13.
safety>=3.1.0
safety-schemas>=0.0.2,!=0.0.7
pydantic>=2.8.0

# Tox
tox==2.5.0
Expand Down
3 changes: 3 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ Released: not yet
* Increased minimum versions of PyYAML to 6.0.2 and psutil to 6.0.0, to fix
install errors with Python 3.13 on Windows. (related to issue #3225)

* Dev: Fixed pydantic install issue on Pyhton 3.13 by excluding safety-schemas
version 0.0.7

**Enhancements:**

* Added support for and testing on Python 3.13. (issue #1429)
Expand Down
6 changes: 3 additions & 3 deletions minimum-constraints-develop.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ pytest-cov==2.7.0
coveralls==3.3.0

# Safety CI by pyup.io
safety==3.0.1
safety-schemas==0.0.1
safety==3.1.0
safety-schemas==0.0.2
# TODO: Change to dparse 0.6.4 once released
dparse==0.6.4b0
ruamel.yaml==0.17.21
Authlib==1.3.1
marshmallow==3.15.0
pydantic==1.10.13
pydantic==2.8.0
typer==0.12.0
typer-cli==0.12.0
typer-slim==0.12.0
Expand Down
3 changes: 2 additions & 1 deletion minimum-constraints-install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ wcwidth==0.1.7

# nocaselist 2.0 requires typing-extensions>=3.10 (on py>=3.6,py<=3.9)
# safety 3.0 requires typing-extensions>=4.7.1 (used on py>=3.7)
typing-extensions==4.7.1
# pydantic 2.8.0 requires typing-extensions>=4.12.2 on Python>=3.13
typing-extensions==4.12.2

# requests 2.31 requires idna>=2.5,<4
# idna>3 requires using requests >=2.26.0
Expand Down

0 comments on commit ee84735

Please sign in to comment.