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-10-22 14:12:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-hatchling (Old)
and /work/SRC/openSUSE:Factory/.python-hatchling.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hatchling"
Sat Oct 22 14:12:03 2022 rev:11 rq:1030248 version:1.11.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-hatchling/python-hatchling.changes
2022-10-12 18:24:04.409571832 +0200
+++
/work/SRC/openSUSE:Factory/.python-hatchling.new.2275/python-hatchling.changes
2022-10-22 14:12:09.840606752 +0200
@@ -1,0 +2,7 @@
+Thu Oct 20 19:55:11 UTC 2022 - Beno??t Monin <[email protected]>
+
+- update to version 1.11.1:
+ * Fixed: Fix default file selection behavior of the wheel target
+ when there is a single top-level module
+
+-------------------------------------------------------------------
Old:
----
hatchling-1.11.0.tar.gz
New:
----
hatchling-1.11.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-hatchling.spec ++++++
--- /var/tmp/diff_new_pack.fU0x0w/_old 2022-10-22 14:12:10.320607889 +0200
+++ /var/tmp/diff_new_pack.fU0x0w/_new 2022-10-22 14:12:10.336607927 +0200
@@ -19,7 +19,7 @@
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-hatchling
-Version: 1.11.0
+Version: 1.11.1
Release: 0
Summary: Build backend used by Hatch
License: MIT
++++++ hatchling-1.11.0.tar.gz -> hatchling-1.11.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatchling-1.11.0/PKG-INFO
new/hatchling-1.11.1/PKG-INFO
--- old/hatchling-1.11.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/hatchling-1.11.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: hatchling
-Version: 1.11.0
+Version: 1.11.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.11.0/src/hatchling/__about__.py
new/hatchling-1.11.1/src/hatchling/__about__.py
--- old/hatchling-1.11.0/src/hatchling/__about__.py 2020-02-02
01:00:00.000000000 +0100
+++ new/hatchling-1.11.1/src/hatchling/__about__.py 2020-02-02
01:00:00.000000000 +0100
@@ -1 +1 @@
-__version__ = '1.11.0'
+__version__ = '1.11.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatchling-1.11.0/src/hatchling/builders/config.py
new/hatchling-1.11.1/src/hatchling/builders/config.py
--- old/hatchling-1.11.0/src/hatchling/builders/config.py 2020-02-02
01:00:00.000000000 +0100
+++ new/hatchling-1.11.1/src/hatchling/builders/config.py 2020-02-02
01:00:00.000000000 +0100
@@ -699,7 +699,7 @@
only_include_config = self.build_config
only_include_location = 'tool.hatch.build.only-include'
- only_include = only_include_config.get('only-include', []) or
self.packages
+ only_include = only_include_config.get('only-include',
self.default_only_include()) or self.packages
if not isinstance(only_include, list):
raise TypeError(f'Field `{only_include_location}` must be an
array')
@@ -786,6 +786,9 @@
def default_packages(self):
return []
+ def default_only_include(self):
+ return []
+
def default_global_exclude(self):
patterns = ['*.py[cdo]', f'/{DEFAULT_BUILD_DIRECTORY}']
patterns.sort()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatchling-1.11.0/src/hatchling/builders/wheel.py
new/hatchling-1.11.1/src/hatchling/builders/wheel.py
--- old/hatchling-1.11.0/src/hatchling/builders/wheel.py 2020-02-02
01:00:00.000000000 +0100
+++ new/hatchling-1.11.1/src/hatchling/builders/wheel.py 2020-02-02
01:00:00.000000000 +0100
@@ -147,6 +147,7 @@
self.__include = []
self.__exclude = []
self.__packages = []
+ self.__only_include = []
self.__core_metadata_constructor = None
self.__shared_data = None
@@ -154,7 +155,7 @@
self.__strict_naming = None
def set_default_file_selection(self):
- if self.__include or self.__exclude or self.__packages:
+ if self.__include or self.__exclude or self.__packages or
self.__only_include:
return
for project_name in (
@@ -168,7 +169,7 @@
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')
+ self.__only_include.append(f'{project_name}.py')
break
else:
from glob import glob
@@ -201,6 +202,12 @@
return self.__packages
+ def default_only_include(self):
+ if not self.__include_defined:
+ self.set_default_file_selection()
+
+ return self.__only_include
+
@property
def core_metadata_constructor(self):
if self.__core_metadata_constructor is None: