From a885dbaefc64ef563673f0902dab7b35f041cc274bec8249968e9475c48ca972 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 14 Nov 2024 03:51:43 +0000 Subject: [PATCH] - Skip a test broken by importlib_metadata 8.5+. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twine?expand=0&rev=46 --- python-twine.changes | 5 +++++ python-twine.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-twine.changes b/python-twine.changes index 80f4e8c..8c0771f 100644 --- a/python-twine.changes +++ b/python-twine.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 14 03:51:14 UTC 2024 - Steve Kowalik + +- Skip a test broken by importlib_metadata 8.5+. + ------------------------------------------------------------------- Fri Oct 11 11:50:51 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-twine.spec b/python-twine.spec index 0cb50fd..e4fd0e1 100644 --- a/python-twine.spec +++ b/python-twine.spec @@ -57,6 +57,7 @@ Requires: python-requests >= 2.20 Requires: python-requests-toolbelt >= 0.8.0 Requires: python-rfc3986 >= 1.4.0 Requires: python-rich >= 12.0.0 +Requires: python-urllib3 >= 1.26 Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch @@ -85,7 +86,8 @@ sed -i '1s/^#!.*//' twine/__main__.py # do not run integration tests rm tests/test_integration.py # test_check_status_code_for_wrong_repo_url is online test -%pytest -k 'not test_check_status_code_for_wrong_repo_url' +# test_package_from_egg broken by importlib_metadata 8.5+ +%pytest -k 'not (test_check_status_code_for_wrong_repo_url or test_package_from_egg)' %post %python_install_alternative twine @@ -98,6 +100,6 @@ rm tests/test_integration.py %license LICENSE %python_alternative %{_bindir}/twine %{python_sitelib}/twine -%{python_sitelib}/twine-%{version}*-info +%{python_sitelib}/twine-%{version}.dist-info %changelog