commit 411cbc11217d7766813cc37c217b26fce0997353e19d9f221fc0cbb1dad4cd74 Author: Dirk Mueller Date: Thu Oct 10 14:44:14 2024 +0000 - Update to 7.3 * Respect ``PURE_PYTHON`` environment variable set to ``0``. - from version 7.2 * Declare final support for Python 3.13. - Adjust upstream source name in spec file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.security?expand=0&rev=38 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-zope.security.changes b/python-zope.security.changes new file mode 100644 index 0000000..6b44cfd --- /dev/null +++ b/python-zope.security.changes @@ -0,0 +1,197 @@ +------------------------------------------------------------------- +Thu Oct 10 14:40:22 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 7.3 + * Respect ``PURE_PYTHON`` environment variable set to ``0``. +- from version 7.2 + * Declare final support for Python 3.13. +- Adjust upstream source name in spec file + +------------------------------------------------------------------- +Sun Sep 8 16:31:15 UTC 2024 - Dirk Müller + +- update to 7.1: + * Allow calling methods of type by + default. In particular, Python 3.12 refactored the io module + in such a way as to slightly change the types of some + methods, causing zope.security to no longer consider them + callable. See zope.file#13. + +------------------------------------------------------------------- +Mon Jun 10 08:53:45 UTC 2024 - Dirk Müller + +- update to 7.0: + * Add preliminary support for Python 3.13 as of 3.13b1. + * Drop support for Python 3.7. + * Build windows wheels on GHA. + +------------------------------------------------------------------- +Mon Dec 11 08:17:19 UTC 2023 - Dirk Müller + +- update to 6.2: + * Make ``next()`` on C proxies call ``__next__`` rather than + ``next`` (see PEP 3114), and drop support for the Python 2 + ``next`` method name from pure-Python proxies. + * Drop using ``setup_requires`` due to constant problems on + GHA. + * Add support for Python 3.12. + +------------------------------------------------------------------- +Fri Jun 9 12:59:34 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Fri May 5 14:30:05 UTC 2023 - Dirk Müller + +- update to 6.1: + * Remove more proxying code for names that no longer exist in + Python 3. + * Remove proxying code for names that no longer exist in Python 3. + * Drop support for Python 2.7, 3.5, 3.6. + +------------------------------------------------------------------- +Tue Dec 13 17:46:19 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 5.8 + * The extra untrustedpython now for Python 3, too, installs zope.untrustedpython. + +------------------------------------------------------------------- +Mon Dec 5 13:53:24 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 5.7 + * Release to rebuild full set of binary wheels. + +- Update to version 5.6 + * Add support for building arm64 wheels on macOS. + +------------------------------------------------------------------- +Tue Nov 8 12:06:32 UTC 2022 - Hans-Peter Jansen + +- Update to version 5.5 + * Add support for final release of Python 3.11. + +------------------------------------------------------------------- +Sat Oct 29 18:10:03 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 5.4.0 + * Disable unsafe math optimizations in C code. See pull request 89. + +------------------------------------------------------------------- +Fri Sep 16 19:41:00 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 5.3.0 + * Allow calling bound methods of some built-in objects such as ().__repr__ and {}.__repr__ by default. + This worked on Python 2, but raised ForbiddenAttribute on Python 3. See issue 75. + * Remove usage of unittest.makeSuite as it is deprecated in Python 3.11+. See issue 83. + * Add support for Python 3.11 (as of 3.11.0a7). + +------------------------------------------------------------------- +Mon Apr 11 19:24:54 UTC 2022 - Ben Greiner + +- Update to version 5.2.0 + * Add support for Python 3.9 and 3.10. + +------------------------------------------------------------------- +Thu Apr 2 07:35:18 UTC 2020 - pgajdos@suse.com + +- version update to 5.1.1 + - Ensure all objects have consistent interface resolution orders (if + all dependencies are up-to-date). See `issue 71 + `_. + +------------------------------------------------------------------- +Mon Mar 9 10:17:25 UTC 2020 - pgajdos@suse.com + +- version update to 5.1.0 + - Let proxied interfaces be iterated on Python 3. This worked on + Python 2, but raised ``ForbiddenAttribute`` an Python 3. See + `zope.interface issue 141 `_. + - Allow to use a common Sphinx version for Python 2 and 3. + +------------------------------------------------------------------- +Tue Jan 21 10:48:01 UTC 2020 - Marketa Calabkova + +- update to version 5.0 + * Drop support for Python 3.4. + * Add support for Python 3.8. + * Properly declare dependency on zope.schema >= 4.2.0, introduced in zope.security 4.2.1. + * Fix dict item view iteration on PyPy3 7.x. + +------------------------------------------------------------------- +Mon Apr 8 13:53:23 UTC 2019 - Marketa Calabkova + +- update to version 4.3.1 + * Fix the decimal.Decimal checker, __truediv__ was missing + causing ForbiddenAttribute on a ProxyFactory(Decimal('1')) / 1 + operation + 4.3.0 + * Add the interface ISystemPrincipal and make + zope.security.management.system_user a regular object that + implements this interface. + 4.2* + * Add support for Python 3.7. + * Make the pure-Python proxy on Python 2 not check permissions for + __unicode__ just like the C implementation. Note that __str__ is + checked for both implementations on both Python 2 and 3, but if + there is no __unicode__ method defined, Python 2’s automatic + fallback to __str__ is not checked when unicode is called. + * Fix the default values for Permission fields title and + description under Python 2. + * Change the IPermission.id from Text (unicode) to a + NativeStringLine. + * Fix the extremely rare potential for a crash when the C + extensions are in use. + * The pure-Python proxy didn’t propagate TypeError from __repr__ + and __str__ like the C implementation did. + * Iteration of zope.interface.providedBy() is now allowed by + default on all versions of Python. + * Drop support for Python 3.3. + * Respect PURE_PYTHON at runtime. + * Fix watching checkers (ZOPE_WATCH_CHECKERS=1) in pure-Python + mode. +- Fix tests using multibuild (can be dropped in the future). + +------------------------------------------------------------------- +Sun Jul 16 08:06:14 UTC 2017 - aloisio@gmx.com + +- Update to version 4.1.1 + * Fix issue 23: iteration of collections.OrderedDict and its + various views is now allowed by default on all versions of + Python. + * As a further fix for issue 20, iteration of BTree itself is + now allowed by default. + 4.1.0: + * When testing PURE_PYTHON environments under tox, avoid + poisoning the user’s global wheel cache. + * Drop support for Python 2.6 and 3.2. + * Add support for Python 3.5 and 3.6. + * Fix issue 20: iteration of pure-Python BTrees.items(), and + also creating a list from BTrees.items() on Python 3. The same + applies for keys() and values(). + 4.0.3: + * Fix iteration over security proxies in Python 3 using the + pure-Python implementation. + 4.0.2: + * Fix compatibility with zope.proxy 4.1.5 under PyPy. + * Fix the very first call to removeSecurityProxy returning + incorrect results if given a proxy under PyPy. + 4.0.1: + * Add support for Python 3.4. + +- Split docs and tests into separate -doc package to avoid + dependency loop and other zope-related problems, see + (gh#/zopefoundation/zope.proxy#18) + +- Converted to single-spec + +------------------------------------------------------------------- +Tue Jul 30 10:49:33 UTC 2013 - hpj@urpla.net + +- don't ship *.c files + +------------------------------------------------------------------- +Mon Jul 29 10:34:02 UTC 2013 - hpj@urpla.net + +- version 4.0.0: initial build + diff --git a/python-zope.security.spec b/python-zope.security.spec new file mode 100644 index 0000000..a26a6d4 --- /dev/null +++ b/python-zope.security.spec @@ -0,0 +1,96 @@ +# +# spec file for package python-zope.security +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2013-2022 LISA GmbH, Bingen, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-zope.security%{psuffix} +Version: 7.3 +Release: 0 +Summary: Zope Security Framework +License: ZPL-2.1 +Group: Development/Languages/Python +URL: https://www.python.org/pypi/zope.security +Source0: https://files.pythonhosted.org/packages/source/z/zope_security/zope_security-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module zope.interface} +BuildRequires: %{python_module zope.proxy-devel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytz +Requires: python-zope.component +Requires: python-zope.configuration +Requires: python-zope.i18nmessageid +Requires: python-zope.interface +Requires: python-zope.location +Requires: python-zope.proxy >= 4.3.0 +Requires: python-zope.schema >= 4.2.0 +%if %{with test} +BuildRequires: %{python_module BTrees} +BuildRequires: %{python_module zope.component} +BuildRequires: %{python_module zope.configuration} +BuildRequires: %{python_module zope.location} +BuildRequires: %{python_module zope.proxy >= 4.3.0} +BuildRequires: %{python_module zope.schema >= 4.2.0} +BuildRequires: %{python_module zope.security = %{version}} +BuildRequires: %{python_module zope.testing} +BuildRequires: %{python_module zope.testrunner} +%endif +%python_subpackages + +%description +The Security framework provides a generic mechanism to implement security +policies on Python objects. + +%prep +%setup -q -n zope_security-%{version} + +%build +%python_build + +%install +%if !%{with test} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} +%python_expand rm %{buildroot}%{$python_sitearch}/zope/security/*.c +%endif + +%if %{with test} +%check +%python_expand %{_bindir}/zope-testrunner-%{$python_bin_suffix} -vvv --test-path src +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE.txt +%doc README.rst +%dir %{python_sitearch}/zope +%{python_sitearch}/zope/security +%{python_sitearch}/zope.security-%{version}*-info +%{python_sitearch}/zope.security-%{version}*-nspkg.pth +%endif + +%changelog diff --git a/zope.security-7.0.tar.gz b/zope.security-7.0.tar.gz new file mode 100644 index 0000000..70bf223 --- /dev/null +++ b/zope.security-7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f4ef50b5bd40ccb9b22fb74f845fd0edf67e29dcf3233d923915959f94f16ff +size 144615 diff --git a/zope.security-7.1.tar.gz b/zope.security-7.1.tar.gz new file mode 100644 index 0000000..cb99659 --- /dev/null +++ b/zope.security-7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed092bc659aa273c45929cfbd10b8e479f1ea8cf469fe0ff8bbc3ae24ea16e63 +size 125753 diff --git a/zope_security-7.3.tar.gz b/zope_security-7.3.tar.gz new file mode 100644 index 0000000..e634b5f --- /dev/null +++ b/zope_security-7.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5db5f79195321f2450ba49b3e1e47ba54364f966fdfc6d39df723043fe6c5549 +size 145814