Accepting request 305741 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/305741
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-smmap?expand=0&rev=7
This commit is contained in:
Stephan Kulow 2015-05-10 08:46:21 +00:00 committed by Git OBS Bridge
commit b13d9a4404
5 changed files with 59 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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,-)

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dea2955cc045ec5527da6b762f7e95a5be7f645c683b54ccce52d56b4d7e2d6f
size 20942

3
smmap-0.9.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e2b62b497bd5f0afebc002eda4d90df9d209c30ef257e8673c90a6b5c119d62
size 22082