commit 2324f439cd1fbb726cea3636bb997b48fc13231250dcf4893ead8379d07cefe6 Author: Matej Cepl Date: Sat Feb 4 19:22:33 2023 +0000 Accepting request 1063196 from home:mcepl:branches:devel:languages:python Required OBS-URL: https://build.opensuse.org/request/show/1063196 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx_mdinclude?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/python-sphinx_mdinclude.changes b/python-sphinx_mdinclude.changes new file mode 100644 index 0000000..200dac0 --- /dev/null +++ b/python-sphinx_mdinclude.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Feb 4 18:56:18 UTC 2023 - Matej Cepl + +- Initial packaging effort for sphinx_mdinclude 0.5.3. diff --git a/python-sphinx_mdinclude.spec b/python-sphinx_mdinclude.spec new file mode 100644 index 0000000..f830ad1 --- /dev/null +++ b/python-sphinx_mdinclude.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-sphinx_mdinclude +# +# 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/ +# + + +%define modname sphinx_mdinclude +Name: python-sphinx_mdinclude +Version: 0.5.3 +Release: 0 +Summary: Markdown extension for Sphinx +License: MIT +URL: https://github.com/omnilib/sphinx-mdinclude +Source: https://files.pythonhosted.org/packages/source/s/sphinx_mdinclude/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module Pygments} +BuildRequires: %{python_module docutils} +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module mistune} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Sphinx extension for including or writing pages in Markdown +format. + +sphinx-mdinclude is a simple Sphinx extension that enables +including Markdown documents from within reStructuredText. It +provides the .. mdinclude:: directive, and automatically converts +the content of Markdown documents to reStructuredText format. + +%prep +%autosetup -p1 -n %{modname}-%{version} + +sed -i -e '1{\,^#!%{_bindir}/env python,d}' %{modname}/__init__.py \ + %{modname}/tests/test_renderer.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest discover -v + +%files %{python_files} +%license LICENSE +%doc README.md CHANGELOG.md +%{python_sitelib}/sphinx_mdinclude +%{python_sitelib}/sphinx_mdinclude-%{version}*-info + +%changelog diff --git a/sphinx_mdinclude-0.5.3.tar.gz b/sphinx_mdinclude-0.5.3.tar.gz new file mode 100644 index 0000000..8c3bbd5 --- /dev/null +++ b/sphinx_mdinclude-0.5.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2998e3d18b3022c9983d1b72191fe37e25ffccd54165cbe3acb22cceedd91af4 +size 64899