Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-maturin for openSUSE:Factory 
checked in at 2025-07-15 16:42:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-maturin (Old)
 and      /work/SRC/openSUSE:Factory/.python-maturin.new.7373 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-maturin"

Tue Jul 15 16:42:36 2025 rev:50 rq:1291953 version:1.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-maturin/python-maturin.changes    
2025-06-24 20:45:30.543250496 +0200
+++ /work/SRC/openSUSE:Factory/.python-maturin.new.7373/python-maturin.changes  
2025-07-15 16:43:05.810135616 +0200
@@ -1,0 +2,12 @@
+Fri Jul 11 10:58:20 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Convert to libalternatives
+
+-------------------------------------------------------------------
+Wed Jul  9 06:03:50 UTC 2025 - Mia Herkt <m...@0x0.st>
+
+- Update to 1.9.1
+  * Fix absolute license path in generated Python wheels
+    gh#PyO3/maturin#2666
+
+-------------------------------------------------------------------

Old:
----
  maturin-1.9.0.tar.gz

New:
----
  maturin-1.9.1.tar.gz

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

Other differences:
------------------
++++++ python-maturin.spec ++++++
--- /var/tmp/diff_new_pack.bgCobn/_old  2025-07-15 16:43:07.134190925 +0200
+++ /var/tmp/diff_new_pack.bgCobn/_new  2025-07-15 16:43:07.134190925 +0200
@@ -16,9 +16,10 @@
 #
 
 
+%bcond_without libalternatives
 %{?sle15_python_module_pythons}
 Name:           python-maturin
-Version:        1.9.0
+Version:        1.9.1
 Release:        0
 Summary:        Rust/Python Interoperability
 License:        Apache-2.0 OR MIT
@@ -31,11 +32,11 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module tomli >= 1.1.0 if %python-base < 3.11}
 BuildRequires:  %{python_module wheel >= 0.36.2}
+BuildRequires:  alts
 BuildRequires:  cargo-packaging
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires:       alts
 %if 0%{?python_version_nodots} < 311
 Requires:       python-tomli >= 1.1.0
 %endif
@@ -63,11 +64,8 @@
 
 %check
 
-%post
-%python_install_alternative maturin
-
-%postun
-%python_uninstall_alternative maturin
+%pre
+%python_libalternatives_reset_alternative maturin
 
 %files %{python_files}
 %license license-apache license-mit

++++++ maturin-1.9.0.tar.gz -> maturin-1.9.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/maturin-1.9.0/.pre-commit-config.yaml 
new/maturin-1.9.1/.pre-commit-config.yaml
--- old/maturin-1.9.0/.pre-commit-config.yaml   2025-06-23 16:09:29.000000000 
+0200
+++ new/maturin-1.9.1/.pre-commit-config.yaml   2025-07-08 06:43:58.000000000 
+0200
@@ -56,12 +56,12 @@
           )
       - id: mixed-line-ending
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: v0.11.13
+    rev: v0.12.2
     hooks:
       - id: ruff-format
       - id: ruff
   - repo: https://github.com/pre-commit/mirrors-mypy
-    rev: v1.16.0
+    rev: v1.16.1
     hooks:
       - id: mypy
         entry: mypy maturin/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/maturin-1.9.0/Cargo.lock new/maturin-1.9.1/Cargo.lock
--- old/maturin-1.9.0/Cargo.lock        2025-06-23 16:09:29.000000000 +0200
+++ new/maturin-1.9.1/Cargo.lock        2025-07-08 06:43:58.000000000 +0200
@@ -1436,7 +1436,7 @@
 
 [[package]]
 name = "maturin"
