From cd25949aee4c6afedaead4cc369c4057dc460b04049478da80fb82b7562cf682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 May 2025 11:58:11 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dirtyjson?expand=0&rev=8 --- python-dirtyjson.changes | 5 +++++ python-dirtyjson.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-dirtyjson.changes b/python-dirtyjson.changes index 55ba818..9e0fc89 100644 --- a/python-dirtyjson.changes +++ b/python-dirtyjson.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 11:58:00 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Feb 10 10:19:46 UTC 2023 - Dirk Müller diff --git a/python-dirtyjson.spec b/python-dirtyjson.spec index c5d432c..6095deb 100644 --- a/python-dirtyjson.spec +++ b/python-dirtyjson.spec @@ -1,7 +1,7 @@ # # spec file for package python-dirtyjson # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-dirtyjson Version: 1.0.8 Release: 0 @@ -25,8 +24,10 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/codecobblers/dirtyjson Source: https://files.pythonhosted.org/packages/source/d/dirtyjson/dirtyjson-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -39,10 +40,10 @@ JSON decoder for Python that can extract data from dirty input. %autosetup -p1 -n dirtyjson-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand rm -r %{buildroot}%{$python_sitelib}/dirtyjson/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -52,6 +53,7 @@ JSON decoder for Python that can extract data from dirty input. %files %{python_files} %doc CHANGES.txt README.rst %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/dirtyjson +%{python_sitelib}/dirtyjson-%{version}*-info %changelog