Accepting request 787441 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/787441
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-smmap?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2020-03-24 21:33:44 +00:00 committed by Git OBS Bridge
commit 96d6a09d3f
5 changed files with 14 additions and 30 deletions

View File

@ -1,21 +0,0 @@
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,11 @@
-------------------------------------------------------------------
Mon Mar 16 12:09:46 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 3.0.1:
* Switched back to the smmap package name on PyPI and fixed the smmap2 mirror package (#44)
* Fixed setup.py long_description rendering (#40)
- remove delete_platform_specific_test.patch (upstream)
-------------------------------------------------------------------
Tue Dec 4 12:54:24 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-smmap
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,15 +19,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-smmap
Version: 0.9.0
Version: 3.0.1
Release: 0
Summary: A pure git implementation of a sliding window memory map manager
License: BSD-2-Clause
Group: Development/Languages/Python
Url: https://github.com/gitpython-developers/smmap
URL: https://github.com/gitpython-developers/smmap
Source: https://files.pythonhosted.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
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
@ -56,7 +54,6 @@ The documentation can be found here: http://packages.python.org/smmap
%prep
%setup -q -n smmap-%{version}
%patch0 -p1
%build
%python_build

View File

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

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

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