commit 149d61214822e730f5954c8f79beb5e5378d3b1c1811cbed32509c91474a0058 Author: Matej Cepl Date: Mon Nov 7 10:16:53 2022 +0000 Accepting request 1033870 from home:bnavigator:branches:devel:languages:python:numeric required by python-python-lsp-server 1.6 OBS-URL: https://build.opensuse.org/request/show/1033870 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docstring-to-markdown?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/docstring-to-markdown-0.10-gh.tar.gz b/docstring-to-markdown-0.10-gh.tar.gz new file mode 100644 index 0000000..5e82275 --- /dev/null +++ b/docstring-to-markdown-0.10-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:895a20da8a11d1b7e6163ee57511e6de1ec14d737b1875b2b2e8286d379c1721 +size 24732 diff --git a/python-docstring-to-markdown.changes b/python-docstring-to-markdown.changes new file mode 100644 index 0000000..f6d5a95 --- /dev/null +++ b/python-docstring-to-markdown.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Nov 6 15:15:50 UTC 2022 - Ben Greiner + +- Initial specfile for v0.10 +- Required by python-python-lsp-server diff --git a/python-docstring-to-markdown.spec b/python-docstring-to-markdown.spec new file mode 100644 index 0000000..55435ba --- /dev/null +++ b/python-docstring-to-markdown.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-docstring-to-markdown +# +# 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/ +# + + +Name: python-docstring-to-markdown +Version: 0.10 +Release: 0 +Summary: On the fly conversion of Python docstrings to markdown +License: LGPL-2.1-only +URL: https://github.com/python-lsp/docstring-to-markdown +Source: https://github.com/python-lsp/docstring-to-markdown/archive/refs/tags/v%{version}.tar.gz#/docstring-to-markdown-%{version}-gh.tar.gz +BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Provides: python-docstring_to_markdown = %{version}-%{release} +BuildArch: noarch +%python_subpackages + +%description +On the fly conversion of Python docstrings to markdown + - Python 3.6+ + - currently can recognise reStructuredText and convert + multiple of its features to Markdown + - in the future will be able to convert Google docstrings too + +%prep +%setup -q -n docstring-to-markdown-%{version} +sed -i -e '/--cov/d' -e '/-flake8/d' setup.cfg + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/docstring_to_markdown +%{python_sitelib}/docstring_to_markdown-%{version}*-info + +%changelog