From 5bf22a6aa18e16e24af500591786062b1478d88d1548d40ee04d2588658e9ad7 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 29 Jun 2024 12:59:30 +0000 Subject: [PATCH] - update to 5.1.0: * Add the experimental --attestations flag. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twine?expand=0&rev=42 --- python-twine.changes | 6 +++++ python-twine.spec | 3 +-- skip-unsupported-Metadata-Version-test.patch | 23 +++++++++----------- twine-5.0.0.tar.gz | 3 --- twine-5.1.0.tar.gz | 3 +++ 5 files changed, 20 insertions(+), 18 deletions(-) delete mode 100644 twine-5.0.0.tar.gz create mode 100644 twine-5.1.0.tar.gz diff --git a/python-twine.changes b/python-twine.changes index 8be059b..b6cf6f0 100644 --- a/python-twine.changes +++ b/python-twine.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jun 29 12:59:17 UTC 2024 - Dirk Müller + +- update to 5.1.0: + * Add the experimental --attestations flag. + ------------------------------------------------------------------- Wed Apr 10 08:39:37 UTC 2024 - Ana Guerrero diff --git a/python-twine.spec b/python-twine.spec index 685ded4..f4bb6ef 100644 --- a/python-twine.spec +++ b/python-twine.spec @@ -16,10 +16,9 @@ # -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-twine -Version: 5.0.0 +Version: 5.1.0 Release: 0 Summary: Collection of utilities for interacting with PyPI License: Apache-2.0 diff --git a/skip-unsupported-Metadata-Version-test.patch b/skip-unsupported-Metadata-Version-test.patch index 03b5bac..b0767b0 100644 --- a/skip-unsupported-Metadata-Version-test.patch +++ b/skip-unsupported-Metadata-Version-test.patch @@ -2,22 +2,19 @@ tests/test_package.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---- a/tests/test_package.py -+++ b/tests/test_package.py -@@ -339,11 +339,11 @@ def test_fips_metadata_excludes_md5_and_ - @pytest.mark.parametrize( +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: 2.3\nName: test-package\nVersion: 1.0.0\n", + 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: test-package\nVersion: 1.0.0\n", -+# "Name, Version", -+# id="unsupported Metadata-Version", -+# ), - pytest.param( - b"Metadata-Version: 2.2\nName: UNKNOWN\nVersion: UNKNOWN\n", +- pytest.param( + b"Metadata-Version: 2.3\nName: UNKNOWN\nVersion: UNKNOWN\n", "Name, Version", + id="missing Name and Version", diff --git a/twine-5.0.0.tar.gz b/twine-5.0.0.tar.gz deleted file mode 100644 index 96cbc53..0000000 --- a/twine-5.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:89b0cc7d370a4b66421cc6102f269aa910fe0f1861c124f573cf2ddedbc10cf4 -size 222119 diff --git a/twine-5.1.0.tar.gz b/twine-5.1.0.tar.gz new file mode 100644 index 0000000..24a600c --- /dev/null +++ b/twine-5.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d74770c88c4fcaf8134d2a6a9d863e40f08255ff7d8e2acb3cbbd57d25f6e9d +size 224997