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 2024-01-26 22:46:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-hatchling (Old) and /work/SRC/openSUSE:Factory/.python-hatchling.new.1815 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hatchling" Fri Jan 26 22:46:14 2024 rev:22 rq:1141699 version:1.21.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-hatchling/python-hatchling.changes 2023-12-28 22:54:58.824227182 +0100 +++ /work/SRC/openSUSE:Factory/.python-hatchling.new.1815/python-hatchling.changes 2024-01-26 22:46:17.858102922 +0100 @@ -1,0 +2,7 @@ +Thu Jan 25 21:07:23 UTC 2024 - Benoît Monin <benoit.mo...@gmx.fr> + +- update to 1.21.1: + * Fix loading of local plugins to account for newly released + versions of a dependency + +------------------------------------------------------------------- Old: ---- hatchling-1.21.0.tar.gz New: ---- hatchling-1.21.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-hatchling.spec ++++++ --- /var/tmp/diff_new_pack.SolSk8/_old 2024-01-26 22:46:19.530163137 +0100 +++ /var/tmp/diff_new_pack.SolSk8/_new 2024-01-26 22:46:19.534163281 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-hatchling # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-hatchling -Version: 1.21.0 +Version: 1.21.1 Release: 0 Summary: Build backend used by Hatch License: MIT @@ -40,7 +40,7 @@ Requires: python-pluggy >= 1.0.0 Requires: python-trove-classifiers Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %if 0%{?python_version_nodots} < 311 Requires: python-tomli >= 1.2.2 ++++++ hatchling-1.21.0.tar.gz -> hatchling-1.21.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.21.0/PKG-INFO new/hatchling-1.21.1/PKG-INFO --- old/hatchling-1.21.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: hatchling -Version: 1.21.0 +Version: 1.21.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.21.0/src/hatchling/__about__.py new/hatchling-1.21.1/src/hatchling/__about__.py --- old/hatchling-1.21.0/src/hatchling/__about__.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.1/src/hatchling/__about__.py 2020-02-02 01:00:00.000000000 +0100 @@ -1 +1 @@ -__version__ = '1.21.0' +__version__ = '1.21.1' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.21.0/src/hatchling/builders/wheel.py new/hatchling-1.21.1/src/hatchling/builders/wheel.py --- old/hatchling-1.21.0/src/hatchling/builders/wheel.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.1/src/hatchling/builders/wheel.py 2020-02-02 01:00:00.000000000 +0100 @@ -192,7 +192,6 @@ module_file = f'{project_name}.py' if os.path.isfile(os.path.join(self.root, module_file)): - normalized_project_name = self.get_raw_fs_path_name(self.root, module_file) return FileSelectionOptions([], exclude, [], [module_file]) from glob import glob diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.21.0/src/hatchling/plugin/utils.py new/hatchling-1.21.1/src/hatchling/plugin/utils.py --- old/hatchling-1.21.0/src/hatchling/plugin/utils.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.1/src/hatchling/plugin/utils.py 2020-02-02 01:00:00.000000000 +0100 @@ -11,11 +11,11 @@ def load_plugin_from_script(path: str, script_name: str, plugin_class: type[T], plugin_id: str) -> type[T]: - import importlib + from importlib.util import module_from_spec, spec_from_file_location - spec = importlib.util.spec_from_file_location(script_name, path) # type: ignore - module = importlib.util.module_from_spec(spec) # type: ignore - spec.loader.exec_module(module) + spec = spec_from_file_location(script_name, path) + module = module_from_spec(spec) # type: ignore + spec.loader.exec_module(module) # type: ignore plugin_finder = f'get_{plugin_id}' names = dir(module) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.21.0/src/hatchling/version/source/code.py new/hatchling-1.21.1/src/hatchling/version/source/code.py --- old/hatchling-1.21.0/src/hatchling/version/source/code.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.1/src/hatchling/version/source/code.py 2020-02-02 01:00:00.000000000 +0100 @@ -9,8 +9,8 @@ PLUGIN_NAME = 'code' def get_version_data(self) -> dict: - import importlib import sys + from importlib.util import module_from_spec, spec_from_file_location relative_path = self.config.get('path') if not relative_path: @@ -44,13 +44,13 @@ absolute_search_paths.append(os.path.normpath(os.path.join(self.root, search_path))) - spec = importlib.util.spec_from_file_location(os.path.splitext(path)[0], path) # type: ignore - module = importlib.util.module_from_spec(spec) # type: ignore + spec = spec_from_file_location(os.path.splitext(path)[0], path) + module = module_from_spec(spec) # type: ignore old_search_paths = list(sys.path) try: sys.path[:] = [*absolute_search_paths, *old_search_paths] - spec.loader.exec_module(module) + spec.loader.exec_module(module) # type: ignore finally: sys.path[:] = old_search_paths