public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Lumir Balhar <lbalhar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-installer] rawhide: Update to 1.1.0 (rhbz#2549996)
Date: Thu, 05 Nov 2026 04:34:30 GMT	[thread overview]
Message-ID: <179385327099.1.8862201609914630291.rpms-python-installer-14abe4df0889@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-installer
            Branch : rawhide
            Commit : 14abe4df08892db843aa410a1709e299b0874499
            Author : Lumir Balhar <lbalhar@redhat.com>
            Date   : 2026-10-23T22:21:54+02:00
            Stats  : +3/-85 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-installer/c/14abe4df08892db843aa410a1709e299b0874499?branch=rawhide

            Log:
            Update to 1.1.0 (rhbz#2549996)

Assisted-By: Claude

---
diff --git a/.gitignore b/.gitignore
index 309d0f7..af94263 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 /installer-0.6.0.tar.gz
 /installer-0.7.0.tar.gz
 /installer-1.0.1.tar.gz
+/installer-1.1.0.tar.gz

diff --git a/340.patch b/340.patch
deleted file mode 100644
index 9d0629c..0000000
--- a/340.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 35faee2f30d2050c4b14172073c3252d150896b8 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Lum=C3=ADr=20Balhar?= <lbalhar@redhat.com>
-Date: Thu, 18 Jun 2026 12:00:18 +0000
-Subject: [PATCH 1/2] fix: replace deprecated posixpath.commonprefix() with
- startswith()
-
-os.path.commonprefix() is deprecated in Python 3.15 and emits a
-DeprecationWarning. Replace all three usages with str.startswith()
-checks, which are also semantically more correct (commonprefix does
-character-level matching and can produce false positives for paths
-sharing a string prefix but not a directory boundary).
----
- src/installer/_core.py   | 2 +-
- src/installer/sources.py | 6 ++----
- 2 files changed, 3 insertions(+), 5 deletions(-)
-
-diff --git a/src/installer/_core.py b/src/installer/_core.py
-index e23f06e..24ed294 100644
---- a/src/installer/_core.py
-+++ b/src/installer/_core.py
-@@ -42,7 +42,7 @@ def _determine_scheme(
-     data_dir = source.data_dir
- 
-     # If it's in not `{distribution}-{version}.data`, then it's in root_scheme.
--    if posixpath.commonprefix([data_dir, path]) != data_dir:
-+    if not path.startswith(data_dir + "/"):
-         return root_scheme, path
- 
-     # Figure out which scheme this goes to.
-diff --git a/src/installer/sources.py b/src/installer/sources.py
-index 839934f..f76177b 100644
---- a/src/installer/sources.py
-+++ b/src/installer/sources.py
-@@ -220,7 +220,7 @@ def dist_info_filenames(self) -> list[str]:
-             name[len(base) + 1 :]
-             for name in self._zipfile.namelist()
-             if name[-1:] != "/"
--            if base == posixpath.commonprefix([name, base])
-+            if name.startswith(base + "/")
-         ]
- 
-     def read_dist_info(self, filename: str) -> str:
-@@ -259,9 +259,7 @@ def validate_record(self, *, validate_contents: bool = True) -> None:
- 
-             record_args = record_mapping.pop(item.filename, None)
- 
--            if self.dist_info_dir == posixpath.commonprefix(
--                [self.dist_info_dir, item.filename]
--            ) and item.filename.split("/")[-1] in ("RECORD.p7s", "RECORD.jws"):
-+            if item.filename.startswith(self.dist_info_dir + "/") and item.filename.split("/")[-1] in ("RECORD.p7s", "RECORD.jws"):
-                 # both are for digital signatures, and not mentioned in RECORD
-                 if record_args is not None:
-                     # Incorrectly contained
-
-From 7671087481739236ff40788b9045c4b8a62f98fa Mon Sep 17 00:00:00 2001
-From: "pre-commit-ci[bot]"
- <66853113+pre-commit-ci[bot]@users.noreply.github.com>
-Date: Thu, 18 Jun 2026 19:03:32 +0000
-Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks
-
-for more information, see https://pre-commit.ci
----
- src/installer/sources.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/installer/sources.py b/src/installer/sources.py
-index f76177b..cd6291a 100644
---- a/src/installer/sources.py
-+++ b/src/installer/sources.py
-@@ -259,7 +259,9 @@ def validate_record(self, *, validate_contents: bool = True) -> None:
- 
-             record_args = record_mapping.pop(item.filename, None)
- 
--            if item.filename.startswith(self.dist_info_dir + "/") and item.filename.split("/")[-1] in ("RECORD.p7s", "RECORD.jws"):
-+            if item.filename.startswith(
-+                self.dist_info_dir + "/"
-+            ) and item.filename.split("/")[-1] in ("RECORD.p7s", "RECORD.jws"):
-                 # both are for digital signatures, and not mentioned in RECORD
-                 if record_args is not None:
-                     # Incorrectly contained

diff --git a/python-installer.spec b/python-installer.spec
index 53259fb..35c49f3 100644
--- a/python-installer.spec
+++ b/python-installer.spec
@@ -1,5 +1,5 @@
 Name:           python-installer
-Version:        1.0.1
+Version:        1.1.0
 Release:        %autorelease
 Summary:        A library for installing Python wheels
 
@@ -8,9 +8,6 @@ License:        MIT
 URL:            https://github.com/pypa/installer
 Source:         %{pypi_source installer}
 
-# Replace deprecated posixpath.commonprefix() usage with path.startswith()
-# Fixes tests with Python 3.15
-Patch:          https://github.com/pypa/installer/pull/340.patch
 
 BuildArch:      noarch
 BuildRequires:  python3-devel

diff --git a/sources b/sources
index a8fcb95..ccfa296 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (installer-1.0.1.tar.gz) = cabc4efb8ce66ce85c2139e264f66c449f9e5cf1f8c860afa7f147daf0b983716fe02182ef1f6e4abbc4b6be34d75738a0281c77dda9d48a075c212301278a73
+SHA512 (installer-1.1.0.tar.gz) = 0dab0a9d01c1bf7e001b1a41b8380a56ec6df22db6916e919bcb3063adfe3fdbbabae7fc4000915b93c704d5251d976beecdf2cc026eb9d18b6e798d9bbe0979

                 reply	other threads:[~2026-11-05  4:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179385327099.1.8862201609914630291.rpms-python-installer-14abe4df0889@fedoraproject.org \
    --to=lbalhar@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox