few-rocket-4266
08/23/2023, 1:50 PMpython_distribution target and wanted to know if you have any good ways of “relaxing” a requirement for the wheel (in my case: pydantic>=1.10.2,<3?
I was using one resolve python-default with pydantic==2.1.1 And another resolve pydantic-v1 with pydantic==1.10.2
Then to relax the dependency in the python_distribution I first tried to add a resolve in this commit and set an explicit dependency: f"//3rdparty:pydantic_v1_or_later" and explicitly ignore the f"!!//3rdparty:pydantic_v2" dependency.
As I felt having a separate resolve was a bit “overkill” I ended up removing the extra resolve and relaxing the pydantic requirement in the `python-default` resolve
This worked, but I would like to know if there is a “better-way” 😅? e.g., some argument to python_distribution(override_requirements=["pydantic>=1.10.2,<3"]) instead of changing the resolve requirements