-version = "1.9.0"
+version = "1.9.1"
 dependencies = [
  "anyhow",
  "base64 0.21.7",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/maturin-1.9.0/Cargo.toml new/maturin-1.9.1/Cargo.toml
--- old/maturin-1.9.0/Cargo.toml        1970-01-01 01:00:00.000000000 +0100
+++ new/maturin-1.9.1/Cargo.toml        1970-01-01 01:00:00.000000000 +0100
@@ -1,7 +1,7 @@
 [package]
 authors = ["konstin <kons...@mailbox.org>", "messense <messe...@icloud.com>"]
 name = "maturin"
-version = "1.9.0"
+version = "1.9.1"
 description = "Build and publish crates with pyo3, cffi and uniffi bindings as 
well as rust binaries as python packages"
 exclude = [
     "test-crates/**/*",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/maturin-1.9.0/Changelog.md 
new/maturin-1.9.1/Changelog.md
--- old/maturin-1.9.0/Changelog.md      2025-06-23 16:09:29.000000000 +0200
+++ new/maturin-1.9.1/Changelog.md      2025-07-08 06:43:58.000000000 +0200
@@ -2,6 +2,10 @@
 
 ## Unreleased
 
+## [1.9.1]
+
+* Fix absolute license file path from `Cargo.toml` in 
[#2667](https://github.com/PyO3/maturin/pull/2667)
+
 ## [1.9.0]
 
 * Add full PEP 639 support for `project.license` and `project.license-files` 
in [#2647](https://github.com/PyO3/maturin/pull/2647).
@@ -1081,7 +1085,8 @@
 
  * Initial Release
 
-[Unreleased]: https://github.com/pyo3/maturin/compare/v1.9.0...HEAD
+[Unreleased]: https://github.com/pyo3/maturin/compare/v1.9.1...HEAD
+[1.9.1]: https://github.com/pyo3/maturin/compare/v1.9.0...v1.9.1
 [1.9.0]: https://github.com/pyo3/maturin/compare/v1.8.7...v1.9.0
 [1.8.7]: https://github.com/pyo3/maturin/compare/v1.8.6...v1.8.7
 [1.8.6]: https://github.com/pyo3/maturin/compare/v1.8.5...v1.8.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/maturin-1.9.0/PKG-INFO new/maturin-1.9.1/PKG-INFO
--- old/maturin-1.9.0/PKG-INFO  1970-01-01 01:00:00.000000000 +0100
+++ new/maturin-1.9.1/PKG-INFO  1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: maturin
-Version: 1.9.0
+Version: 1.9.1
 Classifier: Topic :: Software Development :: Build Tools
 Classifier: Programming Language :: Rust
 Classifier: Programming Language :: Python :: Implementation :: CPython
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/maturin-1.9.0/src/metadata.rs 
new/maturin-1.9.1/src/metadata.rs
--- old/maturin-1.9.0/src/metadata.rs   2025-06-23 16:09:29.000000000 +0200
+++ new/maturin-1.9.1/src/metadata.rs   2025-07-08 06:43:58.000000000 +0200
@@ -2,6 +2,7 @@
 use anyhow::{bail, format_err, Context, Result};
 use fs_err as fs;
 use indexmap::IndexMap;
+use normpath::PathExt;
 use pep440_rs::{Version, VersionSpecifiers};
 use pep508_rs::{
     ExtraName, ExtraOperator, MarkerExpression, MarkerTree, MarkerValueExtra, 
Requirement,
@@ -199,6 +200,22 @@
                 None => {}
             }
 
+            // Make sure existing license files from `Cargo.toml` are relative 
to the project root
+            let license_files = std::mem::take(&mut self.license_files);
+            for license_file in license_files {
+                let license_path = license_file
+                    .strip_prefix(pyproject_dir)
+                    .with_context(|| {
+                        format!(
+                            "license file `{}` exists outside of the project 
root `{}`",
+                            license_file.display(),
+                            pyproject_dir.display()
+                        )
+                    })?
+                    .to_path_buf();
+                self.license_files.push(license_path);
+            }
+
             if let Some(requires_python) = &project.requires_python {
                 self.requires_python = Some(requires_python.clone());
             }
@@ -260,7 +277,7 @@
                         // if the pyproject.toml specified the license file,
                         // then we won't list it as automatically included
                         if !self.license_files.contains(&license_path) {
-                            eprintln!("📦 Including license file \"{}\"", 
license_path.display());
+                            eprintln!("📦 Including license file `{}`", 
license_path.display());
                             self.license_files.push(license_path);
                         }
                     }
@@ -428,7 +445,14 @@
             project_url.insert("Source Code".to_string(), repository.clone());
         }
         let license_files = if let Some(license_file) = 
package.license_file.as_ref() {
-            vec![manifest_path.as_ref().join(license_file)]
+            let license_path = 
manifest_path.as_ref().join(license_file).normalize()?;
+            if !license_path.is_file() {
+                bail!(
+                    "license file `{license_file}` specified in `{}` is not a 
file",
+                    manifest_path.as_ref().display()
+                );
+            }
+            vec![license_path.into_path_buf()]
         } else {
             Vec::new()
         };

++++++ vendor.tar.xz ++++++
/work/SRC/openSUSE:Factory/python-maturin/vendor.tar.xz 
/work/SRC/openSUSE:Factory/.python-maturin.new.7373/vendor.tar.xz differ: char 
15, line 1

Reply via email to