commit 2f56e475c7e50dbe85d67db2d286677b591479ad96d30bf6c285523f7b84be73 Author: Markéta Machová Date: Mon Apr 25 09:46:09 2022 +0000 Accepting request 972525 from home:sebix package is required for update of xonsh (docs) OBS-URL: https://build.opensuse.org/request/show/972525 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-myst-parser?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/myst-parser-0.17.2.tar.gz b/myst-parser-0.17.2.tar.gz new file mode 100644 index 0000000..71ef472 --- /dev/null +++ b/myst-parser-0.17.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c076d649e066f9f5c7c661bae2658be1ca06e76b002bb97f02a09398707686c +size 61658 diff --git a/python-myst-parser.changes b/python-myst-parser.changes new file mode 100644 index 0000000..98a7ea2 --- /dev/null +++ b/python-myst-parser.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Apr 25 08:52:20 UTC 2022 - Sebastian Wagner + +- initial package for version 0.17.2. diff --git a/python-myst-parser.spec b/python-myst-parser.spec new file mode 100644 index 0000000..c5203d2 --- /dev/null +++ b/python-myst-parser.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-myst-parser +# +# Copyright (c) 2022 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-myst-parser +Version: 0.17.2 +Release: 0 +Summary: An extended commonmark compliant parser, with bridges to docutils & sphinx +License: MIT +URL: https://myst-parser.readthedocs.io/ +Source: https://files.pythonhosted.org/packages/source/m/myst-parser/myst-parser-%{version}.tar.gz +BuildRequires: %{python_module flit} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +MyST is a flavor of markdown that is designed for simplicity, flexibility, and extensibility. +This is the reference implementation of MyST Markdown, as well as a collection of tools to support working with MyST in Python and Sphinx. +It contains an extended CommonMark (https://commonmark.org)-compliant parser using markdown-it-py (https://markdown-it-py.readthedocs.io/), as well as a Sphinx (https://www.sphinx-doc.org) extension that allows to write MyST Markdown in Sphinx. + +%prep +%setup -q -n myst-parser-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/myst-anchors +%python_clone -a %{buildroot}%{_bindir}/myst-docutils-html +%python_clone -a %{buildroot}%{_bindir}/myst-docutils-html5 +%python_clone -a %{buildroot}%{_bindir}/myst-docutils-latex +%python_clone -a %{buildroot}%{_bindir}/myst-docutils-pseudoxml +%python_clone -a %{buildroot}%{_bindir}/myst-docutils-xml +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%{python_install_alternative myst-anchors myst-docutils-html myst-docutils-html5 myst-docutils-latex myst-docutils-pseudoxml myst-docutils-xml} + +%postun +%python_uninstall_alternative myst-anchors + +%files %{python_files} +%{python_sitelib}/myst_parser/ +%{python_sitelib}/myst_parser-%{version}*-info +%license LICENSE +%doc CHANGELOG.md README.md +%python_alternative %{_bindir}/myst-anchors +%python_alternative %{_bindir}/myst-docutils-html +%python_alternative %{_bindir}/myst-docutils-html5 +%python_alternative %{_bindir}/myst-docutils-latex +%python_alternative %{_bindir}/myst-docutils-pseudoxml +%python_alternative %{_bindir}/myst-docutils-xml + +%changelog