Closed kloczek closed 1 month ago
Looks like pytest fails in 4 units.
One unit fails because it tries to reach mongodb port on localhost (IMO it should be possible to disable that unit by pytest mark like -m "not mongo"
).
What version of pydantic-core
are you using?
Looks like you're pulling pydantic
from main
without the most recent pydantic-core
version. Closing as resolved for now. Happy to reopen if you're still experiencing issues after that.
But pydantic-core
2.24.0 is recent version 🤔
Right but it's not compatible with v2.9.2
Initial Checks
Description
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulesinstaller
modulecut off from access to the public network
(pytest is executed with-m "not network"
)List of installed modules in build env:
```console Package Version ------------------------- ----------- annotated-types 0.7.0 attrs 24.2.0 black 24.4.2 build 1.2.2 click 8.1.7 cloudpickle 3.0.0 dirty-equals 0.7.1.post0 distro 1.9.0 dnspython 2.6.1 email_validator 2.2.0 exceptiongroup 1.1.3 Faker 29.0.0 hatch-fancy-pypi-readme 24.1.0 hatchling 1.25.0 hypothesis 6.100.0 importlib_metadata 8.0.0 iniconfig 2.0.0 installer 0.7.0 jsonschema 4.20.0 jsonschema-specifications 2023.12.1 markdown-it-py 3.0.0 mdurl 0.1.2 mypy 1.11.2 mypy_extensions 1.0.0 packaging 24.0 pathspec 0.12.1 platformdirs 4.3.6 pluggy 1.5.0 py-cpuinfo 9.0.0 pydantic_core 2.24.0 Pygments 2.18.0 pyproject_hooks 1.0.0 pytest 8.2.2 pytest-benchmark 4.0.0 pytest-examples 0.0.13 pytest-mock 3.14.0 python-dateutil 2.9.0.post0 pytz 2024.2 referencing 0.32.0 rich 13.7.1 rpds-py 0.20.0 sortedcontainers 2.4.0 tokenize_rt 6.0.0 tomli 2.0.1 trove-classifiers 2024.9.16 typing_extensions 4.12.2 wheel 0.44.0 zipp 3.19.2 ```Please let me know if you need more details or want me to perform some diagnostics.
Example Code
Python, Pydantic & OS Version