public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-distlib] rawhide: Update to 0.4.3 (rhbz#2483940)
@ 2026-10-16 16:11 Lumir Balhar
0 siblings, 0 replies; only message in thread
From: Lumir Balhar @ 2026-10-16 16:11 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-distlib
Branch : rawhide
Commit : 80cce04955b648d0e79730a9e0eeb5b6d9497be4
Author : Lumir Balhar <lbalhar@redhat.com>
Date : 2026-10-16T10:48:09+02:00
Stats : +3/-116 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/python-distlib/c/80cce04955b648d0e79730a9e0eeb5b6d9497be4?branch=rawhide
Log:
Update to 0.4.3 (rhbz#2483940)
---
diff --git a/.gitignore b/.gitignore
index 9cf5c5e..aa274c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@
/distlib-0.3.8.tar.gz
/distlib-0.3.9.tar.gz
/distlib-0.4.0.tar.gz
+/distlib-0.4.3.tar.gz
diff --git a/fix-python3.15-ftbfs.patch b/fix-python3.15-ftbfs.patch
deleted file mode 100644
index 4a27f02..0000000
--- a/fix-python3.15-ftbfs.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From 53a497ae37b3220662ac177e9477e9551e4e37b0 Mon Sep 17 00:00:00 2001
-From: Victor Stinner <vstinner@python.org>
-Date: Wed, 14 Jan 2026 14:32:40 +0100
-Subject: [PATCH] Update cache_from_source() for Python 3.15
-
-The debug_override parameter of cache_from_source() is deprecated in
-Python 3.14. The function docstring says:
-
- The debug_override parameter is deprecated. If debug_override
- is not None, a True value is the same as setting 'optimization'
- to the empty string while a False value is equivalent to setting
- 'optimization' to '1'.
-
-The parameter has been removed in Python 3.15.
-
-Fixes #255
----
- distlib/util.py | 6 +++++-
- tests/test_util.py | 2 +-
- 2 files changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/distlib/util.py b/distlib/util.py
-index 0d5bd7a..b700384 100644
---- a/distlib/util.py
-+++ b/distlib/util.py
-@@ -589,7 +589,11 @@ def ensure_dir(self, path):
- self.dirs_created.add(path)
-
- def byte_compile(self, path, optimize=False, force=False, prefix=None, hashed_invalidation=False):
-- dpath = cache_from_source(path, not optimize)
-+ if not optimize:
-+ optimization = ''
-+ else:
-+ optimization = '1'
-+ dpath = cache_from_source(path, optimization=optimization)
- logger.info('Byte-compiling %s to %s', path, dpath)
- if not self.dry_run:
- if force or self.newer(path, dpath):
-diff --git a/tests/test_util.py b/tests/test_util.py
-index d8694a9..d4bb572 100644
---- a/tests/test_util.py
-+++ b/tests/test_util.py
-@@ -652,7 +652,7 @@ def test_is_writable(self):
-
- def test_byte_compile(self):
- path = os.path.join(self.workdir, 'hello.py')
-- dpath = cache_from_source(path, True)
-+ dpath = cache_from_source(path, optimization='')
- self.fileop.write_text_file(path, 'print("Hello, world!")', 'utf-8')
- self.fileop.byte_compile(path, optimize=False)
- self.assertTrue(os.path.exists(dpath))
diff --git a/fix-test-scripts.patch b/fix-test-scripts.patch
deleted file mode 100644
index 814768a..0000000
--- a/fix-test-scripts.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 895bd27ce44a78c1bd70031c3529b0a6a152187b Mon Sep 17 00:00:00 2001
-From: Vinay Sajip <vinay_sajip@yahoo.co.uk>
-Date: Fri, 18 Jul 2025 07:59:29 +0100
-Subject: [PATCH] Fix #251: Use more appropriate function in test.
-
----
- CHANGES.rst | 4 ++++
- tests/test_scripts.py | 6 ++----
- 2 files changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/CHANGES.rst b/CHANGES.rst
-index 290be09..d6aefc2 100644
---- a/CHANGES.rst
-+++ b/CHANGES.rst
-@@ -6,6 +6,10 @@ Change log for ``distlib``
-
- Released: Not yet.
-
-+- tests
-+
-+ - Fix #251: Change test function following a reorganization which happened in the Python stdlib.
-+
- 0.4.0
- ~~~~~
-
-diff --git a/tests/test_scripts.py b/tests/test_scripts.py
-index a93a08a..99417c5 100644
---- a/tests/test_scripts.py
-+++ b/tests/test_scripts.py
-@@ -341,10 +341,8 @@ class ScriptTestCase(DistlibTestCase):
- def test_script_run(self):
- if sys.version_info[:2] < (3, 13):
- target = 'cgi:print_directory'
-- elif os.name != 'nt':
-- target = 'test.support.interpreters:list_all'
- else:
-- raise unittest.SkipTest('test not available on Windows for Python >= 3.13')
-+ target = 'logging:getHandlerNames'
- files = self.maker.make('test = %s' % target)
- self.assertEqual(len(files), 2)
- p = subprocess.Popen([sys.executable, files[0]], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
-@@ -353,7 +351,7 @@ class ScriptTestCase(DistlibTestCase):
- self.assertIn(b'<H3>Current Working Directory:</H3>', stdout)
- self.assertIn(os.getcwd().encode('utf-8'), stdout)
- else:
-- self.assertIn(b'[Interpreter(0)]', stderr)
-+ self.assertIn(b'frozenset(', stderr)
- self.assertEqual(p.returncode, 1)
-
- @unittest.skipUnless(os.name == 'posix', 'Test only valid for POSIX')
---
-2.50.1
-
diff --git a/python-distlib.spec b/python-distlib.spec
index dc7ff80..e281332 100644
--- a/python-distlib.spec
+++ b/python-distlib.spec
@@ -2,7 +2,7 @@
%bcond_without check
Name: python-distlib
-Version: 0.4.0
+Version: 0.4.3
Release: %autorelease
Summary: Low-level components of distutils2/packaging, augmented with higher-level APIs
@@ -11,16 +11,6 @@ License: LicenseRef-Callaway-Python
URL: https://readthedocs.org/projects/distlib/
Source0: %pypi_source %{srcname} %{version}
-# Compatibility with python 3.14
-# Fixed upstream:
-# https://github.com/pypa/distlib/commit/6286442857de9f734686d08f0e59ca8048ee357a
-Patch: fix-test-scripts.patch
-
-# Compatibility with python 3.15
-# Sent upstream:
-# https://github.com/pypa/distlib/pull/256
-Patch: fix-python3.15-ftbfs.patch
-
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
diff --git a/sources b/sources
index e3c71b3..a13f551 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (distlib-0.4.0.tar.gz) = ed5ff66efe8dee613810e27415751faa9b3e11b3ab69bafba360bedce9e3a933e9fd00adf3fbc0c91abce1cbda560af7babe70b24b8a8055607ea2ac2b0f6223
+SHA512 (distlib-0.4.3.tar.gz) = 0f6b44640cbfa9bccef10c6cdeedaec8582a2bd5878fcbc803a6feedb81daee5f28506004e23749f3eba206199cadae99808dbcd956066ba948cde455301fd74
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-16 16:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 16:11 [rpms/python-distlib] rawhide: Update to 0.4.3 (rhbz#2483940) Lumir Balhar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox