2023-01-21 07:41:07 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pymdown-extensions
|
|
|
|
#
|
2025-01-09 01:40:45 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2023-01-21 07:41:07 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2025-01-21 06:55:03 +00:00
|
|
|
%define skip_python2 1
|
|
|
|
%define skip_python36 1
|
|
|
|
%{?sle15_python_module_pythons}
|
2023-01-21 07:41:07 +00:00
|
|
|
Name: python-pymdown-extensions
|
2025-01-09 01:40:45 +00:00
|
|
|
Version: 10.14
|
2023-01-21 07:41:07 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Extension pack for Python Markdown
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/facelessuser/pymdown-extensions
|
|
|
|
Source: https://github.com/facelessuser/pymdown-extensions/archive/refs/tags/%{version}.tar.gz#/pymdown-extensions-%{version}.tar.gz
|
- Update to 10.12:
* NEW: Blocks: Blocks extensions no longer considered in beta.
* NEW: Details: Details is marked as "legacy" in documentation in favor
of the new pymdownx.blocks.details approach.
* NEW: Tabbed: Tabbed is marked as "legacy" in documentation in favor of
the new pymdownx.blocks.tab approach.
* NEW: Caption: Add new "blocks" style extension called Caption which
helps with specifying figures with captions.
* NEW: Emoji: Add a new strict option that will raise an exception if an
emoji is used whose name has changed, removed, or never existed.
* FIX: Emoji: Emoji links should be generated such that they point to the
new CDN version.
* FIX: SuperFences: Fix a regression where certain patterns could cause
a hang.
* FIX: SuperFences: Fix regression where an omitted language in conjunction
with options in the fenced header can cause a fence to not be parsed.
* FIX: BetterEm: Add better support for *em, **em,strong*** and _em,
__em,strong___ cases.
* FIX: Caret: Add better support for *sup, **sup,ins***.
* FIX: Tilde: Add better support for *sub, **sub,del***.
* FIX: FancyLists: Remove a mistaken semicolon from injected classes.
* NEW: FancyLists: Add new FancyLists extension.
* NEW: Emoji: Update Twemoji data to the latest.
* FIX: PathConverter: Fixes for latest changes in Python regarding
urlunparse.
* NEW: Officially support Python 3.13.
* FIX: Snippets: Better handling of cases where URL snippet requests
contain no header length.
* FIX: Snippets: Fix snippet line range with a start of line 1.
* NEW: Require Python Markdown 3.6+.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymdown-extensions?expand=0&rev=16
2024-11-03 02:38:55 +00:00
|
|
|
BuildRequires: %{python_module Markdown >= 3.6}
|
2025-01-21 06:55:03 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2023-01-21 07:41:07 +00:00
|
|
|
BuildRequires: %{python_module hatchling}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
# test requirements
|
|
|
|
BuildRequires: %{python_module PyYAML >= 3.10}
|
2025-01-21 06:55:03 +00:00
|
|
|
BuildRequires: %{python_module Pygments >= 2.19.1}
|
2023-01-21 07:41:07 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
#
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
- Update to 10.12:
* NEW: Blocks: Blocks extensions no longer considered in beta.
* NEW: Details: Details is marked as "legacy" in documentation in favor
of the new pymdownx.blocks.details approach.
* NEW: Tabbed: Tabbed is marked as "legacy" in documentation in favor of
the new pymdownx.blocks.tab approach.
* NEW: Caption: Add new "blocks" style extension called Caption which
helps with specifying figures with captions.
* NEW: Emoji: Add a new strict option that will raise an exception if an
emoji is used whose name has changed, removed, or never existed.
* FIX: Emoji: Emoji links should be generated such that they point to the
new CDN version.
* FIX: SuperFences: Fix a regression where certain patterns could cause
a hang.
* FIX: SuperFences: Fix regression where an omitted language in conjunction
with options in the fenced header can cause a fence to not be parsed.
* FIX: BetterEm: Add better support for *em, **em,strong*** and _em,
__em,strong___ cases.
* FIX: Caret: Add better support for *sup, **sup,ins***.
* FIX: Tilde: Add better support for *sub, **sub,del***.
* FIX: FancyLists: Remove a mistaken semicolon from injected classes.
* NEW: FancyLists: Add new FancyLists extension.
* NEW: Emoji: Update Twemoji data to the latest.
* FIX: PathConverter: Fixes for latest changes in Python regarding
urlunparse.
* NEW: Officially support Python 3.13.
* FIX: Snippets: Better handling of cases where URL snippet requests
contain no header length.
* FIX: Snippets: Fix snippet line range with a start of line 1.
* NEW: Require Python Markdown 3.6+.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymdown-extensions?expand=0&rev=16
2024-11-03 02:38:55 +00:00
|
|
|
Requires: python-Markdown >= 3.6
|
2023-04-25 11:43:55 +00:00
|
|
|
Requires: python-PyYAML >= 3.10
|
2025-01-21 06:55:03 +00:00
|
|
|
Recommends: python-Pygments >= 2.19.1
|
2023-01-21 07:41:07 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
PyMdown Extensions is a collection of extensions for Python Markdown.
|
|
|
|
|
|
|
|
They were originally written to make writing documentation more enjoyable.
|
|
|
|
Covering a wide range of solutions, and while not every extension is needed
|
|
|
|
by all people, there is usually at least one useful extension for anybody.
|
|
|
|
|
|
|
|
%prep
|
2024-03-22 02:47:04 +00:00
|
|
|
%autosetup -p1 -n pymdown-extensions-%{version}
|
2023-01-21 07:41:07 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
find %{buildroot} -type f -name "*.py" -exec chmod a-x {} +
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE.md
|
|
|
|
%{python_sitelib}/pymdownx
|
|
|
|
%{python_sitelib}/pymdown_extensions-%{version}.dist-info
|
|
|
|
|
|
|
|
%changelog
|