Accepting request 1099747 from devel:languages:python

- Clean up the SPEC file.
- Switch to %pyproject_* macros.

- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1099747
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-json-logger?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2023-07-25 09:49:12 +00:00 committed by Git OBS Bridge
commit 941b688c22
2 changed files with 21 additions and 8 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Jul 20 13:09:51 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up the SPEC file.
- Switch to %pyproject_* macros.
-------------------------------------------------------------------
Wed Jul 19 13:18:33 UTC 2023 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Wed May 3 09:09:17 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -16,8 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-python-json-logger
Version: 2.0.7
Release: 0
@ -26,9 +25,10 @@ License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/madzak/python-json-logger
Source: https://files.pythonhosted.org/packages/source/p/python-json-logger/python-json-logger-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
BuildArch: noarch
%python_subpackages
@ -36,13 +36,14 @@ BuildArch: noarch
A python library adding a json log formatter.
%prep
%setup -q -n python-json-logger-%{version}
%autosetup -p1 -n python-json-logger-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest discover -v
@ -50,6 +51,7 @@ A python library adding a json log formatter.
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/python_json_logger-%{version}*-info
%{python_sitelib}/pythonjsonlogger
%changelog