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 2023-06-06 19:55:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-hatchling (Old) and /work/SRC/openSUSE:Factory/.python-hatchling.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hatchling" Tue Jun 6 19:55:04 2023 rev:18 rq:1090791 version:1.17.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-hatchling/python-hatchling.changes 2023-05-13 17:17:41.954401127 +0200 +++ /work/SRC/openSUSE:Factory/.python-hatchling.new.15902/python-hatchling.changes 2023-06-06 19:55:43.202281454 +0200 @@ -1,0 +2,9 @@ +Sat Jun 3 18:21:13 UTC 2023 - Benoît Monin <benoit.mo...@gmx.fr> + +- update to version 1.17.1: + * Fix dev mode when the project has symlinks and file inclusion is + defined with the packages or only-include options + * Change the name of generated PTH files for dev mode so they come + first lexicographically and therefore load first + +------------------------------------------------------------------- Old: ---- hatchling-1.17.0.tar.gz New: ---- hatchling-1.17.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-hatchling.spec ++++++ --- /var/tmp/diff_new_pack.npuzEZ/_old 2023-06-06 19:55:43.914285675 +0200 +++ /var/tmp/diff_new_pack.npuzEZ/_new 2023-06-06 19:55:43.922285724 +0200 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-hatchling -Version: 1.17.0 +Version: 1.17.1 Release: 0 Summary: Build backend used by Hatch License: MIT ++++++ hatchling-1.17.0.tar.gz -> hatchling-1.17.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.17.0/PKG-INFO new/hatchling-1.17.1/PKG-INFO --- old/hatchling-1.17.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.17.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: hatchling -Version: 1.17.0 +Version: 1.17.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.17.0/src/hatchling/__about__.py new/hatchling-1.17.1/src/hatchling/__about__.py --- old/hatchling-1.17.0/src/hatchling/__about__.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.17.1/src/hatchling/__about__.py 2020-02-02 01:00:00.000000000 +0100 @@ -1 +1 @@ -__version__ = '1.17.0' +__version__ = '1.17.1' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.17.0/src/hatchling/builders/plugin/interface.py new/hatchling-1.17.1/src/hatchling/builders/plugin/interface.py --- old/hatchling-1.17.0/src/hatchling/builders/plugin/interface.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.17.1/src/hatchling/builders/plugin/interface.py 2020-02-02 01:00:00.000000000 +0100 @@ -176,13 +176,15 @@ - `relative_path` - the path relative to the project root; will be an empty string for external files - `distribution_path` - the path to be distributed as """ + yield from self.recurse_selected_project_files() + yield from self.recurse_forced_files(self.config.get_force_include()) + + def recurse_selected_project_files(self) -> Iterable[IncludedFile]: if self.config.only_include: yield from self.recurse_explicit_files(self.config.only_include) else: yield from self.recurse_project_files() - yield from self.recurse_forced_files(self.config.get_force_include()) - def recurse_project_files(self) -> Iterable[IncludedFile]: for root, dirs, files in safe_walk(self.root): relative_path = get_relative_path(root, self.root) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.17.0/src/hatchling/builders/wheel.py new/hatchling-1.17.1/src/hatchling/builders/wheel.py --- old/hatchling-1.17.0/src/hatchling/builders/wheel.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.17.1/src/hatchling/builders/wheel.py 2020-02-02 01:00:00.000000000 +0100 @@ -396,7 +396,7 @@ self.artifact_project_id, reproducible=self.config.reproducible ) as archive, RecordFile() as records: exposed_packages = {} - for included_file in self.recurse_project_files(): + for included_file in self.recurse_selected_project_files(): if not included_file.path.endswith('.py'): continue @@ -438,6 +438,9 @@ editable_project.add_to_path(os.path.dirname(relative_path)) for filename, content in sorted(editable_project.files()): + if filename.endswith('.pth') and not filename.startswith('_'): + filename = f'_{filename}' + record = archive.write_file(filename, content) records.write(record) @@ -475,7 +478,7 @@ for relative_directory in self.config.dev_mode_dirs ) - record = archive.write_file(f"{self.metadata.core.name.replace('-', '_')}.pth", '\n'.join(directories)) + record = archive.write_file(f"_{self.metadata.core.name.replace('-', '_')}.pth", '\n'.join(directories)) records.write(record) for included_file in self.recurse_forced_files(self.get_forced_inclusion_map(build_data)):