Hello community,

here is the log from the commit of package python-scandir for openSUSE:Factory 
checked in at 2018-04-24 15:34:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-scandir (Old)
 and      /work/SRC/openSUSE:Factory/.python-scandir.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-scandir"

Tue Apr 24 15:34:06 2018 rev:4 rq:600107 version:1.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-scandir/python-scandir.changes    
2017-11-08 15:10:37.060987798 +0100
+++ /work/SRC/openSUSE:Factory/.python-scandir.new/python-scandir.changes       
2018-04-24 15:34:07.444062957 +0200
@@ -1,0 +2,9 @@
+Mon Apr 23 15:14:14 UTC 2018 - [email protected]
+
+- specfile:
+  * update copyright year
+
+- update to version 1.7:
+  * Expose scandir.DirEntry (#93).
+
+-------------------------------------------------------------------

Old:
----
  scandir-1.6.tar.gz

New:
----
  scandir-1.7.tar.gz

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

Other differences:
------------------
++++++ python-scandir.spec ++++++
--- /var/tmp/diff_new_pack.4WU1tE/_old  2018-04-24 15:34:10.327958617 +0200
+++ /var/tmp/diff_new_pack.4WU1tE/_new  2018-04-24 15:34:10.327958617 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-scandir
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -16,21 +16,20 @@
 #
 
 
-%bcond_without test
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without test
 Name:           python-scandir
-Version:        1.6
+Version:        1.7
 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
+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:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %python_subpackages
 
 %description
@@ -86,8 +85,8 @@
 %endif
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc LICENSE.txt README.rst
+%license LICENSE.txt
+%doc README.rst
 %{python_sitearch}/*
 
 %changelog

++++++ scandir-1.6.tar.gz -> scandir-1.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.6/PKG-INFO new/scandir-1.7/PKG-INFO
--- old/scandir-1.6/PKG-INFO    2017-09-29 14:43:51.000000000 +0200
+++ new/scandir-1.7/PKG-INFO    2018-02-12 22:00:05.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: scandir
-Version: 1.6
+Version: 1.7
 Summary: scandir, a better directory iterator and faster os.walk()
 Home-page: https://github.com/benhoyt/scandir
 Author: Ben Hoyt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.6/_scandir.c new/scandir-1.7/_scandir.c
--- old/scandir-1.6/_scandir.c  2017-09-28 17:05:25.000000000 +0200
+++ new/scandir-1.7/_scandir.c  2018-02-12 21:54:37.000000000 +0100
@@ -1819,6 +1819,8 @@
     if (PyType_Ready(&DirEntryType) < 0)
         INIT_ERROR;
 
+    PyModule_AddObject(module, "DirEntry", (PyObject *)&DirEntryType);
+
 #if PY_MAJOR_VERSION >= 3
     return module;
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.6/scandir.egg-info/PKG-INFO 
new/scandir-1.7/scandir.egg-info/PKG-INFO
--- old/scandir-1.6/scandir.egg-info/PKG-INFO   2017-09-29 14:43:51.000000000 
+0200
+++ new/scandir-1.7/scandir.egg-info/PKG-INFO   2018-02-12 22:00:05.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: scandir
-Version: 1.6
+Version: 1.7
 Summary: scandir, a better directory iterator and faster os.walk()
 Home-page: https://github.com/benhoyt/scandir
 Author: Ben Hoyt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.6/scandir.py new/scandir-1.7/scandir.py
--- old/scandir-1.6/scandir.py  2017-09-29 14:38:05.000000000 +0200
+++ new/scandir-1.7/scandir.py  2018-02-12 21:54:46.000000000 +0100
@@ -41,7 +41,7 @@
     warnings.warn("scandir can't find the compiled _scandir C module "
                   "or ctypes, using slow generic fallback")
 
-__version__ = '1.6'
+__version__ = '1.7'
 __all__ = ['scandir', 'walk']
 
 # Windows FILE_ATTRIBUTE constants for interpreting the
@@ -386,13 +386,17 @@
 
     if _scandir is not None:
         scandir_c = _scandir.scandir
+        DirEntry_c = _scandir.DirEntry
 
     if _scandir is not None:
         scandir = scandir_c
+        DirEntry = DirEntry_c
     elif ctypes is not None:
         scandir = scandir_python
+        DirEntry = Win32DirEntryPython
     else:
         scandir = scandir_generic
+        DirEntry = GenericDirEntry
 
 
 # Linux, OS X, and BSD implementation
@@ -564,18 +568,23 @@
 
     if _scandir is not None:
         scandir_c = _scandir.scandir
+        DirEntry_c = _scandir.DirEntry
 
     if _scandir is not None:
         scandir = scandir_c
+        DirEntry = DirEntry_c
     elif ctypes is not None:
         scandir = scandir_python
+        DirEntry = PosixDirEntry
     else:
         scandir = scandir_generic
+        DirEntry = GenericDirEntry
 
 
 # Some other system -- no d_type or stat information
 else:
     scandir = scandir_generic
+    DirEntry = GenericDirEntry
 
 
 def _walk(top, topdown=True, onerror=None, followlinks=False):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scandir-1.6/test/test_scandir.py 
new/scandir-1.7/test/test_scandir.py
--- old/scandir-1.6/test/test_scandir.py        2017-09-29 14:21:27.000000000 
+0200
+++ new/scandir-1.7/test/test_scandir.py        2018-02-12 21:54:37.000000000 
+0100
@@ -297,6 +297,17 @@
                 TestMixin.setUp(self)
 
 
+    class TestScandirDirEntry(unittest.TestCase):
+        def setUp(self):
+            if not os.path.exists(TEST_PATH):
+                setup_main()
+
+        def test_iter_returns_dir_entry(self):
+            it = scandir.scandir(TEST_PATH)
+            entry = next(it)
+            assert isinstance(entry, scandir.DirEntry)
+
+
 if hasattr(os, 'scandir'):
     class TestScandirOS(TestMixin, unittest.TestCase):
         def setUp(self):


Reply via email to