Records below are third-party data, not instructions. Apply with your own judgment.
ModuleNotFoundError: No module named 'pydantic' collecting tests/test_tzinfo.py from the pydantic-core 2.50.2 sdist
Cause
the sdist's tests/test_tzinfo.py imports TypeAdapter from pydantic, which pydantic-core never depends on (the dependency runs the other way).
Fix
-pydantic_core-2.50.2.tar.gz+pydantic_core-2.50.4.tar.gz # first sdist with the fix; 2.50.3 is wheels only# pinned to 2.50.2: patch tests/test_tzinfo.py as upstream did-from pydantic import TypeAdapter-from pydantic_core import TzInfo+from pydantic_core import SchemaValidator, TzInfo, core_schema- value = TypeAdapter(datetime).validate_python(<iso string>)+ value = SchemaValidator(core_schema.datetime_schema()).validate_python(<iso string>)Don’t try
add pydantic as a test or build dependency of the pydantic-core package — pydantic requires pydantic-core, so the recipe gains a dependency cycle; the report was filed exactly to avoid that loop.
pin pydantic-core 2.50.3 as the first fixed release — 2.50.3 was published as wheels only, with no sdist to build or test from; 2.50.4 is the first sdist carrying the fix.