Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-smmap for openSUSE:Factory checked in at 2021-07-21 19:05:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-smmap (Old) and /work/SRC/openSUSE:Factory/.python-smmap.new.2632 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-smmap" Wed Jul 21 19:05:47 2021 rev:16 rq:907024 version:4.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-smmap/python-smmap.changes 2021-02-04 20:23:56.766814562 +0100 +++ /work/SRC/openSUSE:Factory/.python-smmap.new.2632/python-smmap.changes 2021-07-21 19:06:42.427325586 +0200 @@ -1,0 +2,6 @@ +Mon Jul 19 06:53:42 UTC 2021 - Dirk M??ller <[email protected]> + +- update to 4.0.0: + * drop python 2 support + +------------------------------------------------------------------- Old: ---- smmap-3.0.5.tar.gz New: ---- smmap-4.0.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-smmap.spec ++++++ --- /var/tmp/diff_new_pack.4sYtv6/_old 2021-07-21 19:06:42.911326427 +0200 +++ /var/tmp/diff_new_pack.4sYtv6/_new 2021-07-21 19:06:42.915326433 +0200 @@ -17,8 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global skip_python2 1 Name: python-smmap -Version: 3.0.5 +Version: 4.0.0 Release: 0 Summary: A pure git implementation of a sliding window memory map manager License: BSD-2-Clause ++++++ smmap-3.0.5.tar.gz -> smmap-4.0.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap-3.0.5/PKG-INFO new/smmap-4.0.0/PKG-INFO --- old/smmap-3.0.5/PKG-INFO 2021-01-23 03:00:49.773315700 +0100 +++ new/smmap-4.0.0/PKG-INFO 2021-01-26 12:40:49.291296200 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: smmap -Version: 3.0.5 +Version: 4.0.0 Summary: A pure Python implementation of a sliding window memory map manager Home-page: https://github.com/gitpython-developers/smmap Author: Sebastian Thiel @@ -27,8 +27,6 @@ To allow processing large files even on 32 bit systems, it allows only portions of the file to be mapped. Once the user reads beyond the mapped region, smmap will automatically map the next required region, unloading unused regions using a LRU algorithm. - The interface also works around the missing offset parameter in python implementations up to python 2.5. - Although the library can be used most efficiently with its native interface, a Buffer implementation is provided to hide these details behind a simple string-like interface. For performance critical 64 bit applications, a simplified version of memory mapping is provided which always maps the whole file, but still provides the benefit of unloading unused mappings on demand. @@ -37,7 +35,7 @@ ## Prerequisites - * Python 2.7 or 3.4+ + * Python 3.5+ * OSX, Windows or Linux The package was tested on all of the previously mentioned configurations. @@ -102,11 +100,12 @@ Classifier: Operating System :: Microsoft :: Windows Classifier: Operating System :: MacOS :: MacOS X Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2 -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 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.* +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3 :: Only +Requires-Python: >=3.5 Description-Content-Type: text/markdown diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap-3.0.5/README.md new/smmap-4.0.0/README.md --- old/smmap-3.0.5/README.md 2020-04-11 08:46:23.000000000 +0200 +++ new/smmap-4.0.0/README.md 2021-01-26 12:38:38.000000000 +0100 @@ -19,8 +19,6 @@ To allow processing large files even on 32 bit systems, it allows only portions of the file to be mapped. Once the user reads beyond the mapped region, smmap will automatically map the next required region, unloading unused regions using a LRU algorithm. -The interface also works around the missing offset parameter in python implementations up to python 2.5. - Although the library can be used most efficiently with its native interface, a Buffer implementation is provided to hide these details behind a simple string-like interface. For performance critical 64 bit applications, a simplified version of memory mapping is provided which always maps the whole file, but still provides the benefit of unloading unused mappings on demand. @@ -29,7 +27,7 @@ ## Prerequisites -* Python 2.7 or 3.4+ +* Python 3.5+ * 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/smmap-3.0.5/setup.py new/smmap-4.0.0/setup.py --- old/smmap-3.0.5/setup.py 2020-04-11 07:53:33.000000000 +0200 +++ new/smmap-4.0.0/setup.py 2021-01-26 12:38:38.000000000 +0100 @@ -1,6 +1,6 @@ #!/usr/bin/env python import os -import codecs + try: from setuptools import setup, find_packages except ImportError: @@ -11,7 +11,7 @@ import smmap if os.path.exists("README.md"): - long_description = codecs.open('README.md', "r", "utf-8").read().replace('\r\n', '\n') + long_description = open('README.md', "r", encoding="utf-8").read().replace('\r\n', '\n') else: long_description = "See https://github.com/gitpython-developers/smmap" @@ -26,17 +26,9 @@ license="BSD", packages=find_packages(), zip_safe=True, - python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", + python_requires=">=3.5", classifiers=[ - # Picked from - # http://pypi.python.org/pypi?:action=list_classifiers - #"Development Status :: 1 - Planning", - #"Development Status :: 2 - Pre-Alpha", - #"Development Status :: 3 - Alpha", - # "Development Status :: 4 - Beta", "Development Status :: 5 - Production/Stable", - #"Development Status :: 6 - Mature", - #"Development Status :: 7 - Inactive", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", @@ -45,12 +37,13 @@ "Operating System :: Microsoft :: Windows", "Operating System :: MacOS :: MacOS X", "Programming Language :: Python", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3 :: Only", ], long_description=long_description, long_description_content_type='text/markdown', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap-3.0.5/smmap/__init__.py new/smmap-4.0.0/smmap/__init__.py --- old/smmap-3.0.5/smmap/__init__.py 2021-01-23 02:58:15.000000000 +0100 +++ new/smmap-4.0.0/smmap/__init__.py 2021-01-26 12:38:38.000000000 +0100 @@ -3,7 +3,7 @@ __author__ = "Sebastian Thiel" __contact__ = "[email protected]" __homepage__ = "https://github.com/gitpython-developers/smmap" -version_info = (3, 0, 5) +version_info = (4, 0, 0) __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/smmap-3.0.5/smmap/buf.py new/smmap-4.0.0/smmap/buf.py --- old/smmap-3.0.5/smmap/buf.py 2021-01-23 02:47:51.000000000 +0100 +++ new/smmap-4.0.0/smmap/buf.py 2021-01-26 12:38:38.000000000 +0100 @@ -80,7 +80,6 @@ ofs = i # 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] md = list() while l: c.use_region(ofs, l) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap-3.0.5/smmap/exc.py new/smmap-4.0.0/smmap/exc.py --- old/smmap-3.0.5/smmap/exc.py 2020-02-15 02:33:53.000000000 +0100 +++ new/smmap-4.0.0/smmap/exc.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,11 +0,0 @@ -"""Module with system exceptions""" - - -class MemoryManagerError(Exception): - - """Base class for all exceptions thrown by the memory manager""" - - -class RegionCollectionError(MemoryManagerError): - - """Thrown if a memory region could not be collected, or if no region for collection was found""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap-3.0.5/smmap/mman.py new/smmap-4.0.0/smmap/mman.py --- old/smmap-3.0.5/smmap/mman.py 2020-02-15 02:33:53.000000000 +0100 +++ new/smmap-4.0.0/smmap/mman.py 2021-01-26 12:38:38.000000000 +0100 @@ -4,8 +4,6 @@ MapRegion, MapRegionList, is_64_bit, - string_types, - buffer, ) import sys @@ -161,7 +159,7 @@ **Note:** buffers should not be cached passed the duration of your access as it will prevent resources from being freed even though they might not be accounted for anymore !""" - return buffer(self._region.buffer(), self._ofs, self._size) + return memoryview(self._region.buffer())[self._ofs:self._ofs+self._size] def map(self): """ @@ -227,7 +225,7 @@ **Note:** it is not required to be valid anymore :raise ValueError: if the mapping was not created by a file descriptor""" - if isinstance(self._rlist.path_or_fd(), string_types()): + if isinstance(self._rlist.path_or_fd(), str): raise ValueError("File descriptor queried although mapping was generated from path") # END handle type return self._rlist.path_or_fd() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap-3.0.5/smmap/test/test_tutorial.py new/smmap-4.0.0/smmap/test/test_tutorial.py --- old/smmap-3.0.5/smmap/test/test_tutorial.py 2020-02-15 02:33:53.000000000 +0100 +++ new/smmap-4.0.0/smmap/test/test_tutorial.py 2021-01-26 12:38:38.000000000 +0100 @@ -41,12 +41,6 @@ c.buffer()[1:10] # first 9 bytes c.buffer()[c.size() - 1] # last byte - # its recommended not to create big slices when feeding the buffer - # into consumers (e.g. struct or zlib). - # Instead, either give the buffer directly, or use pythons buffer command. - from smmap.util import buffer - buffer(c.buffer(), 1, 9) # first 9 bytes without copying them - # you can query absolute offsets, and check whether an offset is included # in the cursor's data. assert c.ofs_begin() < c.ofs_end() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap-3.0.5/smmap/util.py new/smmap-4.0.0/smmap/util.py --- old/smmap-3.0.5/smmap/util.py 2021-01-23 02:47:51.000000000 +0100 +++ new/smmap-4.0.0/smmap/util.py 2021-01-26 12:38:38.000000000 +0100 @@ -5,29 +5,11 @@ from mmap import mmap, ACCESS_READ from mmap import ALLOCATIONGRANULARITY -__all__ = ["align_to_mmap", "is_64_bit", "buffer", +__all__ = ["align_to_mmap", "is_64_bit", "MapWindow", "MapRegion", "MapRegionList", "ALLOCATIONGRANULARITY"] #{ Utilities -try: - # Python 2 - buffer = buffer -except NameError: - # Python 3 has no `buffer`; only `memoryview` - def buffer(obj, offset, size): - # Actually, for gitpython this is fastest ... . - return memoryview(obj)[offset:offset+size] - # doing it directly is much faster ! - # return obj[offset:offset + size] - - -def string_types(): - if sys.version_info[0] >= 3: - return str - else: - return basestring # noqa: F821 - def align_to_mmap(num, round_up): """ @@ -146,7 +128,7 @@ self._size = len(self._mf) finally: - if isinstance(path_or_fd, string_types()): + if isinstance(path_or_fd, str): os.close(fd) # END only close it if we opened it # END close file handle @@ -229,7 +211,7 @@ def file_size(self): """:return: size of file we manager""" if self._file_size is None: - if isinstance(self._path_or_fd, string_types()): + if isinstance(self._path_or_fd, str): self._file_size = os.stat(self._path_or_fd).st_size else: self._file_size = os.fstat(self._path_or_fd).st_size diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap-3.0.5/smmap.egg-info/PKG-INFO new/smmap-4.0.0/smmap.egg-info/PKG-INFO --- old/smmap-3.0.5/smmap.egg-info/PKG-INFO 2021-01-23 03:00:49.000000000 +0100 +++ new/smmap-4.0.0/smmap.egg-info/PKG-INFO 2021-01-26 12:40:49.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: smmap -Version: 3.0.5 +Version: 4.0.0 Summary: A pure Python implementation of a sliding window memory map manager Home-page: https://github.com/gitpython-developers/smmap Author: Sebastian Thiel @@ -27,8 +27,6 @@ To allow processing large files even on 32 bit systems, it allows only portions of the file to be mapped. Once the user reads beyond the mapped region, smmap will automatically map the next required region, unloading unused regions using a LRU algorithm. - The interface also works around the missing offset parameter in python implementations up to python 2.5. - Although the library can be used most efficiently with its native interface, a Buffer implementation is provided to hide these details behind a simple string-like interface. For performance critical 64 bit applications, a simplified version of memory mapping is provided which always maps the whole file, but still provides the benefit of unloading unused mappings on demand. @@ -37,7 +35,7 @@ ## Prerequisites - * Python 2.7 or 3.4+ + * Python 3.5+ * OSX, Windows or Linux The package was tested on all of the previously mentioned configurations. @@ -102,11 +100,12 @@ Classifier: Operating System :: Microsoft :: Windows Classifier: Operating System :: MacOS :: MacOS X Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2 -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 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.* +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3 :: Only +Requires-Python: >=3.5 Description-Content-Type: text/markdown diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smmap-3.0.5/smmap.egg-info/SOURCES.txt new/smmap-4.0.0/smmap.egg-info/SOURCES.txt --- old/smmap-3.0.5/smmap.egg-info/SOURCES.txt 2021-01-23 03:00:49.000000000 +0100 +++ new/smmap-4.0.0/smmap.egg-info/SOURCES.txt 2021-01-26 12:40:49.000000000 +0100 @@ -5,7 +5,6 @@ setup.py smmap/__init__.py smmap/buf.py -smmap/exc.py smmap/mman.py smmap/util.py smmap.egg-info/PKG-INFO
