forked from pool/python-jsonformatter
- 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
This commit is contained in:
3
jsonformatter-0.3.4.tar.gz
Normal file
3
jsonformatter-0.3.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:af71ae1534a80d6f60f8d5ee7bfa70c2e45389ed803ed94239f4305b7c68105d
|
||||
size 21289
|
||||
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 28 04:53:42 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <alarrosa@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user