1
0

4 Commits

4 changed files with 29 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:70121208eb13be0d1795bda1890bfd7e3b856bbc2e0b9891119ca5ae97de51ac
size 57514

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be9473aca69f785ec73287aa7d7a85b91c02347ba51c9c32b7fe95288b5c8bb4
size 63142

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Thu Feb 6 12:28:50 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 1.0.4:
* Add code for reading the YAML takes from the Mathics project.
-------------------------------------------------------------------
Wed Nov 13 10:28:22 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 1.0.3:
* Update Python style (black).
* Import order (isort).
* Convert test to pytest.
* Fix spelling errors.
* Add code of conduct.
- Use pip/wheel based macros for build.
-------------------------------------------------------------------
Sun Jan 30 00:51:10 UTC 2022 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-mathics_pygments
# spec file for package python-mathics-pygments
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,20 +19,21 @@
%define modname mathics_pygments
# Mathics-Scanner does not support python2
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-mathics-pygments
Version: 1.0.2
Version: 1.0.4
Release: 0
Summary: Mathematica/Wolfram Language Lexer for Pygments
License: MIT
URL: http://github.com/Mathics3/mathics-pygments/
Source: https://github.com/Mathics3/mathics-pygments/archive/refs/tags/%{version}.tar.gz#/%{modname}-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module Mathics-Scanner >= 1.2.0}
BuildRequires: %{python_module Pygments >= 2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
# /SECTION
BuildRequires: fdupes
Requires: python-Mathics-Scanner >= 1.2.0
@@ -48,10 +49,10 @@ pygments engine.
%setup -q -n mathics-pygments-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -61,6 +62,6 @@ pygments engine.
%doc CHANGES.rst README.md
%license LICENSE
%{python_sitelib}/%{modname}/
%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/
%{python_sitelib}/%{modname}-%{version}*.*-info/
%changelog