From 24dd38c9aa291d7530d59279f9c2f09e7368e1b78094ffa0155f97a1f843caac Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Thu, 7 May 2015 11:56:29 +0000 Subject: [PATCH] Accepting request 305492 from home:benoit_monin:branches:devel:languages:python - update to version 0.9.0 - update project URL - add fdupes as BuildRequires and call it after install - add dependencies (nose, nosexcover) for the tests - add delete_platform_specific_test.patch: fix tests on powerpc - pass -q to the test to avoid spamming the build log OBS-URL: https://build.opensuse.org/request/show/305492 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-smmap?expand=0&rev=7 --- delete_platform_specific_test.patch | 21 +++++++++++++++++++++ python-smmap.changes | 24 ++++++++++++++++++++++++ python-smmap.spec | 15 +++++++++++---- smmap-0.8.2.tar.gz | 3 --- smmap-0.9.0.tar.gz | 3 +++ 5 files changed, 59 insertions(+), 7 deletions(-) create mode 100644 delete_platform_specific_test.patch delete mode 100644 smmap-0.8.2.tar.gz create mode 100644 smmap-0.9.0.tar.gz diff --git a/delete_platform_specific_test.patch b/delete_platform_specific_test.patch new file mode 100644 index 0000000..40beb1d --- /dev/null +++ b/delete_platform_specific_test.patch @@ -0,0 +1,21 @@ +Remove a test that fails on powerpc and probably any non x86 platform. + +Index: b/smmap/test/test_util.py +=================================================================== +--- a/smmap/test/test_util.py ++++ b/smmap/test/test_util.py +@@ -76,14 +76,6 @@ class TestMMan(TestBase): + + assert rfull.includes_ofs(0) and rfull.includes_ofs(fc.size - 1) and rfull.includes_ofs(half_size) + assert not rfull.includes_ofs(-1) and not rfull.includes_ofs(sys.maxsize) +- # with the values we have, this test only works on windows where an alignment +- # size of 4096 is assumed. +- # We only test on linux as it is inconsitent between the python versions +- # as they use different mapping techniques to circumvent the missing offset +- # argument of mmap. +- if sys.platform != 'win32': +- assert rhalfofs.includes_ofs(rofs) and not rhalfofs.includes_ofs(0) +- # END handle platforms + + # auto-refcount + assert rfull.client_count() == 1 diff --git a/python-smmap.changes b/python-smmap.changes index a86a669..eb6fa32 100644 --- a/python-smmap.changes +++ b/python-smmap.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Tue May 5 17:54:52 UTC 2015 - benoit.monin@gmx.fr + +- update to version 0.9.0: + * Fixed issue with resources never being freed as mmaps were + never closed + * Client counting is now done manually, instead of relying on + pyton's reference count +- additional changes from version 0.8.5: + * Fixed Python 3.0-3.3 regression, which also causes smmap to + become about 3 times slower depending on the code path. It's + related to this bug (http://bugs.python.org/issue15958), which + was fixed in python 3.4 +- additional changes from version 0.8.4: + * Fixed Python 3 performance regression +- additional changes from version 0.8.3: + * Cleaned up code and assured it works sufficiently well with + python 3 +- update project URL +- add fdupes as BuildRequires and call it after install +- add dependencies (nose, nosexcover) for the tests +- add delete_platform_specific_test.patch: fix tests on powerpc +- pass -q to the test to avoid spamming the build log + ------------------------------------------------------------------- Thu Oct 24 11:14:45 UTC 2013 - speilicke@suse.com diff --git a/python-smmap.spec b/python-smmap.spec index d07bd3e..5265ce9 100644 --- a/python-smmap.spec +++ b/python-smmap.spec @@ -1,7 +1,7 @@ # # spec file for package python-smmap # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,15 +17,20 @@ Name: python-smmap -Version: 0.8.2 +Version: 0.9.0 Release: 0 -Url: https://github.com/Byron/smmap +Url: https://github.com/gitpython-developers/smmap Summary: A pure git implementation of a sliding window memory map manager License: BSD-2-Clause Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/s/smmap/smmap-%{version}.tar.gz +# PATCH-FIX-OPENSUSE delete_platform_specific_test.patch -- fix tests on powerpc +Patch0: delete_platform_specific_test.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: fdupes BuildRequires: python-devel +BuildRequires: python-nose +BuildRequires: python-nosexcover BuildRequires: python-setuptools %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -46,15 +51,17 @@ The documentation can be found here: http://packages.python.org/smmap %prep %setup -q -n smmap-%{version} +%patch0 -p1 %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%fdupes %{buildroot}/%{_prefix} %check -python setup.py test +python setup.py -q test %files %defattr(-,root,root,-) diff --git a/smmap-0.8.2.tar.gz b/smmap-0.8.2.tar.gz deleted file mode 100644 index a6c9493..0000000 --- a/smmap-0.8.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dea2955cc045ec5527da6b762f7e95a5be7f645c683b54ccce52d56b4d7e2d6f -size 20942 diff --git a/smmap-0.9.0.tar.gz b/smmap-0.9.0.tar.gz new file mode 100644 index 0000000..bd384b9 --- /dev/null +++ b/smmap-0.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e2b62b497bd5f0afebc002eda4d90df9d209c30ef257e8673c90a6b5c119d62 +size 22082