15
0
forked from pool/python-plette

- 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
This commit is contained in:
2024-03-01 03:59:57 +00:00
committed by Git OBS Bridge
parent 734cbf5b59
commit 518a387c74
5 changed files with 18 additions and 37 deletions

View File

@@ -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"

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6606fd288bc2d97aac4ddd4bd278f43e41f7545efd63ee358405e6256030f9e1
size 36359

3
plette-1.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b166ea796775475831dea46dd7cd5c426aa98c018528c766ea0a73bbe21311c6
size 54297

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Mar 1 03:56:27 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <yarunachalam@suse.com>

View File

@@ -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