From 0f2c219158221e2e21b3ea1201b0aab3631eb28c735f962beefb2f6f39a48769 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 25 Mar 2025 03:42:31 +0000 Subject: [PATCH 1/2] - Lowercase metadata directory name. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=23 --- .gitattributes | 23 ++++++ .gitignore | 1 + Markups-3.0.0.tar.gz | 3 + Markups-4.0.0.tar.gz | 3 + markups-4.1.0.tar.gz | 3 + pygments.patch | 23 ++++++ python-Markups.changes | 172 +++++++++++++++++++++++++++++++++++++++++ python-Markups.spec | 69 +++++++++++++++++ 8 files changed, 297 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Markups-3.0.0.tar.gz create mode 100644 Markups-4.0.0.tar.gz create mode 100644 markups-4.1.0.tar.gz create mode 100644 pygments.patch create mode 100644 python-Markups.changes create mode 100644 python-Markups.spec 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/Markups-3.0.0.tar.gz b/Markups-3.0.0.tar.gz new file mode 100644 index 0000000..2a3bd22 --- /dev/null +++ b/Markups-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ea19458dfca6a4562044e701aa8698089a0c659fc535689ed260f89a04f8d39 +size 16966 diff --git a/Markups-4.0.0.tar.gz b/Markups-4.0.0.tar.gz new file mode 100644 index 0000000..8116ec5 --- /dev/null +++ b/Markups-4.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ddb9afb1c55d0cff812e3392ca33f468498c0707a4fa8b2e05d0ba0d32c019e +size 22968 diff --git a/markups-4.1.0.tar.gz b/markups-4.1.0.tar.gz new file mode 100644 index 0000000..e269db8 --- /dev/null +++ b/markups-4.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25214434f356d353034c2ef4db76ab50e867a63ba1967eb6bcc80472c501ddd9 +size 23072 diff --git a/pygments.patch b/pygments.patch new file mode 100644 index 0000000..c652aea --- /dev/null +++ b/pygments.patch @@ -0,0 +1,23 @@ +From 93f36f74ef018b6d12a04a46bb4ff8c83569b9cd Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Mark=C3=A9ta?= +Date: Wed, 22 Jan 2025 14:29:42 +0100 +Subject: [PATCH] adapt to Pygments 2.19 + +--- + tests/test_public_api.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/test_public_api.py b/tests/test_public_api.py +index a23f091..f0a9d71 100644 +--- a/tests/test_public_api.py ++++ b/tests/test_public_api.py +@@ -41,7 +41,7 @@ def test_get_pygments_stylesheet(self) -> None: + except ImportError: + raise unittest.SkipTest("Pygments not available") + stylesheet = get_pygments_stylesheet(".selector") +- self.assertIn(".selector .nf { color: #0000FF", stylesheet) ++ self.assertIn(".selector .nf { color: #00F", stylesheet) + stylesheet = get_pygments_stylesheet(".selector", style="colorful") +- self.assertIn(".selector .nf { color: #0066BB", stylesheet) ++ self.assertIn(".selector .nf { color: #06B", stylesheet) + self.assertFalse(get_pygments_stylesheet(".selector", style="")) diff --git a/python-Markups.changes b/python-Markups.changes new file mode 100644 index 0000000..08f15d7 --- /dev/null +++ b/python-Markups.changes @@ -0,0 +1,172 @@ +------------------------------------------------------------------- +Tue Mar 25 03:42:19 UTC 2025 - Steve Kowalik + +- Lowercase metadata directory name. + +------------------------------------------------------------------- +Wed Jan 22 14:08:33 UTC 2025 - Markéta Machová + +- Add pygments.patch to fix test failure with new pygments + +------------------------------------------------------------------- +Wed Jan 22 12:50:00 UTC 2025 - Markéta Machová + +- Update to 4.1.0 + * Incompatible change: Python 3.9 is no longer supported + * Made the order of Markdown extensions deterministic + * Adopted ruff for code quality checks and auto-formatting + +------------------------------------------------------------------- +Tue Nov 12 14:39:14 UTC 2024 - Matej Cepl + +- Update to 4.0.0: + Incompatible changes: + - Python versions older than 3.9 are no longer supported. + - Python-Markdown versions older than 3.0 are no longer supported. + - Setuptools 61.2 or higher is required to build the project. + - ``setup.py`` has been removed. Use ``pip``, ``build`` or other :PEP:`517` + compatible tool. + Other changes: + - Added AsciiDocMarkup (contributed by Dave Kuhlman in #17). + - Made the tests pass with Pygments ≥ 2.11. + - Made the tests pass when PyYAML is not installed (#18). + - Reformatted code in accordance with :PEP:`8` standard. + - Fixed mypy errors and added a :PEP:`561` ``py.typed`` file. +- Update to 3.1.3: + - Fixed logic to load extensions file when PyYAML module is not available + (issue #16, thanks foxB612 for the bug report). + - Made the tests pass with docutils 0.18. +- Update to 3.1.2: + - Incompatible change: Python 3.6 is no longer supported. + - Fixed replacing Markdown extensions in document. + - Fixed crash when using TOC backrefs in reStructuredText (issue #14, + thanks Hrissimir for the patch). +- Update to 3.1.1: + - The reStructuredText markup now includes line numbers information in + ``data-posmap`` attributes. + - The reStructuredText markup now uses only ``minimal.css`` stylesheet + (not ``plain.css`` anymore). + - Added support for the upcoming docutils 0.17 release to the tests. +- Update to 3.1.0: + Incompatible changes: + - Python versions older than 3.6 are no longer supported. + Other changes: + - Instead of ``pkg_resources``, ``importlib.metadata`` is now used. + - For Markdown markup, ``markdown-extensions.yaml`` files are now supported + in addition to ``markdown-extensions.txt`` files. + - Type annotations were added for public API. + - The reStructuredText markup no longer raises exceptions for invalid markup. + - MathJax v3 is now supported in addition to v2. Also, the Arch Linux mathjax + packages are now supported (issue #4). + - Added Pygments CSS support for the ``pymdownx.highlight`` Markdown extension. + + +------------------------------------------------------------------- +Wed May 26 09:00:39 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + +------------------------------------------------------------------- +Thu Nov 7 14:57:06 UTC 2019 - Matej Cepl + +- Run through spec-cleaner + +------------------------------------------------------------------- +Wed Jan 2 12:46:35 UTC 2019 - badshah400@gmail.com + +- Update to version 3.0.0: + * The deprecated AbstractMarkup API has been removed. + * Python 3.2 is no longer supported. + * The output now uses HTML5 instead of HTML4. + * The custom markups are now registered with entry points. + * The ``get_custom_markups()`` method has been removed. + * New required dependency: python-markdown-math. + * Python-Markdown 3.x release is now supported. +- Add python-markdown-math to Requires (new dependency). +- Run fdupes to clean up duplicate files wasting space (add + BuildRequires: fdupes). + +------------------------------------------------------------------- +Tue Dec 4 12:50:17 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu Aug 31 06:25:00 UTC 2017 - toddrme2178@gmail.com + +- update to Version 2.0.1 + * The new MathJax CDN is used, the old one will be shut down soon. + * When using MathJax with Markdown, the AMSmath and AMSsymbols extensions are + now enabled. +- update to Version 2.0.0, 2016-05-09 + * Changed the API of pymarkups to clearly separate the conversion step from + access to the various elements of the result. The old API is deprecated + and will be removed in a future release. Please see the documentation for + details on using the new API. + * The reStructuredText markup now includes document title and subtitle in + the HTML body. + * Added a ``markup2html.py`` reference script to show API usage. + * Improved support for specifying Markdown extensions in the document. + +------------------------------------------------------------------- +Thu Aug 24 13:45:17 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- +Thu May 7 16:12:55 UTC 2015 - benoit.monin@gmx.fr + +- update to version 0.6.1: + * PyMarkups now uses warnings system instead of printing messages + to stderr + * Improvements to Markdown markup: + + Fixed parsing math that contains nested environments + + Fixed crash on extensions names starting with dot + * Miscellaneous fixes +- additional changes from version 0.6: + * Custom markups are now normal Python modules + * Web module no longer supports Python 2.x + * Refactor the code related to Markdown extensions to make it + work with upcoming Python-Markdown releases + * MathJax extension is now in a separate module +- additional changes from version 0.5.2: + * Fixed loading of Markdown extensions with options +- additional changes from version 0.5.1: + * Fixed Markdown markup crash on empty files + * Include documentation in the tarballs + * Testsuite improvements +- additional changes from version 0.5: + * Improvements to Markdown markup: + + All math delimeters except $...$ are now enabled by default + + remove_extra extension now disables formulas support + + It is now possible to specify required extensions in the + first line of the file + * Add Sphinx documentation +- additional changes from version 0.4: + * Add Textile markup + * reStructuredText markup now supports file names and settings + overrides + * Web module now raises WebUpdateError when updating fails +- additional changes from version 0.3: + * MathJax support in Markdown has been improved and no longer + relies on tex2jax extension + * It is now possible to pass extensions list to MarkdownMarkup + constructor + * Pygments style is now configurable + * Testsuite improvements +- update project URL +- add python-importlib as a dependency for SLE11 +- rename README to README.rst: changed upstream + +------------------------------------------------------------------- +Wed Feb 6 09:42:28 UTC 2013 - saschpe@suse.de + +- Completely redone spec file + +------------------------------------------------------------------- +Sat Feb 2 11:46:51 UTC 2013 - i@marguerite.su + +- initial version 0.2.4 + * no changelog for this version (yet). + + diff --git a/python-Markups.spec b/python-Markups.spec new file mode 100644 index 0000000..7a6b7a8 --- /dev/null +++ b/python-Markups.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-Markups +# +# 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/ +# + + +Name: python-Markups +Version: 4.1.0 +Release: 0 +Summary: A wrapper around various text markups +License: BSD-3-Clause +URL: https://github.com/mitya57/pymarkups +Source: https://files.pythonhosted.org/packages/source/m/markups/markups-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/retext-project/pymarkups/pull/20 adapt to Pygments 2.19 +Patch: pygments.patch +BuildRequires: %{python_module Markdown >= 3} +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module Pygments} +BuildRequires: %{python_module docutils} +BuildRequires: %{python_module lxml} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module python-markdown-math} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module textile} +BuildRequires: %{python_module wheel} +BuildRequires: asciidoc +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-python-markdown-math +BuildArch: noarch +%python_subpackages + +%description +This module provides a wrapper around the various text markup languages, +such as Markdown and reStructuredText (these two are supported by default). + +%prep +%autosetup -p1 -n markups-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install + +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest discover -v + +%files %{python_files} +%license LICENSE +%doc README.rst changelog +%{python_sitelib}/markups +%{python_sitelib}/markups-%{version}.dist-info + +%changelog From aed9292f8723872038254549ed72def80993183cb15aaa35b0a7d8e382dbb881 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 14 Apr 2025 06:06:26 +0000 Subject: [PATCH 2/2] - Support both lowercased and unnormalized metadata directory names. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=24 --- python-Markups.changes | 5 +++++ python-Markups.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-Markups.changes b/python-Markups.changes index 08f15d7..31b5e74 100644 --- a/python-Markups.changes +++ b/python-Markups.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 14 06:06:17 UTC 2025 - Steve Kowalik + +- Support both lowercased and unnormalized metadata directory names. + ------------------------------------------------------------------- Tue Mar 25 03:42:19 UTC 2025 - Steve Kowalik diff --git a/python-Markups.spec b/python-Markups.spec index 7a6b7a8..3043564 100644 --- a/python-Markups.spec +++ b/python-Markups.spec @@ -64,6 +64,6 @@ such as Markdown and reStructuredText (these two are supported by default). %license LICENSE %doc README.rst changelog %{python_sitelib}/markups -%{python_sitelib}/markups-%{version}.dist-info +%{python_sitelib}/[Mm]arkups-%{version}.dist-info %changelog