Hello community,

here is the log from the commit of package python-scandir for 
openSUSE:Leap:15.2 checked in at 2020-04-17 13:36:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-scandir (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-scandir.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-scandir"

Fri Apr 17 13:36:46 2020 rev:16 rq:794120 version:1.10.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-scandir/python-scandir.changes  
2020-01-15 15:52:49.123576422 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-scandir.new.2738/python-scandir.changes    
    2020-04-17 13:36:47.168185701 +0200
@@ -1,0 +2,24 @@
+Tue Dec 10 14:53:11 UTC 2019 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- Include in SLE-12 (fate#326950, bsc#1122668, jsc#PM-1447)
+
+-------------------------------------------------------------------
+Mon Oct 14 14:42:11 UTC 2019 - Matej Cepl <mc...@suse.com>
+
+- Replace %fdupes -s with plain %fdupes; hardlinks are better.
+
+-------------------------------------------------------------------
+Mon Mar 11 13:23:21 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 1.10.0:
+  * remove support for pyton 2.6 and <3.3
+
+-------------------------------------------------------------------
+Sat Mar  2 00:03:18 UTC 2019 - John Vandenberg <jay...@gmail.com>
+
+- Allow building on Python 3.5+, as it is useful for testing and it
+  should exist for when packages list it as a runtime dependency, and
+  it will add backports of enhancements to scandir since Python 3.5.
+  bsc#1167207
+
+-------------------------------------------------------------------

Old:
----
  scandir-1.9.0.tar.gz

New:
----
  scandir-1.10.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-scandir.spec ++++++
--- /var/tmp/diff_new_pack.2QON1G/_old  2020-04-17 13:36:47.720186116 +0200
+++ /var/tmp/diff_new_pack.2QON1G/_new  2020-04-17 13:36:47.724186119 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-scandir
 #
-# 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
@@ -16,20 +16,17 @@
 #
 
 
-%if %{python3_version_nodots} > 34
-%define skip_python3 1
-%endif
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-scandir
-Version:        1.9.0
+Version:        1.10.0
 Release:        0
 Summary:        Scandir, a better directory iterator and faster oswalk
 License:        BSD-3-Clause
-Group:          Development/Languages/Python
 URL:            https://github.com/benhoyt/scandir
 Source:         
https://files.pythonhosted.org/packages/source/s/scandir/scandir-%{version}.tar.gz
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  dos2unix
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 %python_subpackages
@@ -69,8 +66,7 @@
 %prep
 %setup -q -n scandir-%{version}
 rm -rf scandir.egg-info
-sed -i 's/\r$//' LICENSE.txt
-sed -i 's/\r$//' README.rst
+dos2unix LICENSE.txt README.rst
 
 %build
 export CFLAGS="%{optflags}"
@@ -78,7 +74,7 @@
 
 %install
 %python_install
-%python_expand %fdupes -s %{buildroot}%{$python_sitearch}
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check
 export LANG=en_US.UTF-8

++++++ scandir-1.9.0.tar.gz -> scandir-1.10.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.9.0/PKG-INFO new/scandir-1.10.0/PKG-INFO
--- old/scandir-1.9.0/PKG-INFO  2018-08-10 15:22:47.000000000 +0200
+++ new/scandir-1.10.0/PKG-INFO 2019-03-09 18:55:53.000000000 +0100
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: scandir
-Version: 1.9.0
+Version: 1.10.0
 Summary: scandir, a better directory iterator and faster os.walk()
 Home-page: https://github.com/benhoyt/scandir
 Author: Ben Hoyt
 Author-email: benh...@gmail.com
 License: New BSD License
-Description-Content-Type: UNKNOWN
 Description: 
         scandir, a better directory iterator and faster os.walk()
         =========================================================
@@ -58,8 +57,8 @@
         was `accepted 
<https://mail.python.org/pipermail/python-dev/2014-July/135561.html>`_
         in July 2014 by Victor Stinner, the BDFL-delegate for the PEP.
         
-        This ``scandir`` module is intended to work on Python 2.6+ and Python
-        3.2+ (and it has been tested on those versions).
+        This ``scandir`` module is intended to work on Python 2.7+ and Python
+        3.4+ (and it has been tested on those versions).
         
         
         Background
@@ -103,7 +102,6 @@
         Windows 7 64-bit NFS   2.7.6 64-bit     36.8
         Windows 7 64-bit SSD   3.4.1 64-bit     9.9
         Windows 7 64-bit SSD   3.5.0 64-bit     9.5
-        CentOS 6.2 64-bit      2.6.6 64-bit     3.9
         Ubuntu 14.04 64-bit    2.7.6 64-bit     5.8
         Mac OS X 10.9.3        2.7.5 64-bit     3.8
         ====================   ==============   =============
@@ -229,10 +227,10 @@
 Classifier: Topic :: System :: Operating System
 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.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: Implementation :: CPython
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.9.0/README.rst 
new/scandir-1.10.0/README.rst
--- old/scandir-1.9.0/README.rst        2018-05-29 15:50:21.000000000 +0200
+++ new/scandir-1.10.0/README.rst       2019-03-09 18:46:15.000000000 +0100
@@ -49,8 +49,8 @@
 was `accepted 
<https://mail.python.org/pipermail/python-dev/2014-July/135561.html>`_
 in July 2014 by Victor Stinner, the BDFL-delegate for the PEP.
 
-This ``scandir`` module is intended to work on Python 2.6+ and Python
-3.2+ (and it has been tested on those versions).
+This ``scandir`` module is intended to work on Python 2.7+ and Python
+3.4+ (and it has been tested on those versions).
 
 
 Background
@@ -94,7 +94,6 @@
 Windows 7 64-bit NFS   2.7.6 64-bit     36.8
 Windows 7 64-bit SSD   3.4.1 64-bit     9.9
 Windows 7 64-bit SSD   3.5.0 64-bit     9.5
-CentOS 6.2 64-bit      2.6.6 64-bit     3.9
 Ubuntu 14.04 64-bit    2.7.6 64-bit     5.8
 Mac OS X 10.9.3        2.7.5 64-bit     3.8
 ====================   ==============   =============
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.9.0/scandir.egg-info/PKG-INFO 
new/scandir-1.10.0/scandir.egg-info/PKG-INFO
--- old/scandir-1.9.0/scandir.egg-info/PKG-INFO 2018-08-10 15:22:47.000000000 
+0200
+++ new/scandir-1.10.0/scandir.egg-info/PKG-INFO        2019-03-09 
18:55:53.000000000 +0100
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: scandir
-Version: 1.9.0
+Version: 1.10.0
 Summary: scandir, a better directory iterator and faster os.walk()
 Home-page: https://github.com/benhoyt/scandir
 Author: Ben Hoyt
 Author-email: benh...@gmail.com
 License: New BSD License
-Description-Content-Type: UNKNOWN
 Description: 
         scandir, a better directory iterator and faster os.walk()
         =========================================================
@@ -58,8 +57,8 @@
         was `accepted 
<https://mail.python.org/pipermail/python-dev/2014-July/135561.html>`_
         in July 2014 by Victor Stinner, the BDFL-delegate for the PEP.
         
-        This ``scandir`` module is intended to work on Python 2.6+ and Python
-        3.2+ (and it has been tested on those versions).
+        This ``scandir`` module is intended to work on Python 2.7+ and Python
+        3.4+ (and it has been tested on those versions).
         
         
         Background
@@ -103,7 +102,6 @@
         Windows 7 64-bit NFS   2.7.6 64-bit     36.8
         Windows 7 64-bit SSD   3.4.1 64-bit     9.9
         Windows 7 64-bit SSD   3.5.0 64-bit     9.5
-        CentOS 6.2 64-bit      2.6.6 64-bit     3.9
         Ubuntu 14.04 64-bit    2.7.6 64-bit     5.8
         Mac OS X 10.9.3        2.7.5 64-bit     3.8
         ====================   ==============   =============
@@ -229,10 +227,10 @@
 Classifier: Topic :: System :: Operating System
 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.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: Implementation :: CPython
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.9.0/scandir.py 
new/scandir-1.10.0/scandir.py
--- old/scandir-1.9.0/scandir.py        2018-08-10 15:21:31.000000000 +0200
+++ new/scandir-1.10.0/scandir.py       2019-03-09 18:50:48.000000000 +0100
@@ -40,7 +40,7 @@
     warnings.warn("scandir can't find the compiled _scandir C module "
                   "or ctypes, using slow generic fallback")
 
-__version__ = '1.9.0'
+__version__ = '1.10.0'
 __all__ = ['scandir', 'walk']
 
 # Windows FILE_ATTRIBUTE constants for interpreting the
@@ -586,7 +586,7 @@
     if _scandir is not None:
         scandir = scandir_c
         DirEntry = DirEntry_c
-    elif ctypes is not None:
+    elif ctypes is not None and have_dirent_d_type:
         scandir = scandir_python
         DirEntry = PosixDirEntry
     else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.9.0/setup.py new/scandir-1.10.0/setup.py
--- old/scandir-1.9.0/setup.py  2018-08-10 15:21:31.000000000 +0200
+++ new/scandir-1.10.0/setup.py 2019-03-09 18:46:15.000000000 +0100
@@ -69,12 +69,12 @@
         'Topic :: System :: Operating System',
         '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.4',
         'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: Implementation :: CPython',
     ], cmdclass={'build_ext': BuildExt},
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.9.0/test/run_tests.py 
new/scandir-1.10.0/test/run_tests.py
--- old/scandir-1.9.0/test/run_tests.py 2018-05-29 15:50:21.000000000 +0200
+++ new/scandir-1.10.0/test/run_tests.py        2019-03-09 18:46:15.000000000 
+0100
@@ -3,11 +3,7 @@
 import glob
 import os
 import sys
-
-if sys.version_info[:2] < (2, 7):
-    import unittest2 as unittest
-else:
-    import unittest
+import unittest
 
 
 def main():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.9.0/test/test_scandir.py 
new/scandir-1.10.0/test/test_scandir.py
--- old/scandir-1.9.0/test/test_scandir.py      2018-05-29 15:50:21.000000000 
+0200
+++ new/scandir-1.10.0/test/test_scandir.py     2019-03-09 18:46:15.000000000 
+0100
@@ -6,11 +6,7 @@
 import shutil
 import sys
 import time
-
-if sys.version_info[:2] < (2, 7):
-    import unittest2 as unittest
-else:
-    import unittest
+import unittest
 
 try:
     import scandir
@@ -77,8 +73,7 @@
 
     dir_name = os.path.abspath(join(TEST_PATH, 'linkdir', 'linksubdir'))
     dir_link = join(TEST_PATH, 'linkdir', 'link_to_dir')
-    if sys.version_info >= (3, 3):
-        # "target_is_directory" was only added in Python 3.3
+    if IS_PY3:
         os.symlink(dir_name, dir_link, target_is_directory=True)
     else:
         os.symlink(dir_name, dir_link)
@@ -151,8 +146,7 @@
 
     def test_file_attributes(self):
         if sys.platform != 'win32' or not self.has_file_attributes:
-            # st_file_attributes is Win32 specific (but can't use
-            # unittest.skipUnless on Python 2.6)
+            # st_file_attributes is Win32 specific
             return self.skipTest('st_file_attributes not supported')
 
         entries = dict((e.name, e) for e in self.scandir_func(TEST_PATH))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.9.0/test/test_walk.py 
new/scandir-1.10.0/test/test_walk.py
--- old/scandir-1.9.0/test/test_walk.py 2018-05-29 15:50:21.000000000 +0200
+++ new/scandir-1.10.0/test/test_walk.py        2019-03-09 18:46:15.000000000 
+0100
@@ -3,16 +3,14 @@
 import os
 import shutil
 import sys
-
-if sys.version_info[:2] < (2, 7):
-    import unittest2 as unittest
-else:
-    import unittest
+import unittest
 
 import scandir
 
 walk_func = scandir.walk
 
+IS_PY3 = sys.version_info >= (3, 0)
+
 
 class TestWalk(unittest.TestCase):
     testfn = os.path.join(os.path.dirname(__file__), 'temp')
@@ -52,8 +50,7 @@
         has_symlink = hasattr(os, "symlink")
         if has_symlink:
             try:
-                if sys.platform == 'win32' and sys.version_info >= (3, 2):
-                    # "target_is_directory" was only added in Python 3.2 (on 
Windows)
+                if IS_PY3:
                     os.symlink(os.path.abspath(t2_path), link_path, 
target_is_directory=True)
                 else:
                     os.symlink(os.path.abspath(t2_path), link_path)
@@ -180,8 +177,7 @@
 
         link_name = os.path.join(self.temp_dir, 'link_to_dir')
         try:
-            if sys.platform == 'win32' and sys.version_info >= (3, 2):
-                # "target_is_directory" was only added in Python 3.2 (on 
Windows)
+            if IS_PY3:
                 os.symlink(self.dir_name, link_name, target_is_directory=True)
             else:
                 os.symlink(self.dir_name, link_name)


Reply via email to