Sync from SUSE:SLFO:Main python-distlib revision c9c5aac11c941ffb75594a7f2b5b5977

This commit is contained in:
Adrian Schröter 2024-12-13 11:20:06 +01:00
parent ae88f602f2
commit 2bf9211fb0
5 changed files with 53 additions and 11 deletions

BIN
distlib-0.3.7.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
distlib-0.3.8.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,22 @@
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')

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon Jul 1 08:04:02 UTC 2024 - Dirk Müller <dmueller@suse.com>
- add py313-interpreter-repr.patch to fix testsuite with python
3.13
-------------------------------------------------------------------
Mon Jul 1 06:03:36 UTC 2024 - Dirk Müller <dmueller@suse.com>
- depend on testsuite
-------------------------------------------------------------------
Tue Dec 19 09:57:22 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.3.8:
* Fix #209: use legacy version implementation for Python
versions.
* Fix #204: use symlinks in venv creation during test.
* Fix #208: handle deprecation removals in Python 3.13.
-------------------------------------------------------------------
Tue Aug 8 11:07:21 UTC 2023 - Dirk Müller <dmueller@suse.com>
@ -53,7 +73,7 @@ Sat Oct 1 12:43:32 UTC 2022 - Dirk Müller <dmueller@suse.com>
Thanks to Pieter Pas for the patch.
- Fixed #169: Removed usage of deprecated imp module in favour of importlib.
- Fixed #172: Compute ABI correctly for Python < 3.8.
-------------------------------------------------------------------
Sat Dec 11 12:07:02 UTC 2021 - Ben Greiner <code@bnavigator.de>
@ -76,7 +96,7 @@ Sun Nov 7 18:22:20 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 0.3.3:
* Removed splituser() function which wasn't used and is deprecated.
* Handle version comparisons correctly in environment markers.
* Handle a single trailing comma following a version.
* Handle a single trailing comma following a version.
* Fix incorrect handling of epochs.
* Reverted handling of tags for Python >= 3.10
(use 310 rather than 3_10). This is because PEP 641 was rejected.
@ -86,7 +106,7 @@ Sun Nov 7 18:22:20 UTC 2021 - Dirk Müller <dmueller@suse.com>
* added entry for SourcelessFileLoader to the finder registry.
* allowed a trailing comma in constraints, to better handle faulty metadata
already on PyPI
- drop python-distlib-2048-bit-key.patch (obsolete)
- drop python-distlib-2048-bit-key.patch (obsolete)
-------------------------------------------------------------------
Wed Feb 10 19:44:20 UTC 2021 - Pedro Monreal <pmonreal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-distlib
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,17 +16,18 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-distlib
Version: 0.3.7
Version: 0.3.8
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
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module testsuite}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -37,8 +38,7 @@ BuildArch: noarch
Python distribution utilities.
%prep
%setup -q -n distlib-%{version}
%autopatch -p1
%autosetup -p1 -n distlib-%{version}
# This test module requires internet access and are unnecessary
sed -i '/from test_locators import LocatorTestCase/d' tests/distlib_tests.py