Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-hatch for openSUSE:Factory 
checked in at 2023-05-11 12:33:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-hatch (Old)
 and      /work/SRC/openSUSE:Factory/.python-hatch.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-hatch"

Thu May 11 12:33:35 2023 rev:6 rq:1086107 version:1.7.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-hatch/python-hatch.changes        
2023-01-11 14:37:23.962026225 +0100
+++ /work/SRC/openSUSE:Factory/.python-hatch.new.1533/python-hatch.changes      
2023-05-11 12:34:07.642892143 +0200
@@ -1,0 +2,38 @@
+Wed May 10 16:07:25 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add fix-sdist-target.patch to fix tests: gh#pypa/hatch@1b10663e645e
+
+-------------------------------------------------------------------
+Fri May  5 10:45:53 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 1.7.0:
+  * The `src-layout` project template option is now enabled by
+    default
+  * Non-critical output now goes to stderr
+  * Add `tool.hatch.env.requires` configuration to automatically
+    install dependencies for environment and environment
+    collector plugins
+  * Add `custom` environment collector
+  * Improve syncing of dependencies provided through Git direct
+    references
+  * Add `isolated_data_directory` attribute to the environment
+    interface
+  * Increase the timeout for and add retries to the `index`
+    publisher
+  * Expand home and environment variables in configured cache and
+    data directories
+  * Improve readability of exceptions
+  * Update project templates
+  * Bump the minimum supported version of Hatchling to 1.14.0
+  * Fix displaying the version with the `version` command when
+    the version is static and build dependencies are unmet
+  * Fix build environments for the `virtual` environment type
+    when storing within a relative path
+  * Allow setuptools metadata migration for projects without
+    `setup.py` if `setup.cfg` is present
+  * Handle additional edge cases for setuptools metadata
+    migration
+  * Support boolean values for the `config set` command
+- drop hatch-pr659-utf8.patch (upstream)
+
+-------------------------------------------------------------------

Old:
----
  hatch-pr659-utf8.patch
  hatch-v1.6.3.tar.gz

New:
----
  fix-sdist-target.patch
  hatch-v1.7.0.tar.gz

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

Other differences:
------------------
++++++ python-hatch.spec ++++++
--- /var/tmp/diff_new_pack.ctDpyH/_old  2023-05-11 12:34:08.182894797 +0200
+++ /var/tmp/diff_new_pack.ctDpyH/_new  2023-05-11 12:34:08.182894797 +0200
@@ -26,17 +26,17 @@
 %endif
 
 Name:           python-hatch%{psuffix}
-Version:        1.6.3
+Version:        1.7.0
 Release:        0
 Summary:        Modern, extensible Python project management
 License:        MIT
 URL:            https://hatch.pypa.io/latest/
 # SourceRepository: https://github.com/pypa/hatch
 Source:         
https://github.com/pypa/hatch/archive/refs/tags/hatch-v%{version}.tar.gz
-# PATCH-FIX-UPSTREAM hatch-pr659-utf8.patch gh#pypa/hatch#659 required due to 
newer hatchling
-Patch1:         hatch-pr659-utf8.patch
+# PATCH-FIX-UPSTREAM fix-sdist-target.patch -- gh#pypa/hatch@1b10663e645e
+Patch0:         fix-sdist-target.patch
 BuildRequires:  %{python_module base >= 3.7}
-BuildRequires:  %{python_module hatchling >= 1.11.0}
+BuildRequires:  %{python_module hatchling >= 1.14}
 BuildRequires:  %{python_module pip}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros

++++++ fix-sdist-target.patch ++++++
Index: hatch-hatch-v1.7.0/backend/src/hatchling/builders/sdist.py
===================================================================
--- hatch-hatch-v1.7.0.orig/backend/src/hatchling/builders/sdist.py
+++ hatch-hatch-v1.7.0/backend/src/hatchling/builders/sdist.py
@@ -161,7 +161,7 @@ class SdistBuilder(BuilderInterface):
     def build_standard(self, directory: str, **build_data: Any) -> str:
         found_packages = set()
 
-        with SdistArchive(self.project_id, 
reproducible=self.config.reproducible) as archive:
+        with SdistArchive(self.artifact_project_id, 
reproducible=self.config.reproducible) as archive:
             for included_file in self.recurse_included_files():
                 if self.config.support_legacy:
                     possible_package, file_name = 
os.path.split(included_file.relative_path)
@@ -170,7 +170,9 @@ class SdistBuilder(BuilderInterface):
 
                 tar_info = archive.gettarinfo(
                     included_file.path,
-                    
arcname=normalize_archive_path(os.path.join(self.project_id, 
included_file.distribution_path)),
+                    arcname=normalize_archive_path(
+                        os.path.join(self.artifact_project_id, 
included_file.distribution_path)
+                    ),
                 )
 
                 if tar_info.isfile():
Index: hatch-hatch-v1.7.0/tests/backend/builders/test_sdist.py
===================================================================
--- hatch-hatch-v1.7.0.orig/tests/backend/builders/test_sdist.py
+++ hatch-hatch-v1.7.0/tests/backend/builders/test_sdist.py
@@ -1516,9 +1516,9 @@ class TestBuildStandard:
             tar_archive.extractall(str(extraction_directory))
 
         expected_files = helpers.get_template_files(
-            'sdist.standard_default', project_name, 
relative_root=builder.project_id
+            'sdist.standard_default', project_name, 
relative_root=builder.artifact_project_id
         )
         helpers.assert_files(extraction_directory, expected_files)
 
-        stat = os.stat(str(extraction_directory / builder.project_id / 
'PKG-INFO'))
+        stat = os.stat(str(extraction_directory / builder.artifact_project_id 
/ 'PKG-INFO'))
         assert stat.st_mtime == get_reproducible_timestamp()

++++++ hatch-v1.6.3.tar.gz -> hatch-v1.7.0.tar.gz ++++++
++++ 19687 lines of diff (skipped)

Reply via email to