forked from pool/python-Mathics
Compare commits
15 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 9e7d932e4e | |||
| 3f3c44c153 | |||
| 5c3ff38c0d | |||
| ae53d0fa59 | |||
| b424218646 | |||
| e40b401ceb | |||
| 89d297b630 | |||
| 47ba0361e4 | |||
| 2758c6f231 | |||
| 80517facaa | |||
| ff107912b5 | |||
| dbad5635b8 | |||
| a9e70cfd73 | |||
| ad47d9d93e | |||
| 4f70354902 |
@@ -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
3
Mathics3-9.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8b49c156b012dd8ac9ebb08963208a7de3651cd1eb048ec60a4e1f9be586e703
|
||||||
|
size 3840672
|
||||||
@@ -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",
|
|
||||||
@@ -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>
|
Mon Apr 8 05:16:21 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Mathics
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -26,72 +26,66 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%endif
|
%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
|
%define pyname Mathics3
|
||||||
Name: python-Mathics%{psuffix}
|
Name: python-Mathics%{psuffix}
|
||||||
Version: 6.0.4
|
Version: 9.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A general-purpose computer algebra system
|
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
|
# 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
|
License: Apache-2.0 AND BSD-3-Clause AND GPL-3.0-only AND MIT
|
||||||
URL: https://mathics.github.io/
|
URL: https://mathics.github.io/
|
||||||
Source0: https://github.com/Mathics3/mathics-core/releases/download/%{version}/%{pyname}-%{version}.tar.gz
|
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
|
BuildRequires: %{python_module Mathics-Scanner >= 2.0.0}
|
||||||
Patch0: python-Mathics-relax-numpy-versions.patch
|
|
||||||
BuildRequires: %{python_module Django >= 1.8}
|
|
||||||
BuildRequires: %{python_module colorama}
|
BuildRequires: %{python_module colorama}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel >= 3.10}
|
||||||
BuildRequires: %{python_module mpmath >= 0.19}
|
BuildRequires: %{python_module mpmath >= 0.19}
|
||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
BuildRequires: %{python_module pexpect}
|
BuildRequires: %{python_module pexpect}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module python-dateutil}
|
BuildRequires: %{python_module python-dateutil}
|
||||||
BuildRequires: %{python_module setuptools}
|
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: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-Django >= 1.8
|
Requires: python-Mathics-Scanner >= 2.0.0
|
||||||
Requires: python-Mathics-Scanner >= 1.3.0
|
|
||||||
Requires: python-Pint
|
Requires: python-Pint
|
||||||
Requires: python-llvmlite
|
Requires: python-Pympler
|
||||||
Requires: python-mpmath >= 0.19
|
Requires: python-mpmath >= 0.19
|
||||||
Requires: python-numpy
|
Requires: python-numpy
|
||||||
Requires: python-palettable
|
Requires: python-palettable
|
||||||
Requires: python-python-dateutil
|
Requires: python-python-dateutil
|
||||||
Requires: python-requests
|
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: (python-Pillow >= 9.2 if python-base >= 3.7)
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
Recommends: python-scikit-image >= 0.17
|
Recommends: python-scikit-image >= 0.17
|
||||||
|
BuildArch: noarch
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
# SECTION For tests
|
# SECTION For tests
|
||||||
BuildRequires: %{python_module Mathics}
|
BuildRequires: %{python_module Mathics = %{version}}
|
||||||
BuildRequires: %{python_module Mathics-Scanner >= 1.3.0}
|
BuildRequires: %{python_module Pillow >= 9.2}
|
||||||
BuildRequires: %{python_module Pillow >= 9.2 if %python-base >= 3.7}
|
|
||||||
BuildRequires: %{python_module Pint}
|
BuildRequires: %{python_module Pint}
|
||||||
BuildRequires: %{python_module chardet}
|
BuildRequires: %{python_module chardet}
|
||||||
BuildRequires: %{python_module llvmlite}
|
|
||||||
BuildRequires: %{python_module palettable}
|
BuildRequires: %{python_module palettable}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module requests}
|
|
||||||
BuildRequires: %{python_module scikit-image >= 0.17}
|
BuildRequires: %{python_module scikit-image >= 0.17}
|
||||||
BuildRequires: %{python_module typing-extensions}
|
BuildRequires: %{python_module stopit}
|
||||||
|
BuildRequires: %{python_module testsuite}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%endif
|
%endif
|
||||||
Provides: python-Mathics3 = %{version}
|
Provides: python-Mathics3 = %{version}
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%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
|
%prep
|
||||||
%autosetup -p1 -n %{pyname}-%{version}
|
%autosetup -p1 -n mathics3-%{version}
|
||||||
|
|
||||||
# REMOVE SHEBANGS FROM FILES INSTALLED TO NON-EXEC LOCATIONS
|
# REMOVE SHEBANGS FROM FILES INSTALLED TO NON-EXEC LOCATIONS
|
||||||
pushd mathics
|
pushd mathics
|
||||||
@@ -101,25 +95,28 @@ do
|
|||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
# Unnecessary exec perms
|
||||||
|
chmod -x ./mathics/Packages/Rubi/Show{StepFormatting,StepRoutines}.m
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{without test}
|
%if %{without test}
|
||||||
export USE_CYTHON=0
|
export USE_CYTHON=0
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{without test}
|
%if %{without test}
|
||||||
export USE_CYTHON=0
|
export USE_CYTHON=0
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/mathics
|
%python_clone -a %{buildroot}%{_bindir}/mathics
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
# Home page tests require django server up and running, test_gudermannian needs network access
|
export MATHICS_CHARACTER_ENCODING="ASCII"
|
||||||
# test_image: https://github.com/Mathics3/mathics-core/issues/837
|
export USE_CYTHON=0
|
||||||
%pytest -k 'not (test_home_page or test_gudermannian or test_image)'
|
%pytest ./test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{without test}
|
%if %{without test}
|
||||||
@@ -134,7 +131,7 @@ export USE_CYTHON=0
|
|||||||
%doc README.rst AUTHORS.txt
|
%doc README.rst AUTHORS.txt
|
||||||
%python_alternative %{_bindir}/mathics
|
%python_alternative %{_bindir}/mathics
|
||||||
%{python_sitelib}/mathics/
|
%{python_sitelib}/mathics/
|
||||||
%{python_sitelib}/%{pyname}-%{version}-py%{python_version}.egg-info/
|
%{python_sitelib}/mathics3-%{version}*.*-info/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user