forked from pool/python-jsonpath-ng
Accepting request 1145494 from home:kairu:branches:devel:languages:python
- Switch to Python 3.11 build. - Remove build dependency oslotest (pull request #137). OBS-URL: https://build.opensuse.org/request/show/1145494 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpath-ng?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
47715b46e0
commit
8ca8d8f15c
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 09 14:50:00 UTC 2024 - Christian Keil <keil@dfn-cert.de>
|
||||
|
||||
- Switch to Python 3.11 build.
|
||||
- Remove build dependency oslotest (pull request #137).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 22 23:44:48 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-jsonpath-ng
|
||||
Version: 1.6.1
|
||||
Release: 0
|
||||
@@ -38,7 +39,6 @@ BuildArch: noarch
|
||||
BuildRequires: %{python_module ply}
|
||||
#
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: python3-oslotest
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -50,7 +50,6 @@ operators and providing clear AST for metaprogramming.
|
||||
%prep
|
||||
%setup -q -n jsonpath-ng-%{version}
|
||||
sed -i '1{/^#!/d}' jsonpath_ng/bin/jsonpath.py
|
||||
cp tests/test_jsonpath_rw_ext.py /tmp
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
@@ -67,13 +66,7 @@ cp tests/test_jsonpath_rw_ext.py /tmp
|
||||
%python_uninstall_alternative jsonpath_ng
|
||||
|
||||
%check
|
||||
export PYTHONPATH=${CWD}
|
||||
%{python_expand cp /tmp/test_jsonpath_rw_ext.py tests/
|
||||
if [[ ! -d %{buildroot}%{$python_sitelib}/oslotest ]]; then
|
||||
rm tests/test_jsonpath_rw_ext.py
|
||||
fi
|
||||
$python -m pytest
|
||||
}
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user