14
0
Files
python-pymdown-extensions/python-pymdown-extensions.spec
Dirk Mueller c135a3f025 - update to 10.7:
* NEW: Emoji: Update Twemoji and Gemoji data to latest.
  * NEW: Emoji: Due to recent Gemoji update, non-standard emoji
    are no longer indexed. So emoji such as :octocat: are no
    longer resolved.
  * NEW: Highlight: Added new option default_lang which will
    cause code blocks with no language specifier to be
    highlighted with the specified default language instead of
    plain text. This affects indented code blocks and code blocks
    defined with SuperFences.
  * NEW: InlineHilite: style_plain_text can be specified with a
    language string (in addition to its previous boolean
    requirement) to treat inline code blocks with no explicit
    language specifier with a specific default language.
  * NEW: MagicLink: Allow configuring custom
    repository providers based off the existing providers.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymdown-extensions?expand=0&rev=10
2023-12-31 13:43:32 +00:00

70 lines
2.2 KiB
RPMSpec

#
# spec file for package python-pymdown-extensions
#
# Copyright (c) 2023 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-pymdown-extensions
Version: 10.7
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.2}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
# test requirements
BuildRequires: %{python_module PyYAML >= 3.10}
BuildRequires: %{python_module Pygments >= 2.12}
BuildRequires: %{python_module pytest}
#
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Markdown >= 3.2
Requires: python-PyYAML >= 3.10
Recommends: python-Pygments >= 2.12
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
%setup -q -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