From 86908abb9a3a62c52f030abf26f9042bca0269283034790abed53e1d1075711a Mon Sep 17 00:00:00 2001 From: Dmitry Roshchin Date: Wed, 2 Oct 2024 11:01:45 +0000 Subject: [PATCH] Accepting request 1205170 from home:badshah400:Staging * Add python-testsuite as BuildRequires for test flavor. * Add source dir into PYTHONPATH to allow importing of test helper modules. OBS-URL: https://build.opensuse.org/request/show/1205170 OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics?expand=0&rev=40 --- python-Mathics.changes | 7 +++++++ python-Mathics.spec | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-Mathics.changes b/python-Mathics.changes index 01e12e2..d0c5fdd 100644 --- a/python-Mathics.changes +++ b/python-Mathics.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Oct 1 23:18:32 UTC 2024 - Atri Bhattacharya + +- Add python-testsuite as BuildRequires for test flavor. +- Add source dir into PYTHONPATH to allow importing of test helper + modules. + ------------------------------------------------------------------- Mon Apr 8 05:16:21 UTC 2024 - Atri Bhattacharya diff --git a/python-Mathics.spec b/python-Mathics.spec index 87888d9..d938dc4 100644 --- a/python-Mathics.spec +++ b/python-Mathics.spec @@ -67,7 +67,7 @@ Requires: python-requests Requires: python-sympy >= 1.10.1 Requires: (python-Pillow >= 9.2 if python-base >= 3.7) Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Recommends: python-scikit-image >= 0.17 %if %{with test} # SECTION For tests @@ -81,6 +81,7 @@ BuildRequires: %{python_module palettable} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} BuildRequires: %{python_module scikit-image >= 0.17} +BuildRequires: %{python_module testsuite} BuildRequires: %{python_module typing-extensions} # /SECTION %endif @@ -88,7 +89,8 @@ Provides: python-Mathics3 = %{version} %python_subpackages %description -Mathics is a general-purpose computer algebra system (CAS). It is meant to be a free, lightweight alternative to Mathematica. +Mathics is a general-purpose computer algebra system (CAS). It is meant to be a +free, lightweight alternative to Mathematica. %prep %autosetup -p1 -n %{pyname}-%{version} @@ -119,6 +121,7 @@ export USE_CYTHON=0 %check # Home page tests require django server up and running, test_gudermannian needs network access # test_image: https://github.com/Mathics3/mathics-core/issues/837 +PYTHONPATH+=:${PWD} %pytest -k 'not (test_home_page or test_gudermannian or test_image)' %endif