From 1f0c0b9caeaf7a17fefc0cf87abbbbe1ea3a71ff847e119a88c89e704e104bef Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 19 Jul 2023 15:47:05 +0000 Subject: [PATCH 1/3] Accepting request 1099523 from home:ecsos:python - Add %{?sle15_python_module_pythons} OBS-URL: https://build.opensuse.org/request/show/1099523 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-json-logger?expand=0&rev=18 --- python-python-json-logger.changes | 5 +++++ python-python-json-logger.spec | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/python-python-json-logger.changes b/python-python-json-logger.changes index a2e6d92..d55d65f 100644 --- a/python-python-json-logger.changes +++ b/python-python-json-logger.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 19 13:18:33 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + ------------------------------------------------------------------- Wed May 3 09:09:17 UTC 2023 - Dirk Müller diff --git a/python-python-json-logger.spec b/python-python-json-logger.spec index 5b4789b..29eeb3c 100644 --- a/python-python-json-logger.spec +++ b/python-python-json-logger.spec @@ -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 From 5cb375f2d9c3ea5dedcb59b7d8700cca84003a38784bfbabd7fc748303ccdc11 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 19 Jul 2023 15:51:28 +0000 Subject: [PATCH 2/3] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-json-logger?expand=0&rev=19 --- python-python-json-logger.spec | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/python-python-json-logger.spec b/python-python-json-logger.spec index 29eeb3c..7d4a6f6 100644 --- a/python-python-json-logger.spec +++ b/python-python-json-logger.spec @@ -25,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 @@ -35,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 @@ -49,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 From 68bf8ec2e8b006e8584b08f433bfe48cb4e2cb48ab95da4b9d4413a5347dac23 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 20 Jul 2023 13:10:11 +0000 Subject: [PATCH 3/3] - Clean up the SPEC file. - Switch to %pyproject_* macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-json-logger?expand=0&rev=20 --- python-python-json-logger.changes | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python-python-json-logger.changes b/python-python-json-logger.changes index d55d65f..17b4a5c 100644 --- a/python-python-json-logger.changes +++ b/python-python-json-logger.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 20 13:09:51 UTC 2023 - Matej Cepl + +- Clean up the SPEC file. +- Switch to %pyproject_* macros. + ------------------------------------------------------------------- Wed Jul 19 13:18:33 UTC 2023 - ecsos