forked from pool/python-pymdown-extensions
* **NEW**: SuperFences: Add `relaxed_headers` option which can tolerate bad content in the fenced code header. When enabled, code blocks with bad content in the header will likely still convert into code blocks, often respecting the specified language. * **NEW**: Add type hints to the Blocks interface and a few additional files. * **FIX**: Blocks: Fix some corner cases of nested blocks with lists. * **FIX**: Tab and Tabbed: Fix a case where tabs could fail if `combine_header_slug` was enabled and there was no header. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymdown-extensions?expand=0&rev=28
74 lines
2.4 KiB
RPMSpec
74 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-pymdown-extensions
|
|
#
|
|
# 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 skip_python2 1
|
|
%define skip_python36 1
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pymdown-extensions
|
|
Version: 10.15
|
|
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
|
|
BuildRequires: %{python_module Markdown >= 3.6}
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
BuildRequires: %{python_module hatchling}
|
|
BuildRequires: %{python_module pip}
|
|
# test requirements
|
|
BuildRequires: %{python_module PyYAML >= 3.10}
|
|
BuildRequires: %{python_module Pygments >= 2.19.1}
|
|
BuildRequires: %{python_module pytest}
|
|
#
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Markdown >= 3.6
|
|
Requires: python-PyYAML >= 3.10
|
|
Recommends: python-Pygments >= 2.19.1
|
|
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
|
|
%autosetup -p1 -n pymdown-extensions-%{version}
|
|
|
|
%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
|