15
0
Files
python-Markups/python-Markups.spec
Matej Cepl 0bd2a3bd85 - 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:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=17
2024-11-12 15:22:30 +00:00

71 lines
2.1 KiB
RPMSpec

#
# spec file for package python-Markups
#
# 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
# 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.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
BuildArch: noarch
# SECTION Required for %%check
BuildRequires: %{python_module markdown-math}
# /SECTION
%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}*-info
%changelog