Date: Fri, 25 Mar 2022 13:50:22 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: 8e41760f5887 - main - devel/py-zope.deferredimport: Fix build with setuptools 58.0.0+ Message-ID: <202203251350.22PDoM6Z036858@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=8e41760f5887e4fa40066a61c3cde97e243a8dc0 commit 8e41760f5887e4fa40066a61c3cde97e243a8dc0 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-03-25 13:32:30 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-03-25 13:38:14 +0000 devel/py-zope.deferredimport: Fix build with setuptools 58.0.0+ With hat: python --- devel/py-zope.deferredimport/files/patch-2to3 | 55 +++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/devel/py-zope.deferredimport/files/patch-2to3 b/devel/py-zope.deferredimport/files/patch-2to3 new file mode 100644 index 000000000000..fa1466d0c94b --- /dev/null +++ b/devel/py-zope.deferredimport/files/patch-2to3 @@ -0,0 +1,55 @@ +--- src/zope/deferredimport/deferredmodule.py.orig 2010-09-25 12:48:49 UTC ++++ src/zope/deferredimport/deferredmodule.py +@@ -65,7 +65,7 @@ class ModuleProxy(zope.proxy.ProxyBase): + try: + get = self.__deferred_definitions__.pop(name) + except KeyError: +- raise AttributeError, name ++ raise AttributeError(name) + v = get.get() + setattr(self, name, v) + return v +@@ -108,7 +108,7 @@ def define(**names): + """ + module = initialize(2) + __deferred_definitions__ = module.__deferred_definitions__ +- for name, specifier in names.iteritems(): ++ for name, specifier in names.items(): + __deferred_definitions__[name] = Deferred(name, specifier) + + def defineFrom(from_name, *names): +@@ -135,7 +135,7 @@ def deprecated(message, **names): + """ + module = initialize(2) + __deferred_definitions__ = module.__deferred_definitions__ +- for name, specifier in names.iteritems(): ++ for name, specifier in names.items(): + __deferred_definitions__[name] = DeferredAndDeprecated( + name, specifier, message) + +--- src/zope/deferredimport/tests.py.orig 2010-09-25 12:48:49 UTC ++++ src/zope/deferredimport/tests.py +@@ -39,20 +39,20 @@ def warn(message, type_, stacklevel): + for i in range(lineno): + line = file.readline() + +- print "%s:%s: %s: %s\n %s" % ( ++ print("%s:%s: %s: %s\n %s" % ( + path, + frame.f_lineno, + type_.__name__, + message, + line.strip(), +- ) ++ )) + + + def setUp(test): + d = test.globs['tmp_d'] = tempfile.mkdtemp('deferredimport') + + def create_module(**modules): +- for name, src in modules.iteritems(): ++ for name, src in modules.items(): + f = open(os.path.join(d, name+'.py'), 'w') + f.write(src) + f.close()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203251350.22PDoM6Z036858>