From 954f452900939deaeefaa16f2040200f7e208b2245e18f82e4a07ba7874e4d36 Mon Sep 17 00:00:00 2001 From: Dmitry Roshchin Date: Sun, 9 Feb 2025 17:27:11 +0000 Subject: [PATCH] Accepting request 1244377 from home:badshah400:branches:science (Depends on sr#1244373) * Update to version 8.0.0. * Switch to %pyproject_* macros for builds. OBS-URL: https://build.opensuse.org/request/show/1244377 OBS-URL: https://build.opensuse.org/package/show/science/python-mathicsscript?expand=0&rev=2 --- mathicsscript-4.0.0.tar.gz | 3 --- mathicsscript-8.0.0.tar.gz | 3 +++ python-mathicsscript.changes | 14 ++++++++++++++ python-mathicsscript.spec | 32 +++++++++++++++----------------- 4 files changed, 32 insertions(+), 20 deletions(-) delete mode 100644 mathicsscript-4.0.0.tar.gz create mode 100644 mathicsscript-8.0.0.tar.gz diff --git a/mathicsscript-4.0.0.tar.gz b/mathicsscript-4.0.0.tar.gz deleted file mode 100644 index ffe513e..0000000 --- a/mathicsscript-4.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1c0499a0b793e8ccab8d3992c4ecfb644ee7b69bf9a22c9ff074ad1d0fe27b8c -size 188748 diff --git a/mathicsscript-8.0.0.tar.gz b/mathicsscript-8.0.0.tar.gz new file mode 100644 index 0000000..218d2c0 --- /dev/null +++ b/mathicsscript-8.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c09360d986f637d6185d4a51caa031c8bc936721feaca91a79e2af7c76a1ed0 +size 184228 diff --git a/python-mathicsscript.changes b/python-mathicsscript.changes index 98ae986..731cb98 100644 --- a/python-mathicsscript.changes +++ b/python-mathicsscript.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Feb 6 11:46:05 UTC 2025 - Atri Bhattacharya + +- Update to version 8.0.0: + * --edit-mode [emacs|vi] or was added to mathicsscript to + specify which initial edit mode for prompt-toolkit to start in + * --post-mortem was added mathicsscript to go into a trepan3k + debugger on error + * Add aliases for all of the 100 or so "no-meaning" operators + * Allow 2D rendering from asymptote + * Add/update material in README's and screencast + * Compatibility with Mathics >= 8.0.0 +- Switch to %pyproject_* macros for builds. + ------------------------------------------------------------------- Sat Feb 5 18:37:07 UTC 2022 - Atri Bhattacharya diff --git a/python-mathicsscript.spec b/python-mathicsscript.spec index aeef361..0333de0 100644 --- a/python-mathicsscript.spec +++ b/python-mathicsscript.spec @@ -24,43 +24,41 @@ %define psuffix %{nil} %bcond_with test %endif -%define skip_python2 1 +%define skip_python313 1 %define modname mathicsscript Name: python-mathicsscript%{psuffix} -Version: 4.0.0 +Version: 8.0.0 Release: 0 Summary: A command line interface to Mathics License: GPL-3.0-or-later URL: https://mathics.org/ Source0: https://github.com/Mathics3/mathicsscript/archive/refs/tags/%{version}.tar.gz#/%{modname}-%{version}.tar.gz -BuildRequires: %{python_module Mathics} +BuildRequires: %{python_module Mathics >= 8.0.0} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-Cython -Requires: python-PyYAML +Requires: python-Mathics3 >= 8.0.0 +Requires: python-Mathics-Scanner +Requires: python-Pygments +Requires: python-click Requires: python-colorama Requires: python-columnize Requires: python-mathics-pygments Requires: python-networkx -Requires: python-numpy Requires: python-prompt_toolkit -Requires: python-requests Requires: python-term-background Requires(post): update-alternatives Requires(postun): update-alternatives %if %{with test} # SECTION For tests -BuildRequires: %{python_module Cython} -BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module colorama} BuildRequires: %{python_module columnize} BuildRequires: %{python_module mathics-pygments} -BuildRequires: %{python_module mathicsscript} +BuildRequires: %{python_module mathicsscript = %{version}} BuildRequires: %{python_module networkx} -BuildRequires: %{python_module numpy} BuildRequires: %{python_module prompt_toolkit >= 3.0.18} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module requests} BuildRequires: %{python_module term-background} # /SECTION %endif @@ -75,12 +73,12 @@ Mathicsscript is a feature-rich command line interface to Mathics. %build %if %{without test} -%python_build +%pyproject_wheel %endif %install %if %{without test} -%python_install +%pyproject_install %{python_expand # Miscellaneous fixes # Clear some unnecessary hashbangs sed -i "1{\@/usr/bin/env@d}" \ @@ -89,8 +87,7 @@ sed -i "1{\@/usr/bin/env@d}" \ %{buildroot}%{$python_sitelib}/%{modname}/asymptote.py # Move test dir into main module dir mv %{buildroot}%{$python_sitelib}/test %{buildroot}%{$python_sitelib}/%{modname}/ -%fdupes %{buildroot}%{$python_sitelib}/%{modname}/ -%fdupes %{buildroot}%{$python_sitelib}/%{modname}-%{version}-py%{$python_version}.egg-info/ +%fdupes %{buildroot}%{$python_sitelib}/ } %python_clone -a %{buildroot}%{_bindir}/fake_psviewer.py @@ -99,6 +96,7 @@ mv %{buildroot}%{$python_sitelib}/test %{buildroot}%{$python_sitelib}/%{modname} %if %{with test} %check +export MATHICS_CHARACTER_ENCODING="ASCII" %pytest %endif @@ -117,7 +115,7 @@ mv %{buildroot}%{$python_sitelib}/test %{buildroot}%{$python_sitelib}/%{modname} %python_alternative %{_bindir}/fake_psviewer.py %python_alternative %{_bindir}/mathicsscript %{python_sitelib}/%{modname}/ -%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/ +%{python_sitelib}/%{modname}-%{version}*.*-info/ %endif %changelog