Created attachment 247872 [details] Patch misc/py-openai: update runtime dependency on py-pydantic to py-pydantic2 Update the dependency on py-pydantic to py-pydantic2 which is more recent version satisfying the version requirement specified in pyproject.toml. While here, bump port revision for dependency change.
This is a gentle reminder. Are you comfortable with the proposed change?
Hi Hiroki, There should be only one pydantic in the ports tree, not two. Currently there are a lot of conflicts due to this, because both of them use the same namespace. Why would you want to change to pydantic2? Is anything malfunctioning? This change would cause conflicts for someone. The correct dependency is just pydantic, and it should be at version 2, but it is at version 1 due to conflicts. I would agree if there is a compelling reason to update to pydantic2. Thanks, Yuri
Hi Yuri, Thanks for your reply. I'm the maintainer of misc/py-shell-gpt. Its dependency graph is partly as follows: misc/py-shell-gpt -> misc/py-instructor -> devel/py-pydantic2 (pyproject.toml contains pydantic = "^2.0.2") -> misc/py-openai -> devel/py-pydantic (pyproject.toml contains "pydantic>=1.9.0, <3") Updating the dependency of misc/py-openai to pydantic2 satisfies both requirements at the same time.
Hi Hiroki, Patch approved. Please commit it. Thanks, Yuri
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f4ab72f99290a7069080a9a0abd23442bac3aee4 commit f4ab72f99290a7069080a9a0abd23442bac3aee4 Author: Hiroki Tagato <tagattie@FreeBSD.org> AuthorDate: 2024-02-03 05:57:38 +0000 Commit: Hiroki Tagato <tagattie@FreeBSD.org> CommitDate: 2024-02-03 06:01:37 +0000 misc/py-openai: update runtime dependency on py-pydantic to py-pydantic2 misc/py-shell-gpt (one of the dependent ports on py-openai) has the following dependency graph: misc/py-shell-gpt -> misc/py-instructor -> devel/py-pydantic2 (pyproject.toml contains pydantic = "^2.0.2") -> misc/py-openai -> devel/py-pydantic (pyproject.toml contains "pydantic>=1.9.0, <3") Updating the dependency of py-openai to py-pydantic2 satisfies both requirements at the same time. PR: 276548 Approved by: yuri (maintainer) misc/py-openai/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Committed, thanks!