From 0bd2a3bd852920c5bf875f8a3e23b6185530ca3c3b83f3263fb1ae803fe851cc Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 12 Nov 2024 15:22:30 +0000 Subject: [PATCH 1/3] =?UTF-8?q?-=20Update=20to=204.0.0:=20=20=20Incompatib?= =?UTF-8?q?le=20changes:=20=20=20-=20Python=20versions=20older=20than=203.?= =?UTF-8?q?9=20are=20no=20longer=20supported.=20=20=20-=20Python-Markdown?= =?UTF-8?q?=20versions=20older=20than=203.0=20are=20no=20longer=20supporte?= =?UTF-8?q?d.=20=20=20-=20Setuptools=2061.2=20or=20higher=20is=20required?= =?UTF-8?q?=20to=20build=20the=20project.=20=20=20-=20``setup.py``=20has?= =?UTF-8?q?=20been=20removed.=20Use=20``pip``,=20``build``=20or=20other=20?= =?UTF-8?q?:PEP:`517`=20=20=20=20=20compatible=20tool.=20=20=20Other=20cha?= =?UTF-8?q?nges:=20=20=20-=20Added=20AsciiDocMarkup=20(contributed=20by=20?= =?UTF-8?q?Dave=20Kuhlman=20in=20#17).=20=20=20-=20Made=20the=20tests=20pa?= =?UTF-8?q?ss=20with=20Pygments=20=E2=89=A5=202.11.=20=20=20-=20Made=20the?= =?UTF-8?q?=20tests=20pass=20when=20PyYAML=20is=20not=20installed=20(#18).?= =?UTF-8?q?=20=20=20-=20Reformatted=20code=20in=20accordance=20with=20:PEP?= =?UTF-8?q?:`8`=20standard.=20=20=20-=20Fixed=20mypy=20errors=20and=20adde?= =?UTF-8?q?d=20a=20:PEP:`561`=20``py.typed``=20file.=20-=20Update=20to=203?= =?UTF-8?q?.1.3:=20=20=20-=20Fixed=20logic=20to=20load=20extensions=20file?= =?UTF-8?q?=20when=20PyYAML=20module=20is=20not=20available=20=20=20=20=20?= =?UTF-8?q?(issue=20#16,=20thanks=20foxB612=20for=20the=20bug=20report).?= =?UTF-8?q?=20=20=20-=20Made=20the=20tests=20pass=20with=20docutils=200.18?= =?UTF-8?q?.=20-=20Update=20to=203.1.2:=20=20=20-=20Incompatible=20change:?= =?UTF-8?q?=20Python=203.6=20is=20no=20longer=20supported.=20=20=20-=20Fix?= =?UTF-8?q?ed=20replacing=20Markdown=20extensions=20in=20document.=20=20?= =?UTF-8?q?=20-=20Fixed=20crash=20when=20using=20TOC=20backrefs=20in=20reS?= =?UTF-8?q?tructuredText=20(issue=20#14,=20=20=20=20=20thanks=20Hrissimir?= =?UTF-8?q?=20for=20the=20patch).=20-=20Update=20to=203.1.1:=20=20=20-=20T?= =?UTF-8?q?he=20reStructuredText=20markup=20now=20includes=20line=20number?= =?UTF-8?q?s=20information=20in=20=20=20=20=20``data-posmap``=20attributes?= =?UTF-8?q?.=20=20=20-=20The=20reStructuredText=20markup=20now=20uses=20on?= =?UTF-8?q?ly=20``minimal.css``=20stylesheet=20=20=20=20=20(not=20``plain.?= =?UTF-8?q?css``=20anymore).=20=20=20-=20Added=20support=20for=20the=20upc?= =?UTF-8?q?oming=20docutils=200.17=20release=20to=20the=20tests.=20-=20Upd?= =?UTF-8?q?ate=20to=203.1.0:=20=20=20Incompatible=20changes:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=17 --- Markups-3.0.0.tar.gz | 3 --- Markups-4.0.0.tar.gz | 3 +++ python-Markups.changes | 45 ++++++++++++++++++++++++++++++++++++++++++ python-Markups.spec | 24 +++++++++++++++------- 4 files changed, 65 insertions(+), 10 deletions(-) delete mode 100644 Markups-3.0.0.tar.gz create mode 100644 Markups-4.0.0.tar.gz diff --git a/Markups-3.0.0.tar.gz b/Markups-3.0.0.tar.gz deleted file mode 100644 index 2a3bd22..0000000 --- a/Markups-3.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -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/python-Markups.changes b/python-Markups.changes index c6c17cc..ee191d5 100644 --- a/python-Markups.changes +++ b/python-Markups.changes @@ -1,3 +1,48 @@ +------------------------------------------------------------------- +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 diff --git a/python-Markups.spec b/python-Markups.spec index 4521b1b..d469660 100644 --- a/python-Markups.spec +++ b/python-Markups.spec @@ -1,7 +1,7 @@ # # spec file for package python-Markups # -# Copyright (c) 2021 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 @@ -16,15 +16,24 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Markups -Version: 3.0.0 +Version: 4.0.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 +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-markdown-math @@ -39,13 +48,13 @@ This module provides a wrapper around the various text markup languages, such as Markdown and reStructuredText (these two are supported by default). %prep -%setup -q -n Markups-%{version} +%autosetup -p1 -n Markups-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -55,6 +64,7 @@ such as Markdown and reStructuredText (these two are supported by default). %files %{python_files} %license LICENSE %doc README.rst changelog -%{python_sitelib}/* +%{python_sitelib}/markups +%{python_sitelib}/Markups-%{version}*-info %changelog From 56b00ba6766c8d9ae04f1f724bbbaf7816a14b98ed22d1e7d972939957ce98e3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 15 Nov 2024 09:53:10 +0000 Subject: [PATCH 2/3] typo OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=18 --- python-Markups.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-Markups.spec b/python-Markups.spec index d469660..c55518c 100644 --- a/python-Markups.spec +++ b/python-Markups.spec @@ -36,7 +36,7 @@ BuildRequires: %{python_module wheel} BuildRequires: asciidoc BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-markdown-math +Requires: python-python-markdown-math BuildArch: noarch # SECTION Required for %%check BuildRequires: %{python_module markdown-math} From 43342082f9c43c72f373b25983f9c05b0ca44459b553e0d02bf1c453b7b27fee Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 15 Nov 2024 10:20:08 +0000 Subject: [PATCH 3/3] typo2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=19 --- python-Markups.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/python-Markups.spec b/python-Markups.spec index c55518c..e5291ba 100644 --- a/python-Markups.spec +++ b/python-Markups.spec @@ -38,9 +38,6 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-python-markdown-math BuildArch: noarch -# SECTION Required for %%check -BuildRequires: %{python_module markdown-math} -# /SECTION %python_subpackages %description