Hello community, here is the log from the commit of package python-smmap2 for openSUSE:Factory checked in at 2019-03-28 22:49:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-smmap2 (Old) and /work/SRC/openSUSE:Factory/.python-smmap2.new.25356 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-smmap2" Thu Mar 28 22:49:51 2019 rev:4 rq:689363 version:2.0.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-smmap2/python-smmap2.changes 2018-12-24 11:44:03.857309980 +0100 +++ /work/SRC/openSUSE:Factory/.python-smmap2.new.25356/python-smmap2.changes 2019-03-28 22:49:55.203040860 +0100 @@ -1,0 +2,6 @@ +Thu Mar 28 12:59:42 UTC 2019 - pgaj...@suse.com + +- version update to 2.0.5 + * Drop support for EOL Python + +------------------------------------------------------------------- Old: ---- smmap2-2.0.4.tar.gz New: ---- smmap2-2.0.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-smmap2.spec ++++++ --- /var/tmp/diff_new_pack.AvP7fa/_old 2019-03-28 22:49:57.067040447 +0100 +++ /var/tmp/diff_new_pack.AvP7fa/_new 2019-03-28 22:49:57.107040438 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-smmap2 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-smmap2 -Version: 2.0.4 +Version: 2.0.5 Release: 0 Summary: A pure python implementation of a sliding window memory map manager License: BSD-3-Clause ++++++ smmap2-2.0.4.tar.gz -> smmap2-2.0.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap2-2.0.4/PKG-INFO new/smmap2-2.0.5/PKG-INFO --- old/smmap2-2.0.4/PKG-INFO 2018-07-15 14:14:53.000000000 +0200 +++ new/smmap2-2.0.5/PKG-INFO 2018-10-13 12:56:31.000000000 +0200 @@ -1,7 +1,7 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: smmap2 -Version: 2.0.4 -Summary: A pure python implementation of a sliding window memory map manager +Version: 2.0.5 +Summary: A pure Python implementation of a sliding window memory map manager Home-page: https://github.com/gitpython-developers/smmap Author: Sebastian Thiel Author-email: byron...@gmail.com @@ -17,7 +17,6 @@ * **System resources (file-handles) are likely to be leaked!** This is due to the library authors reliance on a deterministic `__del__()` destructor. * The memory access is read-only by design. - * In python below 2.6, memory maps will be created in compatibility mode which works, but creates inefficient memory mappings as they always start at offset 0. ## Overview @@ -42,7 +41,7 @@ ## Prerequisites - * Python 2.4, 2.5, 2.6, 2.7 or 3.3 + * Python 2.7 or 3.4+ * OSX, Windows or Linux The package was tested on all of the previously mentioned configurations. @@ -104,10 +103,9 @@ Classifier: Operating System :: MacOS :: MacOS X Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 -Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap2-2.0.4/README.md new/smmap2-2.0.5/README.md --- old/smmap2-2.0.4/README.md 2016-12-08 11:58:19.000000000 +0100 +++ new/smmap2-2.0.5/README.md 2018-10-13 12:53:49.000000000 +0200 @@ -9,7 +9,6 @@ * **System resources (file-handles) are likely to be leaked!** This is due to the library authors reliance on a deterministic `__del__()` destructor. * The memory access is read-only by design. -* In python below 2.6, memory maps will be created in compatibility mode which works, but creates inefficient memory mappings as they always start at offset 0. ## Overview @@ -34,7 +33,7 @@ ## Prerequisites -* Python 2.4, 2.5, 2.6, 2.7 or 3.3 +* Python 2.7 or 3.4+ * OSX, Windows or Linux The package was tested on all of the previously mentioned configurations. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap2-2.0.4/setup.py new/smmap2-2.0.5/setup.py --- old/smmap2-2.0.4/setup.py 2017-06-10 18:44:40.000000000 +0200 +++ new/smmap2-2.0.5/setup.py 2018-10-13 12:53:49.000000000 +0200 @@ -13,12 +13,12 @@ if os.path.exists("README.md"): long_description = codecs.open('README.md', "r", "utf-8").read() else: - long_description = "See http://github.com/gitpython-developers/smmap" + long_description = "See https://github.com/gitpython-developers/smmap" setup( name="smmap2", version=smmap.__version__, - description="A pure python implementation of a sliding window memory map manager", + description="A pure Python implementation of a sliding window memory map manager", author=smmap.__author__, author_email=smmap.__contact__, url=smmap.__homepage__, @@ -26,6 +26,7 @@ license="BSD", packages=find_packages(), zip_safe=True, + python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", classifiers=[ # Picked from # http://pypi.python.org/pypi?:action=list_classifiers @@ -45,10 +46,8 @@ "Operating System :: MacOS :: MacOS X", "Programming Language :: Python", "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap2-2.0.4/smmap/__init__.py new/smmap2-2.0.5/smmap/__init__.py --- old/smmap2-2.0.4/smmap/__init__.py 2017-09-28 11:14:47.000000000 +0200 +++ new/smmap2-2.0.5/smmap/__init__.py 2018-10-13 12:54:19.000000000 +0200 @@ -3,7 +3,7 @@ __author__ = "Sebastian Thiel" __contact__ = "byron...@gmail.com" __homepage__ = "https://github.com/gitpython-developers/smmap" -version_info = (2, 0, 4) +version_info = (2, 0, 5) __version__ = '.'.join(str(i) for i in version_info) # make everything available in root package for convenience diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap2-2.0.4/smmap/buf.py new/smmap2-2.0.5/smmap/buf.py --- old/smmap2-2.0.4/smmap/buf.py 2016-10-09 10:26:17.000000000 +0200 +++ new/smmap2-2.0.5/smmap/buf.py 2018-10-13 12:53:49.000000000 +0200 @@ -88,35 +88,20 @@ # It's fastest to keep tokens and join later, especially in py3, which was 7 times slower # in the previous iteration of this code pyvers = sys.version_info[:2] - if (3, 0) <= pyvers <= (3, 3): - # Memory view cannot be joined below python 3.4 ... - out = bytes() - while l: - c.use_region(ofs, l) - assert c.is_valid() - d = c.buffer()[:l] - ofs += len(d) - l -= len(d) - # This is slower than the join ... but what can we do ... - out += d - del(d) - # END while there are bytes to read - return out - else: - md = list() - while l: - c.use_region(ofs, l) - assert c.is_valid() - d = c.buffer()[:l] - ofs += len(d) - l -= len(d) - # Make sure we don't keep references, as c.use_region() might attempt to free resources, but - # can't unless we use pure bytes - if hasattr(d, 'tobytes'): - d = d.tobytes() - md.append(d) - # END while there are bytes to read - return bytes().join(md) + md = list() + while l: + c.use_region(ofs, l) + assert c.is_valid() + d = c.buffer()[:l] + ofs += len(d) + l -= len(d) + # Make sure we don't keep references, as c.use_region() might attempt to free resources, but + # can't unless we use pure bytes + if hasattr(d, 'tobytes'): + d = d.tobytes() + md.append(d) + # END while there are bytes to read + return bytes().join(md) # END fast or slow path #{ Interface diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap2-2.0.4/smmap/util.py new/smmap2-2.0.5/smmap/util.py --- old/smmap2-2.0.4/smmap/util.py 2016-10-22 16:26:33.000000000 +0200 +++ new/smmap2-2.0.5/smmap/util.py 2018-10-13 12:53:49.000000000 +0200 @@ -3,13 +3,7 @@ import sys from mmap import mmap, ACCESS_READ -try: - from mmap import ALLOCATIONGRANULARITY -except ImportError: - # in python pre 2.6, the ALLOCATIONGRANULARITY does not exist as it is mainly - # useful for aligning the offset. The offset argument doesn't exist there though - from mmap import PAGESIZE as ALLOCATIONGRANULARITY -# END handle pythons missing quality assurance +from mmap import ALLOCATIONGRANULARITY __all__ = ["align_to_mmap", "is_64_bit", "buffer", "MapWindow", "MapRegion", "MapRegionList", "ALLOCATIONGRANULARITY"] @@ -116,11 +110,6 @@ '_size', # cached size of our memory map '__weakref__' ] - _need_compat_layer = sys.version_info[:2] < (2, 6) - - if _need_compat_layer: - __slots__.append('_mfb') # mapped memory buffer to provide offset - # END handle additional slot #{ Configuration #} END configuration @@ -147,11 +136,6 @@ kwargs = dict(access=ACCESS_READ, offset=ofs) corrected_size = size sizeofs = ofs - if self._need_compat_layer: - del(kwargs['offset']) - corrected_size += ofs - sizeofs = 0 - # END handle python not supporting offset ! Arg # have to correct size, otherwise (instead of the c version) it will # bark that the size is too large ... many extra file accesses because @@ -161,10 +145,6 @@ # END handle memory mode self._size = len(self._mf) - - if self._need_compat_layer: - self._mfb = buffer(self._mf, ofs, self._size) - # END handle buffer wrapping finally: if isinstance(path_or_fd, string_types()): os.close(fd) @@ -224,22 +204,6 @@ """Release all resources this instance might hold. Must only be called if there usage_count() is zero""" self._mf.close() - # re-define all methods which need offset adjustments in compatibility mode - if _need_compat_layer: - def size(self): - return self._size - self._b - - def ofs_end(self): - # always the size - we are as large as it gets - return self._size - - def buffer(self): - return self._mfb - - def includes_ofs(self, ofs): - return self._b <= ofs < self._size - # END handle compat layer - #} END interface diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap2-2.0.4/smmap2.egg-info/PKG-INFO new/smmap2-2.0.5/smmap2.egg-info/PKG-INFO --- old/smmap2-2.0.4/smmap2.egg-info/PKG-INFO 2018-07-15 14:14:53.000000000 +0200 +++ new/smmap2-2.0.5/smmap2.egg-info/PKG-INFO 2018-10-13 12:56:30.000000000 +0200 @@ -1,7 +1,7 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: smmap2 -Version: 2.0.4 -Summary: A pure python implementation of a sliding window memory map manager +Version: 2.0.5 +Summary: A pure Python implementation of a sliding window memory map manager Home-page: https://github.com/gitpython-developers/smmap Author: Sebastian Thiel Author-email: byron...@gmail.com @@ -17,7 +17,6 @@ * **System resources (file-handles) are likely to be leaked!** This is due to the library authors reliance on a deterministic `__del__()` destructor. * The memory access is read-only by design. - * In python below 2.6, memory maps will be created in compatibility mode which works, but creates inefficient memory mappings as they always start at offset 0. ## Overview @@ -42,7 +41,7 @@ ## Prerequisites - * Python 2.4, 2.5, 2.6, 2.7 or 3.3 + * Python 2.7 or 3.4+ * OSX, Windows or Linux The package was tested on all of the previously mentioned configurations. @@ -104,10 +103,9 @@ Classifier: Operating System :: MacOS :: MacOS X Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 -Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*