Date: Fri, 25 Mar 2022 13:50:01 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: f9075b3add64 - main - devel/py-minimongo: Fix build with setuptools 58.0.0+ Message-ID: <202203251350.22PDo1Iu029835@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f9075b3add647537253615b29829113761d00278 commit f9075b3add647537253615b29829113761d00278 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-03-25 13:32:17 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-03-25 13:38:09 +0000 devel/py-minimongo: Fix build with setuptools 58.0.0+ With hat: python --- devel/py-minimongo/files/patch-2to3 | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/devel/py-minimongo/files/patch-2to3 b/devel/py-minimongo/files/patch-2to3 new file mode 100644 index 000000000000..c1d52c0b4e32 --- /dev/null +++ b/devel/py-minimongo/files/patch-2to3 @@ -0,0 +1,29 @@ +--- minimongo/config.py.orig 2011-04-13 04:54:06 UTC ++++ minimongo/config.py +@@ -31,7 +31,7 @@ def _resolve_name(name, package, level): + if not hasattr(package, 'rindex'): + raise ValueError("'package' not set to a string") + dot = len(package) +- for x in xrange(level, 1, -1): ++ for x in range(level, 1, -1): + try: + dot = package.rindex('.', 0, dot) + except ValueError: +@@ -66,7 +66,7 @@ if __name__ != '__main__': + + try: + settings_modules.append(os.environ['MINIMONGO_SETTINGS_MODULE']) +- except KeyError, e: ++ except KeyError as e: + pass + + # Here are the other 2 places that we try to import configs from: +@@ -81,7 +81,7 @@ if __name__ != '__main__': + # Once we get a successfull config module import, we break out + # of the loop above. + break +- except ImportError, exc: ++ except ImportError as exc: + # Error importing this modlue, so we continue + pass +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203251350.22PDo1Iu029835>