forked from pool/python-myst-parser
Accepting request 1128268 from devel:languages:python
Should be staged with sr#1128267, sr#1128266 - Update to version 2.0.0: - This release primarily updates core myst-parser dependencies, with some minor changes to parsing behaviour: - UPGRADE: markdown-it-py to v3 (#773) - This is mainly a non-breaking change, fixing some edge cases in parsing - See: https://github.com/executablebooks/markdown-it-py/releases/tag/v3.0.0 - and https://github.com/executablebooks/mdit-py-plugins/releases/tag/v0.4.0 - UPGRADE: linkify-it-py to v2 (#675) - Also fixes some edge cases in parsing - See: https://github.com/tsutsu3/linkify-it-py/blob/main/CHANGELOG.md - UPGRADE: Add support for docutils v0.20 (#775) - No significant changes, see https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-20-2023-05-04 - UPGRADE: Add support for sphinx v7, and remove v5 support (#776) - No significant changes, see https://www.sphinx-doc.org/en/master/changes.html - UPGRADE: Remove Python 3.7 support and add testing for Python 3.11 (#772) - Improve default slug generation for heading anchors, thanks to @Cimbali (#777) - This change makes the slug generation closer to GitHub, in that, starting/ending whitespace will not be stripped. - For example, # ` a` b `c ` will now correctly create the slug -a-b-c- and not a-b-c - IMPROVE: Substitution extension (#777) - Allow any value type (including dict, list, datetime) and emit a myst.substitution warning for errors in resolving the substitution content. - Introduce a gate/check GHA job, thanks to @webknjaz (#635) - v1.0.0: - This changes absolutely nothing in the code, or about the maintenance/release policy of this project. But it does feel OBS-URL: https://build.opensuse.org/request/show/1128268 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-myst-parser?expand=0&rev=4
This commit is contained in:
commit
2114bd2ffc
BIN
python-myst-parser-0.17.2.tar.gz
(Stored with Git LFS)
BIN
python-myst-parser-0.17.2.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
python-myst-parser-2.0.0.tar.gz
Normal file
3
python-myst-parser-2.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6d03d257af6e7a4f336aaccd400e13537a85a0c260a58f95de51618c46b51579
|
||||||
|
size 815453
|
@ -1,3 +1,84 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 23 07:46:00 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Update to version 2.0.0:
|
||||||
|
- This release primarily updates core myst-parser dependencies, with
|
||||||
|
some minor changes to parsing behaviour:
|
||||||
|
- UPGRADE: markdown-it-py to v3 (#773)
|
||||||
|
- This is mainly a non-breaking change, fixing some edge cases in parsing
|
||||||
|
- See: https://github.com/executablebooks/markdown-it-py/releases/tag/v3.0.0
|
||||||
|
- and https://github.com/executablebooks/mdit-py-plugins/releases/tag/v0.4.0
|
||||||
|
- UPGRADE: linkify-it-py to v2 (#675)
|
||||||
|
- Also fixes some edge cases in parsing
|
||||||
|
- See: https://github.com/tsutsu3/linkify-it-py/blob/main/CHANGELOG.md
|
||||||
|
- UPGRADE: Add support for docutils v0.20 (#775)
|
||||||
|
- No significant changes, see https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-20-2023-05-04
|
||||||
|
- UPGRADE: Add support for sphinx v7, and remove v5 support (#776)
|
||||||
|
- No significant changes, see https://www.sphinx-doc.org/en/master/changes.html
|
||||||
|
- UPGRADE: Remove Python 3.7 support and add testing for Python
|
||||||
|
3.11 (#772)
|
||||||
|
- Improve default slug generation for heading anchors, thanks to
|
||||||
|
@Cimbali (#777)
|
||||||
|
- This change makes the slug generation closer to GitHub, in
|
||||||
|
that, starting/ending whitespace will not be stripped.
|
||||||
|
- For example, # ` a` b `c ` will now correctly create the slug
|
||||||
|
-a-b-c- and not a-b-c
|
||||||
|
- IMPROVE: Substitution extension (#777)
|
||||||
|
- Allow any value type (including dict, list, datetime) and emit
|
||||||
|
a myst.substitution warning for errors in resolving the
|
||||||
|
substitution content.
|
||||||
|
- Introduce a gate/check GHA job, thanks to @webknjaz (#635)
|
||||||
|
|
||||||
|
- v1.0.0:
|
||||||
|
- This changes absolutely nothing in the code, or about the
|
||||||
|
maintenance/release policy of this project. But it does feel
|
||||||
|
about time :D
|
||||||
|
- v0.19.2:
|
||||||
|
- NEW: Add myst_fence_as_directive config by @chrisjsewell in #742
|
||||||
|
- Fix the sphinx-design example by @recfab in #738
|
||||||
|
- Add html_last_updated_fmt = "" to conf.py by @jeanas in #691
|
||||||
|
- v0.19.1:
|
||||||
|
- FIX NoURI error in doc reference resolution, for texinfo builds by
|
||||||
|
@chrisjsewell in #734
|
||||||
|
- v0.19.0:
|
||||||
|
- This release brings a number of exciting new features,
|
||||||
|
improvements
|
||||||
|
- Rewritten documentation, with a clearer structure, many more
|
||||||
|
examples, rich hover tips, and a new live preview page (powered
|
||||||
|
by pyscript)
|
||||||
|
- The code base API is also now fully documented by
|
||||||
|
https://sphinx-autodoc2.readthedocs.io/, which even allows for
|
||||||
|
MyST docstrings!
|
||||||
|
- Add Sphinx 6 support
|
||||||
|
- Extended docutils (single-page) support
|
||||||
|
- Extended Markdown links, including intersphinx support, e.g.
|
||||||
|
[text](inv:name#target)
|
||||||
|
- {} New attributes syntax, to extend common Markdown syntaxes,
|
||||||
|
e.g. {#id .class width=100px}
|
||||||
|
- v0.18.1:
|
||||||
|
- MAINTAIN: Minor fixes by @chrisjsewell in #585
|
||||||
|
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #586
|
||||||
|
- DOCS: redundant trailing ) by @Ab2nour in #588
|
||||||
|
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #595
|
||||||
|
- DOCS: Fix typos in syntax.md by @StefanBrand in #596
|
||||||
|
- DOCS: Fix sphinxcontrib.mermaid typo by @bskinn in #599
|
||||||
|
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #598
|
||||||
|
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #603
|
||||||
|
- DOCS: Fix gallery link by @chrisjsewell in #605
|
||||||
|
- FIX: set myst-anchor read/write encoding as utf8 by @chrisjsewell in #610
|
||||||
|
- UPGRADE: docutils 0.19 support by @chrisjsewell in #611
|
||||||
|
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #608
|
||||||
|
- Update MySTyc URL by @astrojuanlu in #616
|
||||||
|
- NEW: Add attrs_image (experimental) extension by @chrisjsewell in #620
|
||||||
|
- RELEASE: 0.18.1 by @chrisjsewell in #621
|
||||||
|
- v0.18.0:
|
||||||
|
- IMPROVE: Do not let sphinx check the config type by @chrisjsewell in #559
|
||||||
|
- Restructure code base and documentation by @chrisjsewell in #566
|
||||||
|
- FIX: floor table column widths to integers by @Jean-Abou-Samra in #568
|
||||||
|
- Drop Sphinx 3, add Sphinx 5 by @chrisjsewell in #579
|
||||||
|
- FIX: parse_directive_text when body followed by options by @chrisjsewell in #580
|
||||||
|
- RELEASE: 0.18.0 by @chrisjsewell in #581
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 9 12:40:04 UTC 2023 - ecsos <ecsos@opensuse.org>
|
Fri Jun 9 12:40:04 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-myst-parser
|
# spec file for package python-myst-parser
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-myst-parser
|
Name: python-myst-parser
|
||||||
Version: 0.17.2
|
Version: 2.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An extended commonmark compliant parser, with bridges to docutils & sphinx
|
Summary: An extended commonmark compliant parser, with bridges to docutils & sphinx
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -26,13 +26,24 @@ URL: https://myst-parser.readthedocs.io/
|
|||||||
Source: https://github.com/executablebooks/MyST-Parser/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/executablebooks/MyST-Parser/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
# PyPI tarball does not contain tests
|
# PyPI tarball does not contain tests
|
||||||
#Source: https://files.pythonhosted.org/packages/source/m/myst-parser/myst-parser-%%{version}.tar.gz
|
#Source: https://files.pythonhosted.org/packages/source/m/myst-parser/myst-parser-%%{version}.tar.gz
|
||||||
BuildRequires: %{python_module flit}
|
BuildRequires: %{python_module flit-core}
|
||||||
|
BuildRequires: %{python_module Jinja2}
|
||||||
|
BuildRequires: %{python_module PyYAML}
|
||||||
|
BuildRequires: %{python_module Sphinx}
|
||||||
|
BuildRequires: %{python_module docutils >= 0.16}
|
||||||
BuildRequires: %{python_module markdown-it-py}
|
BuildRequires: %{python_module markdown-it-py}
|
||||||
|
BuildRequires: %{python_module markdown-it-py}
|
||||||
|
BuildRequires: %{python_module mdit-py-plugins}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: dos2unix
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
# SECTION tests
|
||||||
|
BuildRequires: %{python_module beautifulsoup4}
|
||||||
|
BuildRequires: %{python_module pygments}
|
||||||
|
BuildRequires: %{python_module pytest-regressions}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
# SECTION docs
|
# SECTION docs
|
||||||
#BuildRequires: python3-Sphinx
|
#BuildRequires: python3-Sphinx
|
||||||
#BuildRequires: python3-Jinja2
|
#BuildRequires: python3-Jinja2
|
||||||
@ -42,14 +53,12 @@ BuildRequires: python-rpm-macros
|
|||||||
#BuildRequires: python3-markdown-it-py >= 1
|
#BuildRequires: python3-markdown-it-py >= 1
|
||||||
#BuildRequires: python3-mdit-py-plugins < 0.4
|
#BuildRequires: python3-mdit-py-plugins < 0.4
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: python-typing-extensions
|
|
||||||
Requires: python-Jinja2
|
Requires: python-Jinja2
|
||||||
Requires: python-PyYAML
|
Requires: python-PyYAML
|
||||||
Requires: python-Sphinx
|
Requires: python-Sphinx
|
||||||
Requires: python-Sphinx >= 3.1
|
Requires: python-docutils >= 0.16
|
||||||
Requires: python-docutils >= 0.15
|
Requires: python-markdown-it-py
|
||||||
Requires: python-markdown-it-py >= 1
|
Requires: python-mdit-py-plugins
|
||||||
Requires: python-mdit-py-plugins < 0.4
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -63,7 +72,6 @@ It contains an extended CommonMark (https://commonmark.org)-compliant parser usi
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n MyST-Parser-%{version}
|
%setup -q -n MyST-Parser-%{version}
|
||||||
rm docs/.gitignore
|
rm docs/.gitignore
|
||||||
dos2unix docs/examples/references.bib
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@ -81,13 +89,25 @@ dos2unix docs/examples/references.bib
|
|||||||
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-latex
|
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-latex
|
||||||
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-pseudoxml
|
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-pseudoxml
|
||||||
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-xml
|
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-xml
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-demo
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/myst-inv
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pyunittest -v
|
# no python-sphinx-pytest package
|
||||||
|
ignore="--ignore=tests/test_renderers/test_fixtures_sphinx.py"
|
||||||
|
ignore+=" --ignore=tests/test_renderers/test_myst_refs.py"
|
||||||
|
ignore+=" --ignore=tests/test_sphinx/test_sphinx_builds.py"
|
||||||
|
# no python-pytest-param-files package
|
||||||
|
ignore+=" --ignore=tests/test_renderers/test_myst_config.py"
|
||||||
|
|
||||||
|
# no python-pytest-param-files package
|
||||||
|
donttest="test_parsing or test_errors or test_render or test_html_to_nodes or test_html_ast or test_html_round_trip"
|
||||||
|
|
||||||
|
%pytest $ignore -k "not ($donttest)"
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{python_install_alternative myst-anchors myst-docutils-html myst-docutils-html5 myst-docutils-latex myst-docutils-pseudoxml myst-docutils-xml}
|
%{python_install_alternative myst-anchors myst-docutils-html myst-docutils-html5 myst-docutils-latex myst-docutils-pseudoxml myst-docutils-xml myst-docutils-demo myst-inv}
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative myst-anchors
|
%python_uninstall_alternative myst-anchors
|
||||||
@ -103,6 +123,8 @@ dos2unix docs/examples/references.bib
|
|||||||
%python_alternative %{_bindir}/myst-docutils-latex
|
%python_alternative %{_bindir}/myst-docutils-latex
|
||||||
%python_alternative %{_bindir}/myst-docutils-pseudoxml
|
%python_alternative %{_bindir}/myst-docutils-pseudoxml
|
||||||
%python_alternative %{_bindir}/myst-docutils-xml
|
%python_alternative %{_bindir}/myst-docutils-xml
|
||||||
|
%python_alternative %{_bindir}/myst-docutils-demo
|
||||||
|
%python_alternative %{_bindir}/myst-inv
|
||||||
%doc docs
|
%doc docs
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user