From a10092044ae7c9976f69de1337ab3a63eb8223010207bdb96726eb41615f9321 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 21 May 2024 04:25:14 +0000 Subject: [PATCH] - Initial release of 0.16.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-gallery?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + python-sphinx-gallery.changes | 4 ++ python-sphinx-gallery.spec | 84 +++++++++++++++++++++++++++++++++++ sphinx_gallery-0.16.0.tar.gz | 3 ++ 5 files changed, 115 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-sphinx-gallery.changes create mode 100644 python-sphinx-gallery.spec create mode 100644 sphinx_gallery-0.16.0.tar.gz 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-gallery.changes b/python-sphinx-gallery.changes new file mode 100644 index 0000000..1d0ea8a --- /dev/null +++ b/python-sphinx-gallery.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue May 21 04:24:46 UTC 2024 - Steve Kowalik + +- Initial release of 0.16.0 diff --git a/python-sphinx-gallery.spec b/python-sphinx-gallery.spec new file mode 100644 index 0000000..13222e1 --- /dev/null +++ b/python-sphinx-gallery.spec @@ -0,0 +1,84 @@ +# +# spec file for package python-sphinx-gallery +# +# Copyright (c) 2024 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-sphinx-gallery +Version: 0.16.0 +Release: 0 +Summary: Sphinx extension that builds an HTML gallery of examples +License: BSD-3-Clause +URL: https://github.com/sphinx-gallery/sphinx-gallery +Source: https://files.pythonhosted.org/packages/source/s/sphinx-gallery/sphinx_gallery-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module Pillow} +BuildRequires: %{python_module Sphinx >= 4} +BuildRequires: %{python_module dbm} +BuildRequires: %{python_module lxml} +BuildRequires: %{python_module matplotlib} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} +# /SECTION +BuildRequires: fdupes +Requires: python-Pillow +Requires: python-Sphinx >= 4 +Suggests: python-numpy +Suggests: python-graphviz +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +A Sphinx extension that builds an HTML gallery of examples from any set of Python scripts. + +%prep +%autosetup -p1 -n sphinx_gallery-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +# Don't ship tests +%python_expand rm -r %{buildroot}%{$python_sitelib}/sphinx_gallery/tests +%python_clone -a %{buildroot}%{_bindir}/sphinx_gallery_py2jupyter +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Requires network +donttest="test_embed_code_links_get_data" +# Requires jupyterlite_sphinx, long dependency chain and we don't ship it +donttest+=" or test_dummy_image" +%pytest sphinx_gallery/tests -k "not ($donttest)" + +%post +%python_install_alternative sphinx_gallery_py2jupyter + +%postun +%python_uninstall_alternative sphinx_gallery_py2jupyter + +%files %{python_files} +%python_alternative %{_bindir}/sphinx_gallery_py2jupyter +%{python_sitelib}/sphinx_gallery +%{python_sitelib}/sphinx_gallery-%{version}.dist-info + +%changelog diff --git a/sphinx_gallery-0.16.0.tar.gz b/sphinx_gallery-0.16.0.tar.gz new file mode 100644 index 0000000..91c56ce --- /dev/null +++ b/sphinx_gallery-0.16.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3912765bc5e7b5451dc471ad50ead808a9752280b23fd2ec4277719a5ef68e42 +size 432247