[Bug 273309] databases/py-mysql-connector-python: errors with devel/py-protobuf 4.23.2,1

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 25 Aug 2023 19:50:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273309

Po-Chuan Hsieh <sunpoet@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|ports-bugs@FreeBSD.org      |bofh@freebsd.org

--- Comment #1 from Po-Chuan Hsieh <sunpoet@FreeBSD.org> ---
The epoch is used only in FreeBSD version check. It does not affect python.
py-protobuf's version in Python is 4.24.1 (currently).

Before I update devel/py-protobuf, I always checked all dependent ports. Since
py-mysql-connector-python's RUN_DEPENDS says >=3.11.0, it should be OK.
However, it actually requires 4.21.1 to 4.21.2 (install_requires in setup.py).

If latest py-protobuf works fine.
The simplest patch is as follows:

--- setup.py.orig       2023-08-23 14:48:53 UTC
+++ setup.py
@@ -137,7 +137,7 @@ setup(
     ext_modules=EXTENSIONS,
     cmdclass=COMMAND_CLASSES,
     python_requires=">=3.8",
-    install_requires=["protobuf>=4.21.1,<=4.21.12"],
+    install_requires=["protobuf>=4.21.1"],
     extras_require={
         "dns-srv": ["dnspython>=1.16.0,<=2.3.0"],
         "compression": ["lz4>=2.1.6,<=4.3.2", "zstandard>=0.12.0,<=0.19.0"],

And RUN_DEPENDS should be updated to match the above range.

Pass this PR to maintainer.

-- 
You are receiving this mail because:
You are the assignee for the bug.