forked from pool/python-Mathics-Scanner
Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 019a9e6258 | |||
| c8d5f05d1e | |||
| 9fe8a5f846 | |||
| 7b3fb9d521 | |||
| 1db247322d | |||
| b12e83138d | |||
| f9523e0251 | |||
| 8207af372d |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:39751a2d28d40c88538cc03aa72a113dcae59fc49e8e7727f30219a6cc9ef997
|
||||
size 125861
|
||||
3
mathics_scanner-2.0.0.tar.gz
Normal file
3
mathics_scanner-2.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0424ae0918313640af52a7bbadc91824ca1869eb1ad0e0dd87c784c141326d9a
|
||||
size 199851
|
||||
@@ -1,3 +1,44 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 31 04:48:13 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 2.0.0:
|
||||
* Support for saving token position information was started.
|
||||
* Scanning was revised to handle more kinds of escape sequences
|
||||
and to be sensitive to their placement inside and outside a
|
||||
string.
|
||||
* Tokenization support for Box Input operator \* was added.
|
||||
* Small YML changes were made to reflect a better understanding
|
||||
of boxing operators. In particular, \* is not a (prefix)
|
||||
operator.
|
||||
* Internals: Mathics3 scanner exceptions of class TranslateError
|
||||
are incompatible with previous versions, and now store error
|
||||
parameters, "name", "tag", and "args".
|
||||
* Bugs fixed:
|
||||
- gh#Mathics3/mathics-scanner#125
|
||||
- gh#Mathics3/mathics-scanner#136
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 29 11:24:05 UTC 2025 - Max Lin <mlin@suse.com>
|
||||
|
||||
- Fix Leap 16.0 build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 2 07:27:51 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 1.4.1:
|
||||
* Include new operator YML and JSON
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 13 04:53:15 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- 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 <badshah400@gmail.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Mathics-Scanner
|
||||
#
|
||||
# Copyright (c) 2023 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
|
||||
@@ -16,16 +16,18 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define modname mathics_scanner
|
||||
Name: python-Mathics-Scanner
|
||||
Version: 1.3.0
|
||||
Version: 2.0.0
|
||||
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/Mathics_Scanner-%{version}.tar.gz
|
||||
Source: https://files.pythonhosted.org/packages/source/M/Mathics-Scanner/%{modname}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.10}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module chardet}
|
||||
@@ -38,7 +40,7 @@ Requires: python-PyYAML
|
||||
Requires: python-chardet
|
||||
Requires: python-click
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: python-ujson
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@@ -47,33 +49,41 @@ BuildArch: noarch
|
||||
Character Tables and Tokenizer for Mathics and the Wolfram Language.
|
||||
|
||||
%prep
|
||||
%setup -q -n Mathics_Scanner-%{version}
|
||||
%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 python|/usr/bin/python3|" mathics_scanner/generate/build_{,operator_}tables.py
|
||||
sed -i "s|/usr/bin/env python3|/usr/bin/python3|" mathics_scanner/generate/rl_inputrc.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/mathics-generate-json-table
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/mathics3-generate-json-table
|
||||
%python_clone -a %{buildroot}%{_bindir}/mathics3-generate-operator-json-table
|
||||
%python_clone -a %{buildroot}%{_bindir}/mathics3-tokens
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
# Should be executable
|
||||
%python_expand chmod 0755 %{buildroot}%{$python_sitelib}/mathics_scanner/generate/{build_tables,rl_inputrc}.py
|
||||
%python_expand chmod 0755 %{buildroot}%{$python_sitelib}/mathics_scanner/generate/{build_tables,build_operator_tables,rl_inputrc}.py
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%python_install_alternative mathics-generate-json-table
|
||||
%python_install_alternative mathics3-generate-json-table
|
||||
%python_install_alternative mathics3-generate-operator-json-table
|
||||
%python_install_alternative mathics3-tokens
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative mathics-generate-json-table
|
||||
%python_uninstall_alternative mathics3-generate-json-table
|
||||
%python_uninstall_alternative mathics3-generate-operator-json-table
|
||||
%python_uninstall_alternative mathics3-tokens
|
||||
|
||||
%files %{python_files}
|
||||
%python_alternative %{_bindir}/mathics-generate-json-table
|
||||
%{python_sitelib}/mathics_scanner/
|
||||
%{python_sitelib}/Mathics_Scanner-%{version}-py%{python_version}.egg-info/
|
||||
%python_alternative %{_bindir}/mathics3-generate-json-table
|
||||
%python_alternative %{_bindir}/mathics3-generate-operator-json-table
|
||||
%python_alternative %{_bindir}/mathics3-tokens
|
||||
%{python_sitelib}/%{modname}/
|
||||
%{python_sitelib}/[Mm]athics_[Ss]canner-%{version}*.*-info/
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user