forked from pool/python-distlib
Compare commits
20 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 568290d443 | |||
| 17d0d08b16 | |||
| f82de816fc | |||
| 1722d29368 | |||
| 8d45b0fbdd | |||
| 7ee9e54174 | |||
| 8191770fe5 | |||
| 43224606ed | |||
| ffdb3b18b2 | |||
| a091af6255 | |||
| b9f0bdef8e | |||
| ffe94f9b42 | |||
| 50620f9942 | |||
| d1efed1032 | |||
| 4112e1bae4 | |||
| 1457850bf0 | |||
| b0f562856a | |||
| c702558621 | |||
| 949caac42e | |||
| e75c0cdce5 |
BIN
distlib-0.3.8.tar.gz
(Stored with Git LFS)
BIN
distlib-0.3.8.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
distlib-0.4.0.tar.gz
Normal file
3
distlib-0.4.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:feec40075be03a04501a973d81f633735b4b69f98b05450592310c0f401a4e0d
|
||||
size 614605
|
||||
@@ -1,22 +0,0 @@
|
||||
From 1c08845b05d022692252ed45cb07e9cb9647caac Mon Sep 17 00:00:00 2001
|
||||
From: Vinay Sajip <vinay_sajip@yahoo.co.uk>
|
||||
Date: Wed, 14 Feb 2024 14:46:14 +0000
|
||||
Subject: [PATCH] Fix #214: Update representation of interpreter in test.
|
||||
|
||||
---
|
||||
tests/test_scripts.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_scripts.py b/tests/test_scripts.py
|
||||
index 5c38687..74ee647 100644
|
||||
--- a/tests/test_scripts.py
|
||||
+++ b/tests/test_scripts.py
|
||||
@@ -340,7 +340,7 @@ def test_script_run(self):
|
||||
self.assertIn(b'<H3>Current Working Directory:</H3>', stdout)
|
||||
self.assertIn(os.getcwd().encode('utf-8'), stdout)
|
||||
else:
|
||||
- self.assertIn(b'[Interpreter(id=0, isolated=None)]', stderr)
|
||||
+ self.assertIn(b'[Interpreter(0)]', stderr)
|
||||
self.assertEqual(p.returncode, 1)
|
||||
|
||||
@unittest.skipUnless(os.name == 'posix', 'Test only valid for POSIX')
|
||||
51
py314.patch
Normal file
51
py314.patch
Normal file
@@ -0,0 +1,51 @@
|
||||
From 6286442857de9f734686d08f0e59ca8048ee357a 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 ++++
|
||||
docs/tutorial.rst | 3 +--
|
||||
tests/test_scripts.py | 6 ++----
|
||||
3 files changed, 7 insertions(+), 6 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 @@ def test_dry_run(self):
|
||||
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 @@ def test_script_run(self):
|
||||
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')
|
||||
@@ -1,3 +1,36 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 8 13:34:53 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Add py314.patch to fix tests with Python 3.14
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 23 09:15:41 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 0.4.0
|
||||
* Add the ``interpret_parsed`` function.
|
||||
* Fix #238: Add build tag to wheel metadata if specified.
|
||||
* Fix #243: Update to support free-threading version of Python (3.13t).
|
||||
* Fix #246: Support subdirectories in the dist-info directory.
|
||||
Thanks to Pieter P for the patch.
|
||||
* Fix #248: Fix path normalisation issue caused by the fix for #246.
|
||||
* Move import in script wrapper to "if __name__ == 'main'" clause.
|
||||
* Fix #245: Skip test_package_data if a SKIP_EXT_PACKAGE_DATA
|
||||
environment variable is present.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 4 13:16:38 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 0.3.9
|
||||
* Merge #215: preload script wrappers on Windows to assist with a pip issue (thanks,
|
||||
Paul Moore).
|
||||
* Fix #220: Remove duplicated newline in shebang of windows launcher (thanks. A2uria).
|
||||
* Fix #230: Add handling for cross-compilation environments (thanks, Russell Keith-Magee).
|
||||
* Fix #224: Do not use the absolute path to cache wheel extensions (thanks, Stewart Miles).
|
||||
* Fix #222: Support mounting wheels that use extensions without an EXTENSIONS file (thanks,
|
||||
Stewart Miles).
|
||||
* Fix #225: Add support for wheel compatibility with the limited API (thanks, Stewart Miles).
|
||||
- Drop py313-interpreter-repr.patch, merged upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 1 08:04:02 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-distlib
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,13 +18,14 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-distlib
|
||||
Version: 0.3.8
|
||||
Version: 0.4.0
|
||||
Release: 0
|
||||
Summary: Distribution utilities
|
||||
License: Python-2.0
|
||||
URL: https://github.com/pypa/distlib
|
||||
Source: https://files.pythonhosted.org/packages/source/d/distlib/distlib-%{version}.tar.gz
|
||||
Patch1: https://github.com/pypa/distlib/commit/1c08845b05d022692252ed45cb07e9cb9647caac.patch#/py313-interpreter-repr.patch
|
||||
# PATCH-FIX-UPSTREAM https://github.com/pypa/distlib/commit/6286442857de9f734686d08f0e59ca8048ee357a Fix #251: Use more appropriate function in test.
|
||||
Patch0: py314.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module testsuite}
|
||||
|
||||
Reference in New Issue
Block a user