commit 23f0c36069eb68f15aeed3624cb18595fb7a33d62675c9282ff2194f70e1ed2f Author: Dmitry Roshchin Date: Sun Feb 9 17:30:14 2025 +0000 Update to version 1.0.4 OBS-URL: https://build.opensuse.org/package/show/science/python-mathics-pygments?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_pygments-1.0.2.tar.gz b/mathics_pygments-1.0.2.tar.gz new file mode 100644 index 0000000..8ab5034 --- /dev/null +++ b/mathics_pygments-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70121208eb13be0d1795bda1890bfd7e3b856bbc2e0b9891119ca5ae97de51ac +size 57514 diff --git a/mathics_pygments-1.0.3.tar.gz b/mathics_pygments-1.0.3.tar.gz new file mode 100644 index 0000000..8e10296 --- /dev/null +++ b/mathics_pygments-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50bd01e2e5a6860287e21804c61b3f0c50132f5c2c257e02565bda26ba05b4d1 +size 62858 diff --git a/mathics_pygments-1.0.4.tar.gz b/mathics_pygments-1.0.4.tar.gz new file mode 100644 index 0000000..1a960dd --- /dev/null +++ b/mathics_pygments-1.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be9473aca69f785ec73287aa7d7a85b91c02347ba51c9c32b7fe95288b5c8bb4 +size 63142 diff --git a/python-mathics-pygments.changes b/python-mathics-pygments.changes new file mode 100644 index 0000000..5bda8a2 --- /dev/null +++ b/python-mathics-pygments.changes @@ -0,0 +1,21 @@ +------------------------------------------------------------------- +Thu Feb 6 12:28:50 UTC 2025 - Atri Bhattacharya + +- 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 + +- 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 + +- New package. diff --git a/python-mathics-pygments.spec b/python-mathics-pygments.spec new file mode 100644 index 0000000..33fff18 --- /dev/null +++ b/python-mathics-pygments.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-mathics-pygments +# +# 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 +# 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 modname mathics_pygments +# Mathics-Scanner does not support python2 +%define skip_python2 1 +Name: python-mathics-pygments +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_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 +Requires: python-Pygments >= 2 +BuildArch: noarch +%python_subpackages + +%description +A lexer and highlighter for Mathematica/Wolfram Language source code using the +pygments engine. + +%prep +%setup -q -n mathics-pygments-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc CHANGES.rst README.md +%license LICENSE +%{python_sitelib}/%{modname}/ +%{python_sitelib}/%{modname}-%{version}*.*-info/ + +%changelog