From cd388fbd548958d370663000577dce66dafe0b8814a8c0049b5bf44ff8d1bc93 Mon Sep 17 00:00:00 2001 From: Hans-Peter Jansen Date: Thu, 29 Jun 2017 08:42:37 +0000 Subject: [PATCH] Accepting request 506562 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/506562 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-BTrees?expand=0&rev=7 --- BTrees-4.1.2.tar.gz | 3 -- BTrees-4.4.1.tar.gz | 3 ++ python-BTrees.changes | 72 +++++++++++++++++++++++++++++++++++++++++++ python-BTrees.spec | 64 ++++++++++++++++++++------------------ 4 files changed, 109 insertions(+), 33 deletions(-) delete mode 100644 BTrees-4.1.2.tar.gz create mode 100644 BTrees-4.4.1.tar.gz diff --git a/BTrees-4.1.2.tar.gz b/BTrees-4.1.2.tar.gz deleted file mode 100644 index 772276a..0000000 --- a/BTrees-4.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:81c15214099a69cbbb65ca862e5d67a7baa34e9e233b26c18611251c59e6d3a1 -size 181675 diff --git a/BTrees-4.4.1.tar.gz b/BTrees-4.4.1.tar.gz new file mode 100644 index 0000000..f38dd7d --- /dev/null +++ b/BTrees-4.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2738b71693971c1f7502888d649bef270c65f026db731e03d53f1ec4edfe8a3 +size 166206 diff --git a/python-BTrees.changes b/python-BTrees.changes index fc0dd6f..acde59a 100644 --- a/python-BTrees.changes +++ b/python-BTrees.changes @@ -1,3 +1,75 @@ +------------------------------------------------------------------- +Sat Jun 24 12:19:41 UTC 2017 - aloisio@gmx.com + +- Update to version 4.4.1 + * Fixed a packaging bug that caused extra files to be included + (some of which caused problems in some platforms). + 4.4.0: + * Allow None as a special key (sorted smaller than all others). + * This is a bit of a return to BTrees 3 behavior in that Nones + are allowed as keys again. Other objects with default ordering + are still not allowed as keys. + 4.3.2: + * Make the CPython implementation consistent with the + pure-Python implementation and only check object keys for + default comparison when setting keys. In Python 2 this makes it + possible to remove keys that were added using a less restrictive + version of BTrees. (In Python 3 keys that are unorderable still + cannot be removed.) Likewise, all versions can unpickle trees + that already had such keys. See: + https://github.com/zopefoundation/BTrees/issues/53 and + https://github.com/zopefoundation/BTrees/issues/51 + * Make the Python implementation consistent with the CPython + implementation and check object key identity before checking + equality and performing comparisons. This can allow fixing trees + that have keys that now have broken comparison functions. See + https://github.com/zopefoundation/BTrees/issues/50 + * Make the CPython implementation consistent with the + pure-Python implementation and no longer raise TypeError for an + object key (in object-keyed trees) with default comparison on + __getitem__, get or in operations. Instead, the results will be + a KeyError, the default value, and False, respectively. + Previously, CPython raised a TypeError in those cases, while the + Python implementation behaved as specified. + * Likewise, non-integer keys in integer-keyed trees will raise + KeyError, return the default and return False, respectively, in + both implementations. Previously, pure-Python raised a KeyError, + returned the default, and raised a TypeError, while CPython + raised TypeError in all three cases. + 4.3.1: + * Packaging: fix password used to automate wheel creation on + Travis. + 4.3.0: + * Fix unexpected OverflowError when passing 64bit values to + long keys / values on Win64. See: + https://github.com/zopefoundation/BTrees/issues/32 + * When testing PURE_PYTHON environments under tox, avoid + poisoning the user’s global wheel cache. + * Ensure that the pure-Python implementation, used on PyPy and + when a C compiler isn’t available for CPython, pickles + identically to the C version. Unpickling will choose the best + available implementation. This change prevents interoperability + problems and database corruption if both implementations are in + use. While it is no longer possible to pickle a Python + implementation and have it unpickle to the Python implementation + if the C implementation is available, existing Python pickles + will still unpickle to the Python implementation (until pickled + again). See: https://github.com/zopefoundation/BTrees/issues/19 + * Avoid creating invalid objects when unpickling empty BTrees + in a pure-Python environment. + * Drop support for Python 2.6 and 3.2. + 4.2.0: + * Add support for Python 3.5. + 4.1.4: + * Ensure that pure-Python Bucket and Set objects have a human + readable __repr__ like the C versions. + 4.1.3: + * Fix _p_changed when removing items from small pure-Python + BTrees/TreeSets and when adding items to small pure-Python Sets. + See: https://github.com/zopefoundation/BTrees/issues/13 + +- Converted to single-spec + ------------------------------------------------------------------- Mon Apr 27 20:13:30 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-BTrees.spec b/python-BTrees.spec index b329af1..d623e86 100644 --- a/python-BTrees.spec +++ b/python-BTrees.spec @@ -1,7 +1,7 @@ # # spec file for package python-BTrees # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,30 +17,30 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-BTrees -Version: 4.1.2 +Version: 4.4.1 Release: 0 Summary: Scalable persistent object containers License: ZPL-2.1 Group: Development/Libraries/Python Url: http://www.zope.org/Products/ZODB -Source: https://pypi.python.org/packages/source/B/BTrees/BTrees-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-persistent-devel -BuildRequires: python-setuptools -BuildRequires: python-zope.interface +Source: https://files.pythonhosted.org/packages/source/B/BTrees/BTrees-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module persistent-devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module zope.interface} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# Documentation requirements: +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module repoze.sphinx.autointerface} +# Testing requirements: +BuildRequires: %{python_module transaction} Requires: python-persistent Requires: python-zope.interface -# Documentation requirements: -BuildRequires: python-Sphinx -BuildRequires: python-repoze.sphinx.autointerface -# Testing requirements: -BuildRequires: python-transaction BuildRoot: %{_tmppath}/%{name}-%{version}-build - -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%endif +%python_subpackages %description This package contains a generic BTrees implementation for Python. It is @@ -52,47 +52,51 @@ express in the interface. This could probably use more work. The semantics are presented in detail through examples of a sample data manager in BTrees.tests.test_SampleDataManager. -%package devel +%package devel Summary: Scalable persistent object containers Group: Development/Languages/Python Requires: %{name} = %{version} -%description devel +%description devel This package contains the files needed for binding the %{name} C module. -%package doc +%package doc Summary: Scalable persistent object containers Group: Development/Libraries/Python Requires: %{name} = %{version} -%description doc +%description doc This package contains documentation files for %{name}. %prep %setup -q -n BTrees-%{version} +rm -rf BTrees.egg-info %build -python setup.py build -python setup.py build_sphinx && rm build/sphinx/html/.buildinfo +%python_build +%{_python_use_flavor python3} +%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -rm %{buildroot}%python_sitearch/BTrees/*.c +%python_install +%{python_expand rm %{buildroot}%{$python_sitearch}/BTrees/*.c + %fdupes -s %{buildroot}%{$python_sitearch} +} %check -python setup.py -q test +%python_exec setup.py -q test -%files +%files %{python_files} %defattr(-,root,root) %doc CHANGES.rst COPYRIGHT.txt LICENSE.txt PKG-INFO README.rst -%exclude %python_sitearch/BTrees/*.h +%exclude %{python_sitearch}/BTrees/*.h %{python_sitearch}/* -%files devel +%files %{python_files devel} %defattr(-,root,root,-) -%python_sitearch/BTrees/*.h +%{python_sitearch}/BTrees/*.h -%files doc +%files %{python_files doc} %defattr(-,root,root,-) %doc build/sphinx/html/