Sync from SUSE:SLFO:Main python-twine revision b80573941bd177969b54c87832a50ad6
This commit is contained in:
parent
632dbc582f
commit
4676b0c27b
@ -6,8 +6,9 @@ Only in twine-3.4.1: .pytest_cache
|
||||
|
||||
--- a/pytest.ini
|
||||
+++ b/pytest.ini
|
||||
@@ -6,4 +6,3 @@ filterwarnings=
|
||||
@@ -6,5 +6,4 @@ filterwarnings=
|
||||
ignore:the imp module is deprecated::setuptools
|
||||
|
||||
addopts =
|
||||
- --disable-socket
|
||||
--ignore-glob '*integration*.py'
|
||||
|
@ -1,13 +0,0 @@
|
||||
---
|
||||
setup.cfg | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -1,5 +1,5 @@
|
||||
[metadata]
|
||||
-license_file = LICENSE
|
||||
+license_files = LICENSE
|
||||
name = twine
|
||||
author = Donald Stufft and individual contributors
|
||||
author_email = donald@stufft.io
|
@ -1,3 +1,35 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 11 11:50:51 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 5.1.1
|
||||
* Resolve DeprecationWarnings when extracting ``twine`` metadata.
|
||||
* Fix bug for Repository URLs with auth where the port was lost. When attempting
|
||||
to prevent printing authentication credentials in URLs provided with username
|
||||
and password, we did not properly handle the case where the URL also contains
|
||||
a port (when reconstructing the URL). This is now handled and tested to
|
||||
ensure no regressions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 29 12:59:17 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 5.1.0:
|
||||
* Add the experimental --attestations flag.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 10 08:39:37 UTC 2024 - Ana Guerrero <ana.guerrero@suse.com>
|
||||
|
||||
- Add BuildRequires on python-jaraco.packaging that was pulled
|
||||
by other Build Requires.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 18 08:14:45 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Update to 5.0.0:
|
||||
- Use email.message instead of cgi as cgi has been deprecated
|
||||
- Remove upstreamed patch license_files.patch
|
||||
- Add skip-unsupported-Metadata-Version-test.patch
|
||||
(gh#pypa/twine#1071) to skip failing test case.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 5 13:44:23 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-twine
|
||||
#
|
||||
# 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,46 +16,47 @@
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-twine
|
||||
Version: 4.0.2
|
||||
Version: 5.1.1
|
||||
Release: 0
|
||||
Summary: Collection of utilities for interacting with PyPI
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/pypa/twine
|
||||
Source: https://files.pythonhosted.org/packages/source/t/twine/twine-%{version}.tar.gz
|
||||
Patch0: 0001-remove-disable-socket-pytest-opt.patch
|
||||
# PATCH-FIX-UPSTREAM license_files.patch gh#pypa/twine!992 mcepl@suse.com
|
||||
# license_file -> license_files
|
||||
Patch1: license_files.patch
|
||||
BuildRequires: %{python_module importlib-metadata}
|
||||
# PATCH-FIX-UPSTREAM skip-unsupported-Metadata-Version-test.patch gh#pypa/twine#1071 mcepl@suse.com
|
||||
# Skip failing test case
|
||||
Patch1: skip-unsupported-Metadata-Version-test.patch
|
||||
BuildRequires: %{python_module importlib-metadata >= 3.6}
|
||||
BuildRequires: %{python_module jaraco.envs}
|
||||
BuildRequires: %{python_module jaraco.packaging >= 9}
|
||||
BuildRequires: %{python_module keyring >= 15.1}
|
||||
BuildRequires: %{python_module munch}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pkginfo >= 1.4.2}
|
||||
BuildRequires: %{python_module pkginfo >= 1.8.1}
|
||||
BuildRequires: %{python_module portend}
|
||||
BuildRequires: %{python_module pretend}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module readme_renderer >= 21.0}
|
||||
BuildRequires: %{python_module readme_renderer >= 35.0}
|
||||
BuildRequires: %{python_module requests >= 2.20}
|
||||
BuildRequires: %{python_module requests-toolbelt >= 0.8.0}
|
||||
BuildRequires: %{python_module rfc3986 >= 1.4.0}
|
||||
BuildRequires: %{python_module rich}
|
||||
BuildRequires: %{python_module setuptools >= 0.7.0}
|
||||
BuildRequires: %{python_module setuptools_scm >= 1.15}
|
||||
BuildRequires: %{python_module rich >= 12.0.0}
|
||||
BuildRequires: %{python_module setuptools >= 45}
|
||||
BuildRequires: %{python_module setuptools_scm >= 6.0}
|
||||
BuildRequires: %{python_module urllib3 >= 1.26.0}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-importlib-metadata
|
||||
Requires: python-importlib-metadata >= 3.6
|
||||
Requires: python-keyring >= 15.1
|
||||
Requires: python-pkginfo >= 1.4.2
|
||||
Requires: python-readme_renderer >= 21.0
|
||||
Requires: python-pkginfo >= 1.8.1
|
||||
Requires: python-readme_renderer >= 35.0
|
||||
Requires: python-requests >= 2.20
|
||||
Requires: python-requests-toolbelt >= 0.8.0
|
||||
Requires: python-rfc3986 >= 1.4.0
|
||||
Requires: python-rich
|
||||
Requires: python-rich >= 12.0.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
|
20
skip-unsupported-Metadata-Version-test.patch
Normal file
20
skip-unsupported-Metadata-Version-test.patch
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
tests/test_package.py | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
Index: twine-5.1.0/tests/test_package.py
|
||||
===================================================================
|
||||
--- twine-5.1.0.orig/tests/test_package.py
|
||||
+++ twine-5.1.0/tests/test_package.py
|
||||
@@ -384,11 +384,6 @@ def test_fips_metadata_excludes_md5_and_
|
||||
"read_data, missing_fields",
|
||||
[
|
||||
pytest.param(
|
||||
- b"Metadata-Version: 102.3\nName: test-package\nVersion: 1.0.0\n",
|
||||
- "Name, Version",
|
||||
- id="unsupported Metadata-Version",
|
||||
- ),
|
||||
- pytest.param(
|
||||
b"Metadata-Version: 2.3\nName: UNKNOWN\nVersion: UNKNOWN\n",
|
||||
"Name, Version",
|
||||
id="missing Name and Version",
|
BIN
twine-4.0.2.tar.gz
(Stored with Git LFS)
BIN
twine-4.0.2.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
twine-5.1.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
twine-5.1.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user