From c74dc07d623ed18ac76d16dd7eff5c861e6d6dd6d9931f53c7f87b80df70bf49 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 28 Nov 2024 04:54:24 +0000 Subject: [PATCH] - Update to 0.3.4: * Support python 3.13 * fix: python < 3.7 using pip install failed - Use pytest and license macros. - Remove patch remove-failing-test.py, no longer required. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonformatter?expand=0&rev=3 --- jsonformatter-0.3.4.tar.gz | 3 +++ python-jsonformatter.changes | 9 +++++++++ python-jsonformatter.spec | 18 ++++++++---------- 3 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 jsonformatter-0.3.4.tar.gz diff --git a/jsonformatter-0.3.4.tar.gz b/jsonformatter-0.3.4.tar.gz new file mode 100644 index 0000000..5b62ec6 --- /dev/null +++ b/jsonformatter-0.3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af71ae1534a80d6f60f8d5ee7bfa70c2e45389ed803ed94239f4305b7c68105d +size 21289 diff --git a/python-jsonformatter.changes b/python-jsonformatter.changes index 4b112f5..fe6c90a 100644 --- a/python-jsonformatter.changes +++ b/python-jsonformatter.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Nov 28 04:53:42 UTC 2024 - Steve Kowalik + +- Update to 0.3.4: + * Support python 3.13 + * fix: python < 3.7 using pip install failed +- Use pytest and license macros. +- Remove patch remove-failing-test.py, no longer required. + ------------------------------------------------------------------- Mon Apr 8 08:43:00 UTC 2024 - Antonio Larrosa diff --git a/python-jsonformatter.spec b/python-jsonformatter.spec index 59ae8cc..b71c2ef 100644 --- a/python-jsonformatter.spec +++ b/python-jsonformatter.spec @@ -18,19 +18,19 @@ %{?sle15_python_module_pythons} Name: python-jsonformatter -Version: 0.3.2 +Version: 0.3.4 Release: 0 Summary: Python log in json format License: BSD-2-Clause URL: https://github.com/MyColorfulDays/jsonformatter.git Source: https://files.pythonhosted.org/packages/source/j/jsonformatter/jsonformatter-%{version}.tar.gz -Patch0: remove-failing-test.py -BuildRequires: dos2unix -BuildRequires: python-rpm-macros BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: dos2unix BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages @@ -40,8 +40,8 @@ A formatter for python logging that outputs json log %prep %autosetup -p1 -n jsonformatter-%{version} find . -type f -exec chmod -x {} \; -dos2unix jsonformatter/__init__.py -sed -i '1{\,^#!%{_bindir}/env python,d}' jsonformatter/*.py +dos2unix README.md +sed -i '1{\,^#!%{_bindir}/env python,d}' src/jsonformatter/*.py %build %pyproject_wheel @@ -51,13 +51,11 @@ sed -i '1{\,^#!%{_bindir}/env python,d}' jsonformatter/*.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%{python_expand # -export PYTHONPATH=%{buildroot}%{$python_sitelib} -$python test/test.py -} +%pytest -k 'not test_file_config' tests %files %{python_files} %doc README.md +%license LICENSE %{python_sitelib}/jsonformatter %{python_sitelib}/jsonformatter-%{version}.dist-info