17
0

2 Commits

Author SHA256 Message Date
b271a56f8f Accepting request 1273541 from devel:languages:python
- Correct requirements to reflect reality.
- Switch to pyproject and pytest macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1273541
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonlines?expand=0&rev=6
2025-04-30 17:04:28 +00:00
539d38bf3d - Correct requirements to reflect reality.
- Switch to pyproject and pytest macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonlines?expand=0&rev=10
2025-04-30 02:48:17 +00:00
2 changed files with 19 additions and 10 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Apr 30 02:47:56 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Correct requirements to reflect reality.
- Switch to pyproject and pytest macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Fri Dec 8 09:47:50 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-jsonlines
#
# 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,25 +16,26 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
%{?sle15_python_module_pythons}
Name: python-jsonlines
Version: 4.0.0
Release: 0
Summary: Library with helpers for the jsonlines file format
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/wbolster/jsonlines
Source: https://github.com/wbolster/jsonlines/archive/%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module attrs >= 19.2.0}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module ujson}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
Requires: python-ujson
Requires: python-attrs >= 19.2.0
Recommends: python-ujson
%python_subpackages
%description
@@ -44,18 +45,19 @@ Python library to simplify working with jsonlines_ and ndjson_ data.
%setup -q -n jsonlines-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE.rst
%{python_sitelib}/*
%{python_sitelib}/jsonlines
%{python_sitelib}/jsonlines-%{version}.dist-info
%changelog