Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-hatchling for 
openSUSE:Factory checked in at 2022-08-27 11:48:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-hatchling (Old)
 and      /work/SRC/openSUSE:Factory/.python-hatchling.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-hatchling"

Sat Aug 27 11:48:17 2022 rev:7 rq:999362 version:1.8.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-hatchling/python-hatchling.changes        
2022-08-20 20:27:49.869214222 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-hatchling.new.2083/python-hatchling.changes  
    2022-08-27 11:48:19.453615463 +0200
@@ -1,0 +2,9 @@
+Thu Aug 25 18:52:11 UTC 2022 - Beno??t Monin <benoit.mo...@gmx.fr>
+
+- update to version 1.8.1:
+  * Fixed:
+    + Fix default file inclusion for wheel build targets when both
+      the project name and package directory name are not
+      normalized
+
+-------------------------------------------------------------------

Old:
----
  hatchling-1.8.0.tar.gz

New:
----
  hatchling-1.8.1.tar.gz

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

Other differences:
------------------
++++++ python-hatchling.spec ++++++
--- /var/tmp/diff_new_pack.GwrC3t/_old  2022-08-27 11:48:19.897616417 +0200
+++ /var/tmp/diff_new_pack.GwrC3t/_new  2022-08-27 11:48:19.901616425 +0200
@@ -19,7 +19,7 @@
 %define skip_python2 1
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-hatchling
-Version:        1.8.0
+Version:        1.8.1
 Release:        0
 Summary:        Build backend used by Hatch
 License:        MIT

++++++ hatchling-1.8.0.tar.gz -> hatchling-1.8.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hatchling-1.8.0/PKG-INFO new/hatchling-1.8.1/PKG-INFO
--- old/hatchling-1.8.0/PKG-INFO        2020-02-02 01:00:00.000000000 +0100
+++ new/hatchling-1.8.1/PKG-INFO        2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: hatchling
-Version: 1.8.0
+Version: 1.8.1
 Summary: Modern, extensible Python build backend
 Project-URL: Homepage, https://hatch.pypa.io/latest/
 Project-URL: Sponsor, https://github.com/sponsors/ofek
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hatchling-1.8.0/src/hatchling/__about__.py 
new/hatchling-1.8.1/src/hatchling/__about__.py
--- old/hatchling-1.8.0/src/hatchling/__about__.py      2020-02-02 
01:00:00.000000000 +0100
+++ new/hatchling-1.8.1/src/hatchling/__about__.py      2020-02-02 
01:00:00.000000000 +0100
@@ -1 +1 @@
-__version__ = '1.8.0'
+__version__ = '1.8.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hatchling-1.8.0/src/hatchling/builders/wheel.py 
new/hatchling-1.8.1/src/hatchling/builders/wheel.py
--- old/hatchling-1.8.0/src/hatchling/builders/wheel.py 2020-02-02 
01:00:00.000000000 +0100
+++ new/hatchling-1.8.1/src/hatchling/builders/wheel.py 2020-02-02 
01:00:00.000000000 +0100
@@ -142,24 +142,31 @@
         if self.__include or self.__exclude or self.__packages:
             return
 
-        project_name = 
self.builder.normalize_file_name_component(self.builder.metadata.core.name)
-        if os.path.isfile(os.path.join(self.root, project_name, 
'__init__.py')):
-            self.__packages.append(project_name)
-        elif os.path.isfile(os.path.join(self.root, 'src', project_name, 
'__init__.py')):
-            self.__packages.append(f'src/{project_name}')
-        elif os.path.isfile(os.path.join(self.root, f'{project_name}.py')):
-            self.__packages.append(f'{project_name}.py')
-        else:
-            from glob import glob
-
-            possible_namespace_packages = glob(os.path.join(self.root, '*', 
project_name, '__init__.py'))
-            if len(possible_namespace_packages) == 1:
-                relative_path = 
os.path.relpath(possible_namespace_packages[0], self.root)
-                namespace = relative_path.split(os.sep)[0]
-                self.__packages.append(namespace)
+        for project_name in (
+            
self.builder.normalize_file_name_component(self.builder.metadata.core.raw_name),
+            
self.builder.normalize_file_name_component(self.builder.metadata.core.name),
+        ):
+            if os.path.isfile(os.path.join(self.root, project_name, 
'__init__.py')):
+                self.__packages.append(project_name)
+                break
+            elif os.path.isfile(os.path.join(self.root, 'src', project_name, 
'__init__.py')):
+                self.__packages.append(f'src/{project_name}')
+                break
+            elif os.path.isfile(os.path.join(self.root, f'{project_name}.py')):
+                self.__packages.append(f'{project_name}.py')
+                break
             else:
-                self.__include.append('*.py')
-                self.__exclude.append('test*')
+                from glob import glob
+
+                possible_namespace_packages = glob(os.path.join(self.root, 
'*', project_name, '__init__.py'))
+                if len(possible_namespace_packages) == 1:
+                    relative_path = 
os.path.relpath(possible_namespace_packages[0], self.root)
+                    namespace = relative_path.split(os.sep)[0]
+                    self.__packages.append(namespace)
+                    break
+        else:
+            self.__include.append('*.py')
+            self.__exclude.append('test*')
 
     def default_include(self):
         if not self.__include_defined:

Reply via email to