1
0

Compare commits

15 Commits

Author SHA256 Message Date
9e7d932e4e Accepting request 1315032 from science
OBS-URL: https://build.opensuse.org/request/show/1315032
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics?expand=0&rev=25
2025-11-02 21:33:17 +00:00
3f3c44c153 Drop llvmlite optional requirement for tests; fixes test flavour builds for Tumbleweed which are incompatible with latest llvmlite.
OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics?expand=0&rev=53
2025-11-02 04:40:22 +00:00
5c3ff38c0d Accepting request 1302794 from science
OBS-URL: https://build.opensuse.org/request/show/1302794
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics?expand=0&rev=24
2025-09-05 19:43:12 +00:00
ae53d0fa59 * Update to version 9.0.0.
* Enable python 3.13 support.

OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics?expand=0&rev=51
2025-09-04 18:08:52 +00:00
b424218646 Accepting request 1293819 from science
OBS-URL: https://build.opensuse.org/request/show/1293819
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics?expand=0&rev=23
2025-07-17 15:18:28 +00:00
e40b401ceb Fix build failures due to change in dist-info dir naming scheme.
OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics?expand=0&rev=49
2025-07-16 13:44:35 +00:00
89d297b630 Accepting request 1244516 from science
OBS-URL: https://build.opensuse.org/request/show/1244516
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics?expand=0&rev=22
2025-02-10 16:25:57 +00:00
47ba0361e4 * Update to version 8.0.1.
* Re-enable all tests as they have been fixed upstream.
* Bump numpy requirement to allow numpy >= 2 in keeping with upstream.
* Update minimum versions in Requires and BuildRequires.
* Restore tests that now work: test_home_page, test_gudermannian, test_image.
* Drop python-Mathics-sympy1_13.patch: incorporated upstream.

OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics?expand=0&rev=47
2025-02-09 17:25:23 +00:00
2758c6f231 Accepting request 1243369 from science
- Update to version 7.0.0:
- Disable whole swathe of failing tests
  (gh#Mathics3/mathics-core#1346).
- Add python-Mathics-sympy1_13.patch -- Add compatibility for
  tests against sympy >= 1.13 (upstream commits).
- Drop python-Mathics-relax-numpy-versions.patch: upstreamed.
- Switch to pyproject_* macros for build.
- Require numpy < 2 as numpy2 is not supported yet.
- BuildArch: noarch as there are no arch dependent binaries in
  package.
- Enable Python 3.11, 3.12.
- Disable Python 3.13.
- Drop old compatibility macro redefinition.

OBS-URL: https://build.opensuse.org/request/show/1243369
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics?expand=0&rev=21
2025-02-05 16:33:33 +00:00
80517facaa OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics?expand=0&rev=45 2025-02-05 13:03:42 +00:00
ff107912b5 OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics?expand=0&rev=44 2025-02-05 12:37:19 +00:00
dbad5635b8 OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics?expand=0&rev=43 2025-02-05 09:38:29 +00:00
a9e70cfd73 * Update to version 7.0.0.
* Disable whole swathe of failing tests (gh#Mathics3/mathics-core#1346).
* Add python-Mathics-sympy1_13.patch -- Add compatibility for tests against sympy >= 1.13 (upstream commits).
* Switch to pyproject_* macros for build.
* Require numpy < 2 as numpy2 is not supported yet.
* BuildArch: noarch as there are no arch dependent binaries in package.
* Enable Python 3.11, 3.12.
* Disable Python 3.13.
* Drop old compatibility macro redefinition.

OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics?expand=0&rev=42
2025-02-05 06:01:58 +00:00
ad47d9d93e Accepting request 1205184 from science
OBS-URL: https://build.opensuse.org/request/show/1205184
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics?expand=0&rev=20
2024-10-02 19:34:33 +00:00
4f70354902 * 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/package/show/science/python-Mathics?expand=0&rev=40
2024-10-02 11:01:45 +00:00
5 changed files with 110 additions and 48 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b2d4e41008fb92c6ca00cfb345bbeca14b2ac1b447ae592254f48aba56e91d70
size 2974339

3
Mathics3-9.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8b49c156b012dd8ac9ebb08963208a7de3651cd1eb048ec60a4e1f9be586e703
size 3840672

View File

@@ -1,13 +0,0 @@
Index: Mathics3-6.0.4/setup.py
===================================================================
--- Mathics3-6.0.4.orig/setup.py
+++ Mathics3-6.0.4/setup.py
@@ -65,7 +65,7 @@ elif sys.version_info[:2] == (3, 6):
sys.exit(-1)
else:
INSTALL_REQUIRES += [
- "numpy<1.25",
+ "numpy",
"llvmlite",
"sympy>=1.8",
"pillow >= 9.2",

View File

@@ -1,3 +1,81 @@
-------------------------------------------------------------------
Wed Oct 29 13:13:53 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Drop llvmlite optional requirement for tests; fixes test flavour
builds for Tumbleweed which are incompatible with latest
llvmlite.
-------------------------------------------------------------------
Sun Aug 31 04:44:06 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 9.0.0:
* Long list of changes, see
<https://github.com/Mathics3/mathics-core/releases/tag/9.0.0>
- Enable python 3.13 support.
-------------------------------------------------------------------
Thu Jul 10 12:38:54 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Fix build failures due to change in dist-info dir naming scheme.
-------------------------------------------------------------------
Sat Feb 8 15:46:46 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 8.0.1:
* Some work was made on the Mathics3 Kernel to work in Python
3.13.
* The maximum version of numpy was increased to < 2.3 to allow
marimo to work.
* Correct for mismatch between ListExpression and tuple in
DispatchAtom.
* When the result of an evaluation is Symbol`Null, Mathics CLI
now does not show an Out[...]= line, following the behavior of
the WMA CLI.
* Aymptote rendering of platonic solids added.
* Document tagging code handles TeX math mode more completely,
Image tags in PDF properly.
* Updated documentation.
- Re-enable all tests as they have been fixed upstream.
- Bump numpy requirement to allow numpy >= 2 in keeping with
upstream.
-------------------------------------------------------------------
Wed Feb 5 09:09:22 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 8.0.0:
* Too many changes to list, see
<https://github.com/Mathics3/mathics-core/releases/tag/8.0.0>.
- Update minimum versions in Requires and BuildRequires.
- Restore tests that now work: test_home_page, test_gudermannian,
test_image.
- Drop python-Mathics-sympy1_13.patch: incorporated upstream.
-------------------------------------------------------------------
Sun Feb 2 12:44:43 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 7.0.0:
* Long list of changes, see
<https://github.com/Mathics3/mathics-core/releases/tag/7.0.0>
- Disable whole swathe of failing tests
(gh#Mathics3/mathics-core#1346).
- Add python-Mathics-sympy1_13.patch -- Add compatibility for
tests against sympy >= 1.13 (upstream commits).
- Drop python-Mathics-relax-numpy-versions.patch: upstreamed.
- Switch to pyproject_* macros for build.
- Require numpy < 2 as numpy2 is not supported yet.
- BuildArch: noarch as there are no arch dependent binaries in
package.
- Enable Python 3.11, 3.12.
- Disable Python 3.13.
- Drop old compatibility macro redefinition.
-------------------------------------------------------------------
Tue Oct 1 23:18:32 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- 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 <badshah400@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Mathics
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,72 +26,66 @@
%define psuffix %{nil}
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Upstream no longer supports python2
%define skip_python2 1
# https://github.com/Mathics3/mathics-core/issues/743
%define skip_python311 1
# https://github.com/Mathics3/mathics-core/issues/932
%define skip_python312 1
%define pyname Mathics3
Name: python-Mathics%{psuffix}
Version: 6.0.4
Version: 9.0.0
Release: 0
Summary: A general-purpose computer algebra system
# Mathics itself is licensed as GPL-3.0 but it includes third-party software with MIT, BSD-3-Clause, and Apache-2.0 Licensing; also includes data from wikipedia licensed under CC-BY-SA-3.0 and GFDL-1.3
License: Apache-2.0 AND BSD-3-Clause AND GPL-3.0-only AND MIT
URL: https://mathics.github.io/
Source0: https://github.com/Mathics3/mathics-core/releases/download/%{version}/%{pyname}-%{version}.tar.gz
# PATCH-FEATURE-OPENSUSE python-Mathics-relax-numpy-versions.patch badshah400@gmail.com -- Drop upper limit on required numpy version
Patch0: python-Mathics-relax-numpy-versions.patch
BuildRequires: %{python_module Django >= 1.8}
BuildRequires: %{python_module Mathics-Scanner >= 2.0.0}
BuildRequires: %{python_module colorama}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module devel >= 3.10}
BuildRequires: %{python_module mpmath >= 0.19}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pexpect}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sympy >= 1.10.1}
BuildRequires: %{python_module sympy >= 1.13.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Django >= 1.8
Requires: python-Mathics-Scanner >= 1.3.0
Requires: python-Mathics-Scanner >= 2.0.0
Requires: python-Pint
Requires: python-llvmlite
Requires: python-Pympler
Requires: python-mpmath >= 0.19
Requires: python-numpy
Requires: python-palettable
Requires: python-python-dateutil
Requires: python-requests
Requires: python-sympy >= 1.10.1
Requires: python-scipy
Requires: python-stopit
Requires: python-sympy >= 1.13.0
Requires: (python-Pillow >= 9.2 if python-base >= 3.7)
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-scikit-image >= 0.17
BuildArch: noarch
%if %{with test}
# SECTION For tests
BuildRequires: %{python_module Mathics}
BuildRequires: %{python_module Mathics-Scanner >= 1.3.0}
BuildRequires: %{python_module Pillow >= 9.2 if %python-base >= 3.7}
BuildRequires: %{python_module Mathics = %{version}}
BuildRequires: %{python_module Pillow >= 9.2}
BuildRequires: %{python_module Pint}
BuildRequires: %{python_module chardet}
BuildRequires: %{python_module llvmlite}
BuildRequires: %{python_module palettable}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module scikit-image >= 0.17}
BuildRequires: %{python_module typing-extensions}
BuildRequires: %{python_module stopit}
BuildRequires: %{python_module testsuite}
# /SECTION
%endif
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}
%autosetup -p1 -n mathics3-%{version}
# REMOVE SHEBANGS FROM FILES INSTALLED TO NON-EXEC LOCATIONS
pushd mathics
@@ -101,25 +95,28 @@ do
done
popd
# Unnecessary exec perms
chmod -x ./mathics/Packages/Rubi/Show{StepFormatting,StepRoutines}.m
%build
%if %{without test}
export USE_CYTHON=0
%python_build
%pyproject_wheel
%endif
%install
%if %{without test}
export USE_CYTHON=0
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/mathics
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%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
%pytest -k 'not (test_home_page or test_gudermannian or test_image)'
export MATHICS_CHARACTER_ENCODING="ASCII"
export USE_CYTHON=0
%pytest ./test
%endif
%if %{without test}
@@ -134,7 +131,7 @@ export USE_CYTHON=0
%doc README.rst AUTHORS.txt
%python_alternative %{_bindir}/mathics
%{python_sitelib}/mathics/
%{python_sitelib}/%{pyname}-%{version}-py%{python_version}.egg-info/
%{python_sitelib}/mathics3-%{version}*.*-info/
%endif
%changelog