Is your feature request related to a problem? Please describe.
I am having trouble using pys2 in a modern Python project where many dependencies, or even some of my own code, already require pydantic v2. Currently, all available versions of pys2 are only compatible with pydantic v1, making it impossible to install both in the same environment with Poetry or other modern Python dependency managers. This prevents me from using pys2 in combination with other libraries and codebases that have upgraded to pydantic v2.
Describe the solution you'd like
I would like pys2 to support pydantic v2. Ideally, it should be compatible with both v1 and v2, or at least offer a new release that supports the updated version of pydantic. This would let users integrate pys2 into current projects without running into dependency conflicts.
Describe alternatives you've considered
- Downgrading
pydantic to v1 throughout my project, but this is not viable as some dependencies and my own code already require features from pydantic v2.
- Searching for alternative packages to
pys2 that support pydantic v2, but none provide the required functionality.
- Attempting to use unofficial compatibility packages like
pydantic-compat, but these are not recommended or supported for production use and may not cover all edge cases.
Additional context
- This issue affects dependency resolution in Poetry and other modern Python workflows.
- Migrating to
pydantic v2 is necessary to access recent features and security updates, making this support important for forward compatibility.
- If it helps, I am happy to assist in testing or providing more details about my project setup.
Is your feature request related to a problem? Please describe.
I am having trouble using
pys2in a modern Python project where many dependencies, or even some of my own code, already requirepydanticv2. Currently, all available versions ofpys2are only compatible withpydanticv1, making it impossible to install both in the same environment with Poetry or other modern Python dependency managers. This prevents me from usingpys2in combination with other libraries and codebases that have upgraded topydanticv2.Describe the solution you'd like
I would like
pys2to supportpydanticv2. Ideally, it should be compatible with both v1 and v2, or at least offer a new release that supports the updated version ofpydantic. This would let users integratepys2into current projects without running into dependency conflicts.Describe alternatives you've considered
pydanticto v1 throughout my project, but this is not viable as some dependencies and my own code already require features frompydanticv2.pys2that supportpydanticv2, but none provide the required functionality.pydantic-compat, but these are not recommended or supported for production use and may not cover all edge cases.Additional context
pydanticv2 is necessary to access recent features and security updates, making this support important for forward compatibility.