From 8ca8d8f15c7ecfe44fae9bfd3a245a38ffcbfdd3636ff7f02e13cf90d2951160 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Sun, 11 Feb 2024 04:07:04 +0000 Subject: [PATCH] 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 --- python-jsonpath-ng.changes | 6 ++++++ python-jsonpath-ng.spec | 11 ++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/python-jsonpath-ng.changes b/python-jsonpath-ng.changes index f089d22..0482dff 100644 --- a/python-jsonpath-ng.changes +++ b/python-jsonpath-ng.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Feb 09 14:50:00 UTC 2024 - Christian Keil + +- Switch to Python 3.11 build. +- Remove build dependency oslotest (pull request #137). + ------------------------------------------------------------------- Mon Jan 22 23:44:48 UTC 2024 - Dirk Müller diff --git a/python-jsonpath-ng.spec b/python-jsonpath-ng.spec index f7b6032..1f6f395 100644 --- a/python-jsonpath-ng.spec +++ b/python-jsonpath-ng.spec @@ -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