Hello community,
here is the log from the commit of package python-zope.security for
openSUSE:Factory checked in at 2020-04-07 10:21:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zope.security (Old)
and /work/SRC/openSUSE:Factory/.python-zope.security.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zope.security"
Tue Apr 7 10:21:16 2020 rev:5 rq:790820 version:5.1.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-zope.security/python-zope.security.changes
2020-03-11 18:46:37.171424124 +0100
+++
/work/SRC/openSUSE:Factory/.python-zope.security.new.3248/python-zope.security.changes
2020-04-07 10:21:20.565830559 +0200
@@ -1,0 +2,8 @@
+Thu Apr 2 07:35:18 UTC 2020 - [email protected]
+
+- version update to 5.1.1
+ - Ensure all objects have consistent interface resolution orders (if
+ all dependencies are up-to-date). See `issue 71
+ <https://github.com/zopefoundation/zope.security/issues/71>`_.
+
+-------------------------------------------------------------------
Old:
----
zope.security-5.1.0.tar.gz
New:
----
zope.security-5.1.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-zope.security.spec ++++++
--- /var/tmp/diff_new_pack.lczc40/_old 2020-04-07 10:21:21.189831252 +0200
+++ /var/tmp/diff_new_pack.lczc40/_new 2020-04-07 10:21:21.193831257 +0200
@@ -27,7 +27,7 @@
%bcond_with test
%endif
Name: python-zope.security%{psuffix}
-Version: 5.1.0
+Version: 5.1.1
Release: 0
Summary: Zope Security Framework
License: ZPL-2.1
++++++ zope.security-5.1.0.tar.gz -> zope.security-5.1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zope.security-5.1.0/.travis.yml
new/zope.security-5.1.1/.travis.yml
--- old/zope.security-5.1.0/.travis.yml 2020-02-14 11:20:18.000000000 +0100
+++ new/zope.security-5.1.1/.travis.yml 2020-03-23 16:33:17.000000000 +0100
@@ -5,6 +5,7 @@
TWINE_USERNAME: zope.wheelbuilder
TWINE_PASSWORD:
secure:
"U6CeZtNEPDN3qKXfrLcvHFLrowqNWxmapXLWygZRxKgfR+ypowe1Y0a4kCBEBZKtysbY26MmIkrMV07tEMxny1yUWVCvRvUaQw0Ic3t5CM0R019zjVh9fQUTdWGCwri86Qj/OaeuPeMR0LCr6d9nMSun0GWSWhjOUhkTCdchfQw="
+ ZOPE_INTERFACE_STRICT_IRO: 1
python:
- 2.7
@@ -62,6 +63,10 @@
os: osx
language: generic
env: TERRYFY_PYTHON='macpython 3.7.0'
+ - name: Python 3.8 wheels for MacOS
+ os: osx
+ language: generic
+ env: TERRYFY_PYTHON='macpython 3.8.0'
before_install:
- |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zope.security-5.1.0/CHANGES.rst
new/zope.security-5.1.1/CHANGES.rst
--- old/zope.security-5.1.0/CHANGES.rst 2020-02-14 11:20:18.000000000 +0100
+++ new/zope.security-5.1.1/CHANGES.rst 2020-03-23 16:33:17.000000000 +0100
@@ -2,6 +2,14 @@
Changes
=========
+5.1.1 (2020-03-23)
+==================
+
+- Ensure all objects have consistent interface resolution orders (if
+ all dependencies are up-to-date). See `issue 71
+ <https://github.com/zopefoundation/zope.security/issues/71>`_.
+
+
5.1.0 (2020-02-14)
==================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zope.security-5.1.0/PKG-INFO
new/zope.security-5.1.1/PKG-INFO
--- old/zope.security-5.1.0/PKG-INFO 2020-02-14 11:20:18.000000000 +0100
+++ new/zope.security-5.1.1/PKG-INFO 2020-03-23 16:33:18.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: zope.security
-Version: 5.1.0
+Version: 5.1.1
Summary: Zope Security Framework
Home-page: http://github.com/zopefoundation/zope.security
Author: Zope Foundation and Contributors
@@ -39,6 +39,14 @@
Changes
=========
+ 5.1.1 (2020-03-23)
+ ==================
+
+ - Ensure all objects have consistent interface resolution orders (if
+ all dependencies are up-to-date). See `issue 71
+ <https://github.com/zopefoundation/zope.security/issues/71>`_.
+
+
5.1.0 (2020-02-14)
==================
@@ -660,7 +668,7 @@
Classifier: Framework :: Zope :: 3
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
Provides-Extra: pytz
-Provides-Extra: docs
Provides-Extra: untrustedpython
-Provides-Extra: test
Provides-Extra: zcml
+Provides-Extra: test
+Provides-Extra: docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zope.security-5.1.0/setup.py
new/zope.security-5.1.1/setup.py
--- old/zope.security-5.1.0/setup.py 2020-02-14 11:20:18.000000000 +0100
+++ new/zope.security-5.1.1/setup.py 2020-03-23 16:33:17.000000000 +0100
@@ -127,7 +127,7 @@
setup(name='zope.security',
- version='5.1.0',
+ version='5.1.1',
author='Zope Foundation and Contributors',
author_email='[email protected]',
description='Zope Security Framework',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zope.security-5.1.0/src/zope/security/_compat.py
new/zope.security-5.1.1/src/zope/security/_compat.py
--- old/zope.security-5.1.0/src/zope/security/_compat.py 2020-02-14
11:20:18.000000000 +0100
+++ new/zope.security-5.1.1/src/zope/security/_compat.py 2020-03-23
16:33:17.000000000 +0100
@@ -39,4 +39,25 @@
PYTHON2 = False
-_BLANK = u''
+class implementer_if_needed(object):
+ # Helper to make sure we don't redundantly implement interfaces
+ # already inherited. Doing so tends to produce problems with the
+ # C3 order. Even though here we could easily statically determine
+ # if we need the interface or not, this is used for clarity, to
+ # reduce the testing load, and to insulate against changes in
+ # super classes.
+ def __init__(self, *ifaces):
+ self._ifaces = ifaces
+
+ def __call__(self, cls):
+ from zope.interface import implementedBy
+ from zope.interface import implementer
+
+ ifaces_needed = []
+ implemented = implementedBy(cls)
+ ifaces_needed = [
+ iface
+ for iface in self._ifaces
+ if not implemented.isOrExtends(iface)
+ ]
+ return implementer(*ifaces_needed)(cls)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zope.security-5.1.0/src/zope/security/checker.py
new/zope.security-5.1.1/src/zope/security/checker.py
--- old/zope.security-5.1.0/src/zope/security/checker.py 2020-02-14
11:20:18.000000000 +0100
+++ new/zope.security-5.1.1/src/zope/security/checker.py 2020-03-23
16:33:17.000000000 +0100
@@ -82,6 +82,7 @@
from zope.security._compat import CLASS_TYPES
from zope.security._compat import PYTHON2
from zope.security._compat import PURE_PYTHON
+from zope.security._compat import implementer_if_needed
from zope.security.proxy import Proxy
from zope.security.proxy import getChecker
@@ -503,7 +504,7 @@
_getChecker = _checkers.get
-@implementer(IChecker)
+@implementer_if_needed(IChecker)
class CombinedChecker(Checker):
"""A checker that combines two other checkers in a logical-or fashion.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zope.security-5.1.0/src/zope/security/zcml.py
new/zope.security-5.1.1/src/zope/security/zcml.py
--- old/zope.security-5.1.0/src/zope/security/zcml.py 2020-02-14
11:20:18.000000000 +0100
+++ new/zope.security-5.1.1/src/zope/security/zcml.py 2020-03-23
16:33:17.000000000 +0100
@@ -18,21 +18,22 @@
from zope.configuration.fields import GlobalObject
from zope.configuration.fields import MessageID
from zope.interface import Interface
-from zope.interface import implementer
from zope.schema import Id
from zope.schema.interfaces import IFromUnicode
+from zope.security._compat import implementer_if_needed
from zope.security.permission import checkPermission
from zope.security.management import setSecurityPolicy
from zope.security.interfaces import PUBLIC_PERMISSION_NAME as zope_Public
-@implementer(IFromUnicode)
+
+@implementer_if_needed(IFromUnicode)
class Permission(Id):
r"""This field describes a permission.
"""
- def fromUnicode(self, u):
- u = super(Permission, self).fromUnicode(u)
+ def fromUnicode(self, value):
+ u = super(Permission, self).fromUnicode(value)
map = getattr(self.context, 'permission_mapping', {})
return map.get(u, u)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/zope.security-5.1.0/src/zope.security.egg-info/PKG-INFO
new/zope.security-5.1.1/src/zope.security.egg-info/PKG-INFO
--- old/zope.security-5.1.0/src/zope.security.egg-info/PKG-INFO 2020-02-14
11:20:18.000000000 +0100
+++ new/zope.security-5.1.1/src/zope.security.egg-info/PKG-INFO 2020-03-23
16:33:18.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: zope.security
-Version: 5.1.0
+Version: 5.1.1
Summary: Zope Security Framework
Home-page: http://github.com/zopefoundation/zope.security
Author: Zope Foundation and Contributors
@@ -39,6 +39,14 @@
Changes
=========
+ 5.1.1 (2020-03-23)
+ ==================
+
+ - Ensure all objects have consistent interface resolution orders (if
+ all dependencies are up-to-date). See `issue 71
+ <https://github.com/zopefoundation/zope.security/issues/71>`_.
+
+
5.1.0 (2020-02-14)
==================
@@ -660,7 +668,7 @@
Classifier: Framework :: Zope :: 3
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
Provides-Extra: pytz
-Provides-Extra: docs
Provides-Extra: untrustedpython
-Provides-Extra: test
Provides-Extra: zcml
+Provides-Extra: test
+Provides-Extra: docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zope.security-5.1.0/tox.ini
new/zope.security-5.1.1/tox.ini
--- old/zope.security-5.1.0/tox.ini 2020-02-14 11:20:18.000000000 +0100
+++ new/zope.security-5.1.1/tox.ini 2020-03-23 16:33:17.000000000 +0100
@@ -13,28 +13,10 @@
test
docs
deps =
-
-[testenv:py27-watch]
-basepython =
- python2.7
-setenv =
- PURE_PYTHON = 1
- ZOPE_WATCH_CHECKERS = 1
- PIP_CACHE_DIR = {envdir}/.cache
-
-[testenv:py37-watch]
-basepython =
- python3.7
-setenv =
- ZOPE_WATCH_CHECKERS = 1
- PIP_CACHE_DIR = {envdir}/.cache
-
-[testenv:py37-pure]
-basepython =
- python3.7
setenv =
- PURE_PYTHON = 1
- PIP_CACHE_DIR = {envdir}/.cache
+ ZOPE_INTERFACE_STRICT_IRO = 1
+ watch: ZOPE_WATCH_CHECKERS = 1
+ pure: PURE_PYTHON = 1
[testenv:coverage]
usedevelop = true