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
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1c0499a0b793e8ccab8d3992c4ecfb644ee7b69bf9a22c9ff074ad1d0fe27b8c
|
||||
size 188748
|
||||
3
mathicsscript-8.0.0.tar.gz
Normal file
3
mathicsscript-8.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6c09360d986f637d6185d4a51caa031c8bc936721feaca91a79e2af7c76a1ed0
|
||||
size 184228
|
||||
@@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 6 11:46:05 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- 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 <badshah400@gmail.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user