python-mdit-py-plugins/python-mdit-py-plugins.spec

64 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-mdit-py-plugins
#
- Update to version 0.4.0: * UPGRADE: Drop python 3.7 and support 3.11 (#77) * UPGRADE: Allow markdown-it-py v3 (#85) - Make field_list compatible with latest upstream (#75) - Convert state.srcCharCode -> state.src (#84) - Remove unnecessary method arg by @chrisjsewell in( #76) - Centralise code block test (#83 and #87) - This means that disabling the code block rule in markdown-it-py v3+ will now allow all syntax blocks to be indented by any amount of whitespace. * Improve dollarmath plugin: Add allow_blank_lines option, thanks to @eric-wieser (#46) * Improve admon plugin: Add ??? support, thanks to @KyleKing (#58) * MAINTAIN: Make type checking strict (#86) - v0.3.5: * FIX: Regression in dollarmath by @chrisjsewell in #69 * Fix regression in amsmath by @chrisjsewell in #70 * Correct project documentation link by @andersk in #73 * RELEASE v0.3.5 by @chrisjsewell in #74 - v0.3.4: * NEW: Add attrs_block_plugin by @chrisjsewell in #66 * Improve field lists by @chrisjsewell in #65 * Update pre-commit by @chrisjsewell in #64 (moving from flake8 to ruff) - v0.3.3: * FIX: attrs: span with end of inline before attrs by @chrisjsewell in #57 - v0.3.2: * MAINTAIN: Fix pre-commit configuration by @hukkin in #54 * NEW: Add span parsing to inline attributes plugin by @chrisjsewell in #55 * FIX: Task list item marker can be followed by any GFM whitespace by @hukkin in #42 * NEW: Port admon plugin by @KyleKing in #53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mdit-py-plugins?expand=0&rev=7
2023-11-23 08:32:23 +01:00
# 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/
#
- Update to version 0.4.0: * UPGRADE: Drop python 3.7 and support 3.11 (#77) * UPGRADE: Allow markdown-it-py v3 (#85) - Make field_list compatible with latest upstream (#75) - Convert state.srcCharCode -> state.src (#84) - Remove unnecessary method arg by @chrisjsewell in( #76) - Centralise code block test (#83 and #87) - This means that disabling the code block rule in markdown-it-py v3+ will now allow all syntax blocks to be indented by any amount of whitespace. * Improve dollarmath plugin: Add allow_blank_lines option, thanks to @eric-wieser (#46) * Improve admon plugin: Add ??? support, thanks to @KyleKing (#58) * MAINTAIN: Make type checking strict (#86) - v0.3.5: * FIX: Regression in dollarmath by @chrisjsewell in #69 * Fix regression in amsmath by @chrisjsewell in #70 * Correct project documentation link by @andersk in #73 * RELEASE v0.3.5 by @chrisjsewell in #74 - v0.3.4: * NEW: Add attrs_block_plugin by @chrisjsewell in #66 * Improve field lists by @chrisjsewell in #65 * Update pre-commit by @chrisjsewell in #64 (moving from flake8 to ruff) - v0.3.3: * FIX: attrs: span with end of inline before attrs by @chrisjsewell in #57 - v0.3.2: * MAINTAIN: Fix pre-commit configuration by @hukkin in #54 * NEW: Add span parsing to inline attributes plugin by @chrisjsewell in #55 * FIX: Task list item marker can be followed by any GFM whitespace by @hukkin in #42 * NEW: Port admon plugin by @KyleKing in #53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mdit-py-plugins?expand=0&rev=7
2023-11-23 08:32:23 +01:00
%{?sle15_python_module_pythons}
Name: python-mdit-py-plugins
- Update to version 0.4.0: * UPGRADE: Drop python 3.7 and support 3.11 (#77) * UPGRADE: Allow markdown-it-py v3 (#85) - Make field_list compatible with latest upstream (#75) - Convert state.srcCharCode -> state.src (#84) - Remove unnecessary method arg by @chrisjsewell in( #76) - Centralise code block test (#83 and #87) - This means that disabling the code block rule in markdown-it-py v3+ will now allow all syntax blocks to be indented by any amount of whitespace. * Improve dollarmath plugin: Add allow_blank_lines option, thanks to @eric-wieser (#46) * Improve admon plugin: Add ??? support, thanks to @KyleKing (#58) * MAINTAIN: Make type checking strict (#86) - v0.3.5: * FIX: Regression in dollarmath by @chrisjsewell in #69 * Fix regression in amsmath by @chrisjsewell in #70 * Correct project documentation link by @andersk in #73 * RELEASE v0.3.5 by @chrisjsewell in #74 - v0.3.4: * NEW: Add attrs_block_plugin by @chrisjsewell in #66 * Improve field lists by @chrisjsewell in #65 * Update pre-commit by @chrisjsewell in #64 (moving from flake8 to ruff) - v0.3.3: * FIX: attrs: span with end of inline before attrs by @chrisjsewell in #57 - v0.3.2: * MAINTAIN: Fix pre-commit configuration by @hukkin in #54 * NEW: Add span parsing to inline attributes plugin by @chrisjsewell in #55 * FIX: Task list item marker can be followed by any GFM whitespace by @hukkin in #42 * NEW: Port admon plugin by @KyleKing in #53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mdit-py-plugins?expand=0&rev=7
2023-11-23 08:32:23 +01:00
Version: 0.4.0
Release: 0
Summary: Collection of plugins for markdown-it-py
License: MIT
URL: https://mdit-py-plugins.readthedocs.io/
Source: https://github.com/executablebooks/mdit-py-plugins/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
- Update to version 0.4.0: * UPGRADE: Drop python 3.7 and support 3.11 (#77) * UPGRADE: Allow markdown-it-py v3 (#85) - Make field_list compatible with latest upstream (#75) - Convert state.srcCharCode -> state.src (#84) - Remove unnecessary method arg by @chrisjsewell in( #76) - Centralise code block test (#83 and #87) - This means that disabling the code block rule in markdown-it-py v3+ will now allow all syntax blocks to be indented by any amount of whitespace. * Improve dollarmath plugin: Add allow_blank_lines option, thanks to @eric-wieser (#46) * Improve admon plugin: Add ??? support, thanks to @KyleKing (#58) * MAINTAIN: Make type checking strict (#86) - v0.3.5: * FIX: Regression in dollarmath by @chrisjsewell in #69 * Fix regression in amsmath by @chrisjsewell in #70 * Correct project documentation link by @andersk in #73 * RELEASE v0.3.5 by @chrisjsewell in #74 - v0.3.4: * NEW: Add attrs_block_plugin by @chrisjsewell in #66 * Improve field lists by @chrisjsewell in #65 * Update pre-commit by @chrisjsewell in #64 (moving from flake8 to ruff) - v0.3.3: * FIX: attrs: span with end of inline before attrs by @chrisjsewell in #57 - v0.3.2: * MAINTAIN: Fix pre-commit configuration by @hukkin in #54 * NEW: Add span parsing to inline attributes plugin by @chrisjsewell in #55 * FIX: Task list item marker can be followed by any GFM whitespace by @hukkin in #42 * NEW: Port admon plugin by @KyleKing in #53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mdit-py-plugins?expand=0&rev=7
2023-11-23 08:32:23 +01:00
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module markdown-it-py}
- Update to version 0.4.0: * UPGRADE: Drop python 3.7 and support 3.11 (#77) * UPGRADE: Allow markdown-it-py v3 (#85) - Make field_list compatible with latest upstream (#75) - Convert state.srcCharCode -> state.src (#84) - Remove unnecessary method arg by @chrisjsewell in( #76) - Centralise code block test (#83 and #87) - This means that disabling the code block rule in markdown-it-py v3+ will now allow all syntax blocks to be indented by any amount of whitespace. * Improve dollarmath plugin: Add allow_blank_lines option, thanks to @eric-wieser (#46) * Improve admon plugin: Add ??? support, thanks to @KyleKing (#58) * MAINTAIN: Make type checking strict (#86) - v0.3.5: * FIX: Regression in dollarmath by @chrisjsewell in #69 * Fix regression in amsmath by @chrisjsewell in #70 * Correct project documentation link by @andersk in #73 * RELEASE v0.3.5 by @chrisjsewell in #74 - v0.3.4: * NEW: Add attrs_block_plugin by @chrisjsewell in #66 * Improve field lists by @chrisjsewell in #65 * Update pre-commit by @chrisjsewell in #64 (moving from flake8 to ruff) - v0.3.3: * FIX: attrs: span with end of inline before attrs by @chrisjsewell in #57 - v0.3.2: * MAINTAIN: Fix pre-commit configuration by @hukkin in #54 * NEW: Add span parsing to inline attributes plugin by @chrisjsewell in #55 * FIX: Task list item marker can be followed by any GFM whitespace by @hukkin in #42 * NEW: Port admon plugin by @KyleKing in #53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mdit-py-plugins?expand=0&rev=7
2023-11-23 08:32:23 +01:00
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
# SECTION tests
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-regressions}
BuildRequires: fdupes
#Source: https://files.pythonhosted.org/packages/source/m/mdit-py-plugins/mdit-py-plugins-%%{version}.tar.gz
BuildRequires: python-rpm-macros
Requires: python-markdown-it-py
BuildArch: noarch
%python_subpackages
%description
Collection of core plugins for markdown-it-py.
%prep
- Update to version 0.4.0: * UPGRADE: Drop python 3.7 and support 3.11 (#77) * UPGRADE: Allow markdown-it-py v3 (#85) - Make field_list compatible with latest upstream (#75) - Convert state.srcCharCode -> state.src (#84) - Remove unnecessary method arg by @chrisjsewell in( #76) - Centralise code block test (#83 and #87) - This means that disabling the code block rule in markdown-it-py v3+ will now allow all syntax blocks to be indented by any amount of whitespace. * Improve dollarmath plugin: Add allow_blank_lines option, thanks to @eric-wieser (#46) * Improve admon plugin: Add ??? support, thanks to @KyleKing (#58) * MAINTAIN: Make type checking strict (#86) - v0.3.5: * FIX: Regression in dollarmath by @chrisjsewell in #69 * Fix regression in amsmath by @chrisjsewell in #70 * Correct project documentation link by @andersk in #73 * RELEASE v0.3.5 by @chrisjsewell in #74 - v0.3.4: * NEW: Add attrs_block_plugin by @chrisjsewell in #66 * Improve field lists by @chrisjsewell in #65 * Update pre-commit by @chrisjsewell in #64 (moving from flake8 to ruff) - v0.3.3: * FIX: attrs: span with end of inline before attrs by @chrisjsewell in #57 - v0.3.2: * MAINTAIN: Fix pre-commit configuration by @hukkin in #54 * NEW: Add span parsing to inline attributes plugin by @chrisjsewell in #55 * FIX: Task list item marker can be followed by any GFM whitespace by @hukkin in #42 * NEW: Port admon plugin by @KyleKing in #53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mdit-py-plugins?expand=0&rev=7
2023-11-23 08:32:23 +01:00
%autosetup -p1 -n mdit-py-plugins-%{version}
%build
- Update to version 0.4.0: * UPGRADE: Drop python 3.7 and support 3.11 (#77) * UPGRADE: Allow markdown-it-py v3 (#85) - Make field_list compatible with latest upstream (#75) - Convert state.srcCharCode -> state.src (#84) - Remove unnecessary method arg by @chrisjsewell in( #76) - Centralise code block test (#83 and #87) - This means that disabling the code block rule in markdown-it-py v3+ will now allow all syntax blocks to be indented by any amount of whitespace. * Improve dollarmath plugin: Add allow_blank_lines option, thanks to @eric-wieser (#46) * Improve admon plugin: Add ??? support, thanks to @KyleKing (#58) * MAINTAIN: Make type checking strict (#86) - v0.3.5: * FIX: Regression in dollarmath by @chrisjsewell in #69 * Fix regression in amsmath by @chrisjsewell in #70 * Correct project documentation link by @andersk in #73 * RELEASE v0.3.5 by @chrisjsewell in #74 - v0.3.4: * NEW: Add attrs_block_plugin by @chrisjsewell in #66 * Improve field lists by @chrisjsewell in #65 * Update pre-commit by @chrisjsewell in #64 (moving from flake8 to ruff) - v0.3.3: * FIX: attrs: span with end of inline before attrs by @chrisjsewell in #57 - v0.3.2: * MAINTAIN: Fix pre-commit configuration by @hukkin in #54 * NEW: Add span parsing to inline attributes plugin by @chrisjsewell in #55 * FIX: Task list item marker can be followed by any GFM whitespace by @hukkin in #42 * NEW: Port admon plugin by @KyleKing in #53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mdit-py-plugins?expand=0&rev=7
2023-11-23 08:32:23 +01:00
%pyproject_wheel
%install
- Update to version 0.4.0: * UPGRADE: Drop python 3.7 and support 3.11 (#77) * UPGRADE: Allow markdown-it-py v3 (#85) - Make field_list compatible with latest upstream (#75) - Convert state.srcCharCode -> state.src (#84) - Remove unnecessary method arg by @chrisjsewell in( #76) - Centralise code block test (#83 and #87) - This means that disabling the code block rule in markdown-it-py v3+ will now allow all syntax blocks to be indented by any amount of whitespace. * Improve dollarmath plugin: Add allow_blank_lines option, thanks to @eric-wieser (#46) * Improve admon plugin: Add ??? support, thanks to @KyleKing (#58) * MAINTAIN: Make type checking strict (#86) - v0.3.5: * FIX: Regression in dollarmath by @chrisjsewell in #69 * Fix regression in amsmath by @chrisjsewell in #70 * Correct project documentation link by @andersk in #73 * RELEASE v0.3.5 by @chrisjsewell in #74 - v0.3.4: * NEW: Add attrs_block_plugin by @chrisjsewell in #66 * Improve field lists by @chrisjsewell in #65 * Update pre-commit by @chrisjsewell in #64 (moving from flake8 to ruff) - v0.3.3: * FIX: attrs: span with end of inline before attrs by @chrisjsewell in #57 - v0.3.2: * MAINTAIN: Fix pre-commit configuration by @hukkin in #54 * NEW: Add span parsing to inline attributes plugin by @chrisjsewell in #55 * FIX: Task list item marker can be followed by any GFM whitespace by @hukkin in #42 * NEW: Port admon plugin by @KyleKing in #53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mdit-py-plugins?expand=0&rev=7
2023-11-23 08:32:23 +01:00
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
- Update to version 0.4.0: * UPGRADE: Drop python 3.7 and support 3.11 (#77) * UPGRADE: Allow markdown-it-py v3 (#85) - Make field_list compatible with latest upstream (#75) - Convert state.srcCharCode -> state.src (#84) - Remove unnecessary method arg by @chrisjsewell in( #76) - Centralise code block test (#83 and #87) - This means that disabling the code block rule in markdown-it-py v3+ will now allow all syntax blocks to be indented by any amount of whitespace. * Improve dollarmath plugin: Add allow_blank_lines option, thanks to @eric-wieser (#46) * Improve admon plugin: Add ??? support, thanks to @KyleKing (#58) * MAINTAIN: Make type checking strict (#86) - v0.3.5: * FIX: Regression in dollarmath by @chrisjsewell in #69 * Fix regression in amsmath by @chrisjsewell in #70 * Correct project documentation link by @andersk in #73 * RELEASE v0.3.5 by @chrisjsewell in #74 - v0.3.4: * NEW: Add attrs_block_plugin by @chrisjsewell in #66 * Improve field lists by @chrisjsewell in #65 * Update pre-commit by @chrisjsewell in #64 (moving from flake8 to ruff) - v0.3.3: * FIX: attrs: span with end of inline before attrs by @chrisjsewell in #57 - v0.3.2: * MAINTAIN: Fix pre-commit configuration by @hukkin in #54 * NEW: Add span parsing to inline attributes plugin by @chrisjsewell in #55 * FIX: Task list item marker can be followed by any GFM whitespace by @hukkin in #42 * NEW: Port admon plugin by @KyleKing in #53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mdit-py-plugins?expand=0&rev=7
2023-11-23 08:32:23 +01:00
%pytest
%files %{python_files}
%doc README.md CHANGELOG.md docs/index.md
%license LICENSE
%{python_sitelib}/mdit_py_plugins/
%{python_sitelib}/mdit_py_plugins-%{version}*-info
%changelog