commit 8207af372d69973244eeb139cdbeeb77b245c96b0109c0a5388b4379430088e8 Author: Atri Bhattacharya Date: Sat Aug 17 04:21:21 2024 +0000 * Update to version 1.3.1. * Compatibility with python 3.6 dropped, bump miminum python-base version in BuildRequires to 3.8. OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics-Scanner?expand=0&rev=5 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Mathics_Scanner-1.3.0.tar.gz b/Mathics_Scanner-1.3.0.tar.gz new file mode 100644 index 0000000..ec75df0 --- /dev/null +++ b/Mathics_Scanner-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39751a2d28d40c88538cc03aa72a113dcae59fc49e8e7727f30219a6cc9ef997 +size 125861 diff --git a/mathics_scanner-1.3.1.tar.gz b/mathics_scanner-1.3.1.tar.gz new file mode 100644 index 0000000..48781d9 --- /dev/null +++ b/mathics_scanner-1.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:599a1e5bb84a802de424256b008ca93365bd73471d0aab5ae99f69028088df22 +size 127755 diff --git a/python-Mathics-Scanner.changes b/python-Mathics-Scanner.changes new file mode 100644 index 0000000..3be27b6 --- /dev/null +++ b/python-Mathics-Scanner.changes @@ -0,0 +1,50 @@ +------------------------------------------------------------------- +Tue Aug 13 04:53:15 UTC 2024 - Atri Bhattacharya + +- Update to version 1.3.1: + * Packaging was redone to be able to support Python 3.12. + * Files now follow current Python black formatting and isort + import ordering. + * Some Python code linting. +- Compatibility with python 3.6 dropped, bump miminum python-base + version in BuildRequires to 3.8. + +------------------------------------------------------------------- +Mon Apr 10 20:45:44 UTC 2023 - Atri Bhattacharya + +- Update to version 1.3.0: + * Add escape-code sequence for 32-bit Unicode + (gh#Mathics3/mathics-scanner#48). + * Correct Infix and Tilde character symbols + * Support double backslash (\\) as a single backslash character + (\). + * Correct Unicode for ScriptN and ScriptCaptialN + * Correct a number of is-letter-like entries. + * Accept \u21A6 as symbol for Function. + * Change the precedence of |->(Function symbol) to 800 so it + isn't interpreted as a | followed by -> + * ASCII operator tables can now be generated + * Add DifferentialD and Integrate even though we don't have a + full set of prefix operators. + * More precedence values added to operators + * Python 3.11 operation verified +- Drop 9346764dfd22f011ec7bba9248497383f4b98a3a.patch: + incorporated upstream. +- Requires(post): update-alternatives for correct post scriptlet + runs. + +------------------------------------------------------------------- +Sun Jul 11 09:27:26 UTC 2021 - Ferdinand Thiessen + +- Update to version 1.2.4 + * Start adding AMSLateX names. + * Add ``ApplyTo``, and ``Factorial2``. + * Adjust ``Tilde``, and ``Factorial``. + * Regularize unicode equivalents. +- Add 9346764dfd22f011ec7bba9248497383f4b98a3a.patch + +------------------------------------------------------------------- +Sat Jul 10 14:29:57 UTC 2021 - Ferdinand Thiessen + +- Initial package at version 1.2.3 for Mathics3 + diff --git a/python-Mathics-Scanner.spec b/python-Mathics-Scanner.spec new file mode 100644 index 0000000..0ad3924 --- /dev/null +++ b/python-Mathics-Scanner.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-Mathics-Scanner +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define skip_python2 1 +%define modname mathics_scanner +Name: python-Mathics-Scanner +Version: 1.3.1 +Release: 0 +Summary: Character Tables and Tokenizer for Mathics and the Wolfram Language +License: GPL-3.0-only +URL: https://mathics.org/ +Source: https://files.pythonhosted.org/packages/source/M/Mathics-Scanner/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module chardet} +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module click} +BuildRequires: %{python_module pytest} +# /SECTION +BuildRequires: fdupes +Requires: python-PyYAML +Requires: python-chardet +Requires: python-click +Requires(post): update-alternatives +Requires(postun):update-alternatives +Recommends: python-ujson +BuildArch: noarch +%python_subpackages + +%description +Character Tables and Tokenizer for Mathics and the Wolfram Language. + +%prep +%setup -q -n %{modname}-%{version} +# Fix shbang +sed -i "s|/usr/bin/env python|/usr/bin/python3|" mathics_scanner/generate/build_tables.py +sed -i "s|/usr/bin/env python3|/usr/bin/python3|" mathics_scanner/generate/rl_inputrc.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/mathics-generate-json-table +%python_expand %fdupes %{buildroot}%{$python_sitelib} +# Should be executable +%python_expand chmod 0755 %{buildroot}%{$python_sitelib}/mathics_scanner/generate/{build_tables,rl_inputrc}.py + +%check +%pytest + +%post +%python_install_alternative mathics-generate-json-table + +%postun +%python_uninstall_alternative mathics-generate-json-table + +%files %{python_files} +%python_alternative %{_bindir}/mathics-generate-json-table +%{python_sitelib}/%{modname}/ +%{python_sitelib}/Mathics_Scanner-%{version}*.*-info/ + +%changelog