From 518a387c74cf188ef8dc5604f22b10155f80083a07054eda556edf93a54f2d45 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 1 Mar 2024 03:59:57 +0000 Subject: [PATCH] - Update to 1.0.0: * Rewrite the entire library using dataclasses. * Add more rigorous testing. - Switch to autosetup and pyproject macros. - No more greedy globs in %files. - Drop patch ignore-hashlib-case.patch, no longer required. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-plette?expand=0&rev=11 --- ignore-hashlib-case.patch | 25 ------------------------- plette-0.4.4.tar.gz | 3 --- plette-1.0.0.tar.gz | 3 +++ python-plette.changes | 10 ++++++++++ python-plette.spec | 14 +++++--------- 5 files changed, 18 insertions(+), 37 deletions(-) delete mode 100644 ignore-hashlib-case.patch delete mode 100644 plette-0.4.4.tar.gz create mode 100644 plette-1.0.0.tar.gz diff --git a/ignore-hashlib-case.patch b/ignore-hashlib-case.patch deleted file mode 100644 index cb297a2..0000000 --- a/ignore-hashlib-case.patch +++ /dev/null @@ -1,25 +0,0 @@ ---- plette-0.2.2/tests/test_lockfiles.py.orig 2019-03-02 18:27:26.997699977 +0700 -+++ plette-0.2.2/tests/test_lockfiles.py 2019-03-02 18:56:31.174560822 +0700 -@@ -111,7 +111,10 @@ - "verify_ssl": True, - }) - -- assert lockfile.meta.hash._data == {"sha256": pipfile_hash_value} -+ assert lockfile.meta.hash._data in [ -+ {"sha256": pipfile_hash_value}, -+ {"SHA256": pipfile_hash_value}, -+ ] - assert lockfile.meta.requires._data == {"python_version": "3.7"} - assert lockfile.meta.sources._data == [ - { ---- plette-0.2.2/tests/test_models.py.orig 2019-03-02 18:55:33.342133583 +0700 -+++ plette-0.2.2/tests/test_models.py 2019-03-02 18:56:01.902344580 +0700 -@@ -13,7 +13,7 @@ - def test_hash_from_hash(): - v = hashlib.md5(b"foo") - h = models.Hash.from_hash(v) -- assert h.name == "md5" -+ assert h.name in ["md5", "MD5"] - assert h.value == "acbd18db4cc2f85cedef654fccc4a4d8" - - diff --git a/plette-0.4.4.tar.gz b/plette-0.4.4.tar.gz deleted file mode 100644 index d282b75..0000000 --- a/plette-0.4.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6606fd288bc2d97aac4ddd4bd278f43e41f7545efd63ee358405e6256030f9e1 -size 36359 diff --git a/plette-1.0.0.tar.gz b/plette-1.0.0.tar.gz new file mode 100644 index 0000000..5150ffc --- /dev/null +++ b/plette-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b166ea796775475831dea46dd7cd5c426aa98c018528c766ea0a73bbe21311c6 +size 54297 diff --git a/python-plette.changes b/python-plette.changes index 903e33e..eadcf55 100644 --- a/python-plette.changes +++ b/python-plette.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Mar 1 03:56:27 UTC 2024 - Steve Kowalik + +- Update to 1.0.0: + * Rewrite the entire library using dataclasses. + * Add more rigorous testing. +- Switch to autosetup and pyproject macros. +- No more greedy globs in %files. +- Drop patch ignore-hashlib-case.patch, no longer required. + ------------------------------------------------------------------- Fri Jan 6 17:11:13 UTC 2023 - Yogalakshmi Arunachalam diff --git a/python-plette.spec b/python-plette.spec index b606817..5e614fe 100644 --- a/python-plette.spec +++ b/python-plette.spec @@ -1,7 +1,7 @@ # # spec file for package python-plette # -# 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,13 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-plette -Version: 0.4.4 +Version: 1.0.0 Release: 0 Summary: Structured Pipfile and Pipfile.lock models License: ISC -Group: Development/Languages/Python URL: https://github.com/sarugaku/plette Source: https://github.com/sarugaku/plette/archive/refs/tags/v%{version}.tar.gz#/plette-%{version}.tar.gz -# See https://github.com/sarugaku/plette/issues/8 -Patch0: ignore-hashlib-case.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 61.0.0} BuildRequires: %{python_module wheel} @@ -47,8 +43,7 @@ BuildRequires: %{python_module tomlkit} Structured Pipfile and Pipfile.lock models. %prep -%setup -q -n plette-%{version} -%patch0 -p1 +%autosetup -p1 -n plette-%{version} %build %pyproject_wheel @@ -64,6 +59,7 @@ Structured Pipfile and Pipfile.lock models. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/plette +%{python_sitelib}/plette-%{version}.dist-info %changelog