forked from pool/python-twine
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 1d16a64fac | |||
| c959b126b7 | |||
| c4a33157ea | |||
| d7fa8f0508 |
@@ -1,3 +1,28 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 18 01:35:42 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 6.2.0:
|
||||||
|
* Features:
|
||||||
|
+ Refresh short-lived PyPI token in long running Trusted Publishing
|
||||||
|
uploads.
|
||||||
|
* Bugfixes
|
||||||
|
+ Fix compatibility kludge for invalid License-File metadata entries
|
||||||
|
emitted by build backends to work also with packaging version 24.0.
|
||||||
|
+ Fix a couple of incorrectly rendered error messages.
|
||||||
|
+ twine now enforces keyring >= 21.2.0.
|
||||||
|
+ twine now catches configparser.Error to prevent accidental leaks of
|
||||||
|
secret tokens or passwords to the user's console.
|
||||||
|
* Deprecations and Removals:
|
||||||
|
+ Remove hacks that support --skip-existing for indexes other than PyPI
|
||||||
|
and TestPyPI.
|
||||||
|
+ Remove support for MD5 digests during uploads.
|
||||||
|
- Drop patch skip-unsupported-Metadata-Version-test.patch, merged upstream.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 25 14:24:32 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jan 25 21:08:56 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
Sat Jan 25 21:08:56 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-twine
|
# spec file for package python-twine
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,23 +16,25 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-twine
|
Name: python-twine
|
||||||
Version: 6.1.0
|
Version: 6.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Collection of utilities for interacting with PyPI
|
Summary: Collection of utilities for interacting with PyPI
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/pypa/twine
|
URL: https://github.com/pypa/twine
|
||||||
Source: https://files.pythonhosted.org/packages/source/t/twine/twine-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/t/twine/twine-%{version}.tar.gz
|
||||||
Patch0: 0001-remove-disable-socket-pytest-opt.patch
|
Patch0: 0001-remove-disable-socket-pytest-opt.patch
|
||||||
# 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 id}
|
BuildRequires: %{python_module id}
|
||||||
BuildRequires: %{python_module importlib-metadata >= 3.6}
|
BuildRequires: %{python_module importlib-metadata >= 3.6}
|
||||||
BuildRequires: %{python_module jaraco.envs}
|
BuildRequires: %{python_module jaraco.envs}
|
||||||
BuildRequires: %{python_module jaraco.packaging >= 9}
|
BuildRequires: %{python_module jaraco.packaging >= 9}
|
||||||
BuildRequires: %{python_module keyring >= 15.1}
|
BuildRequires: %{python_module keyring >= 21.2}
|
||||||
BuildRequires: %{python_module munch}
|
BuildRequires: %{python_module munch}
|
||||||
BuildRequires: %{python_module packaging >= 24.2}
|
BuildRequires: %{python_module packaging >= 24.2}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
@@ -52,7 +54,7 @@ BuildRequires: %{python_module wheel}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-id
|
Requires: python-id
|
||||||
Requires: python-keyring >= 15.1
|
Requires: python-keyring >= 21.2
|
||||||
Requires: python-packaging
|
Requires: python-packaging
|
||||||
Requires: python-readme_renderer >= 35.0
|
Requires: python-readme_renderer >= 35.0
|
||||||
Requires: python-requests >= 2.20
|
Requires: python-requests >= 2.20
|
||||||
@@ -60,9 +62,14 @@ Requires: python-requests-toolbelt >= 0.8.0
|
|||||||
Requires: python-rfc3986 >= 1.4.0
|
Requires: python-rfc3986 >= 1.4.0
|
||||||
Requires: python-rich >= 12.0.0
|
Requires: python-rich >= 12.0.0
|
||||||
Requires: python-urllib3 >= 1.26
|
Requires: python-urllib3 >= 1.26
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -97,6 +104,9 @@ rm tests/test_integration.py
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative twine
|
%python_uninstall_alternative twine
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative twine
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc AUTHORS README.rst
|
%doc AUTHORS README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
tests/test_package.py | 10 +++++-----
|
|
||||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
Index: twine-6.1.0/tests/test_package.py
|
|
||||||
===================================================================
|
|
||||||
--- twine-6.1.0.orig/tests/test_package.py
|
|
||||||
+++ twine-6.1.0/tests/test_package.py
|
|
||||||
@@ -349,11 +349,6 @@ def test_fips_metadata_excludes_md5_and_
|
|
||||||
"read_data, exception_message",
|
|
||||||
[
|
|
||||||
pytest.param(
|
|
||||||
- b"Metadata-Version: 102.3\nName: test-package\nVersion: 1.0.0\n",
|
|
||||||
- "'102.3' is not a valid metadata version",
|
|
||||||
- id="unsupported Metadata-Version",
|
|
||||||
- ),
|
|
||||||
- pytest.param(
|
|
||||||
b"Metadata-Version: 2.3\nName: test-package\nVersion: UNKNOWN\n",
|
|
||||||
"'UNKNOWN' is invalid for 'version'",
|
|
||||||
id="invalid Version",
|
|
||||||
BIN
twine-6.1.0.tar.gz
(Stored with Git LFS)
BIN
twine-6.1.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
twine-6.2.0.tar.gz
Normal file
3
twine-6.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e5ed0d2fd70c9959770dce51c8f39c8945c574e18173a7b81802dab51b4b75cf
|
||||||
|
size 172262
|
||||||
Reference in New Issue
Block a user