Skip to content

Commit

Permalink
Disallow pydantic 2.6.0 and 2.6.1
Browse files Browse the repository at this point in the history
xref: pydantic/pydantic#8760

Fix the following error when testing with mypy:

```
$ tox -e mypy
Deferral trace:
    cwltool.utils:62
    cwltool.utils:-1
    ...
    galaxy.model:666
    galaxy.model:666
    galaxy.model:666
    galaxy.model:666
lib/galaxy/model/__init__.py: error: INTERNAL ERROR: maximum semantic analysis
iteration count reached
Found 1 error in 1 file (errors prevented further checking)
```
  • Loading branch information
nsoranzo committed Feb 12, 2024
1 parent 818c147 commit d8f076c
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/app/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ install_requires =
paramiko!=2.9.0,!=2.9.1
pebble
pulsar-galaxy-lib>=0.15.0.dev0
pydantic>=2
pydantic>=2,!=2.6.0,!=2.6.1
pysam>=0.21
PyJWT
PyYAML
Expand Down
2 changes: 1 addition & 1 deletion packages/data/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ install_requires =
numpy
parsley
pycryptodome
pydantic[email]>=2
pydantic[email]>=2,!=2.6.0,!=2.6.1
pylibmagic
python-magic
pysam>=0.21
Expand Down
2 changes: 1 addition & 1 deletion packages/objectstore/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ version = 23.2.dev0
include_package_data = True
install_requires =
galaxy-util
pydantic>=2
pydantic>=2,!=2.6.0,!=2.6.1
PyYAML
packages = find:
python_requires = >=3.7
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ version = 23.2.dev0
include_package_data = True
install_requires =
galaxy-util
pydantic[email]>=2
pydantic[email]>=2,!=2.6.0,!=2.6.1
packages = find:
python_requires = >=3.8

Expand Down
2 changes: 1 addition & 1 deletion packages/tool_util/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ install_requires =
lxml!=4.2.2
MarkupSafe
packaging
pydantic>=2
pydantic>=2,!=2.6.0,!=2.6.1
PyYAML
requests
sortedcontainers
Expand Down
2 changes: 1 addition & 1 deletion packages/tours/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ version = 23.2.dev0
include_package_data = True
install_requires =
galaxy-navigation
pydantic>=2
pydantic>=2,!=2.6.0,!=2.6.1
PyYAML
packages = find:
python_requires = >=3.8
Expand Down
2 changes: 1 addition & 1 deletion packages/web_apps/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ install_requires =
MarkupSafe
mercurial
Paste
pydantic>=2
pydantic>=2,!=2.6.0,!=2.6.1
PyJWT
python-dateutil
python-multipart # required to support form parsing in FastAPI/Starlette
Expand Down
2 changes: 1 addition & 1 deletion packages/web_framework/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ install_requires =
babel
MarkupSafe
paste
pydantic>=2
pydantic>=2,!=2.6.0,!=2.6.1
requests
Routes
SQLAlchemy>=1.4.25,<2
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pebble = "*"
psutil = "*"
pulsar-galaxy-lib = ">=0.15.0.dev0"
pycryptodome = "*"
pydantic = {version = ">=2", extras = ["email"]}
pydantic = {version = ">=2, !=2.6.0, !=2.6.1", extras = ["email"]} # https://github.com/pydantic/pydantic/issues/8760
PyJWT = "*"
pykwalify = "*"
pylibmagic = "*"
Expand Down Expand Up @@ -168,7 +168,7 @@ Werkzeug = "*"
[tool.poetry.group.typecheck.dependencies]
mypy = "*"
lxml-stubs = "*"
pydantic = ">=2" # for pydantic.mypy plugin
pydantic = ">=2, !=2.6.0, !=2.6.1" # for pydantic.mypy plugin
types-bleach = "*"
types-boto = "*"
types-contextvars = "*"
Expand Down

0 comments on commit d8f076c

Please sign in to comment.