From 3b404a47493bdcb99f9f9d84f74b0dedb13fcce0069831e6ba2e6ac42d4a576d Mon Sep 17 00:00:00 2001 From: Dmitry Roshchin Date: Thu, 14 Nov 2024 11:58:02 +0000 Subject: [PATCH] Accepting request 1223907 from home:badshah400:branches:science * Update to version 1.0.3. * Use pip/wheel based macros for build. OBS-URL: https://build.opensuse.org/request/show/1223907 OBS-URL: https://build.opensuse.org/package/show/science/python-mathics-pygments?expand=0&rev=3 --- mathics_pygments-1.0.2.tar.gz | 3 --- mathics_pygments-1.0.3.tar.gz | 3 +++ python-mathics-pygments.changes | 11 +++++++++++ python-mathics-pygments.spec | 17 +++++++++-------- 4 files changed, 23 insertions(+), 11 deletions(-) delete mode 100644 mathics_pygments-1.0.2.tar.gz create mode 100644 mathics_pygments-1.0.3.tar.gz diff --git a/mathics_pygments-1.0.2.tar.gz b/mathics_pygments-1.0.2.tar.gz deleted file mode 100644 index 8ab5034..0000000 --- a/mathics_pygments-1.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -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/python-mathics-pygments.changes b/python-mathics-pygments.changes index 1b67c86..9ff8ef7 100644 --- a/python-mathics-pygments.changes +++ b/python-mathics-pygments.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +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 diff --git a/python-mathics-pygments.spec b/python-mathics-pygments.spec index df66c81..576103f 100644 --- a/python-mathics-pygments.spec +++ b/python-mathics-pygments.spec @@ -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) 2024 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.3 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