From c8739b48368a3180c0832d9479dc7cab497495b37e1d2eb2ae670ab7b9c8d1a9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 14 Aug 2024 14:54:39 +0000 Subject: [PATCH] - switch to modern python for sle15 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-sphinx?expand=0&rev=17 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + pytest-sphinx-0.6.3.tar.gz | 3 ++ python-pytest-sphinx.changes | 67 ++++++++++++++++++++++++++++++++++++ python-pytest-sphinx.spec | 64 ++++++++++++++++++++++++++++++++++ 5 files changed, 158 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-sphinx-0.6.3.tar.gz create mode 100644 python-pytest-sphinx.changes create mode 100644 python-pytest-sphinx.spec 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/pytest-sphinx-0.6.3.tar.gz b/pytest-sphinx-0.6.3.tar.gz new file mode 100644 index 0000000..a52a87f --- /dev/null +++ b/pytest-sphinx-0.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15e8f4adc44bd07f6333c327b3f1c14d3da06ed89141063319693201f050ddd8 +size 17264 diff --git a/python-pytest-sphinx.changes b/python-pytest-sphinx.changes new file mode 100644 index 0000000..29fe80d --- /dev/null +++ b/python-pytest-sphinx.changes @@ -0,0 +1,67 @@ +------------------------------------------------------------------- +Wed Aug 14 14:54:31 UTC 2024 - Dirk Müller + +- switch to modern python for sle15 + +------------------------------------------------------------------- +Tue May 7 04:40:27 UTC 2024 - Steve Kowalik + +- Update to 0.6.3: + * Forgot to bump minimum required pytest version in pytest-sphinx 0.6.2 #64 + * Adapt to incompatible `import_path` API change in pytest 8.1.1. Pytest + 8.1.1 is required by pytest-sphinx now. + * Require pytest >= 8.0 #59 + * Drop support for python 3.7 #59 + +------------------------------------------------------------------- +Mon May 8 08:26:45 UTC 2023 - Dirk Müller + +- update to 0.5.0: + * Mention in the README that the doctest directive is + supported. + * CI improvements + +------------------------------------------------------------------- +Mon Apr 25 06:23:43 UTC 2022 - Markéta Machová + +- Update to 0.4.0 + * Drop python2.7 (Fixes #14) + * Drop python3.5 and python3.6 + * Require pytest>=7.0 + +------------------------------------------------------------------- +Fri Aug 21 12:55:42 UTC 2020 - Marketa Calabkova + +- Update to 0.3.1 + * Adapt to importmode API changes in pytest-6.0 + * Adapt to Node API changes in pytest-5.4 (Fixes #11) + * Add support for python 3.8 (Fixes #15) + * Add support for skipif option in testoutput directive (Fixes #17) + * Add support for skipif option in testcode directive (Fixes #21) + * A ValueError is raised if the text inside the directives is not properly + formatted. + * Ignore the option :hide: in directives (Fixes #19) + * Fix detection of block boundaries in parser. + +------------------------------------------------------------------- +Fri Jun 5 13:57:25 UTC 2020 - Matej Cepl + +- Package doesn't work with pytest 5.* + +------------------------------------------------------------------- +Mon Apr 20 10:25:24 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +------------------------------------------------------------------- +Fri Sep 6 18:20:35 UTC 2019 - John Vandenberg + +- Update to v0.2.2 + * Add hack for handling mock style objects + * Add support for indented directives + + +------------------------------------------------------------------- +Thu Mar 21 01:44:43 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.2.1 diff --git a/python-pytest-sphinx.spec b/python-pytest-sphinx.spec new file mode 100644 index 0000000..350b199 --- /dev/null +++ b/python-pytest-sphinx.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-pytest-sphinx +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-pytest-sphinx +Version: 0.6.3 +Release: 0 +Summary: Doctest plugin for pytest with support for Sphinx-specific doctest-directives +License: BSD-3-Clause +URL: https://github.com/thisch/pytest-sphinx +Source: https://github.com/thisch/pytest-sphinx/archive/v%{version}.tar.gz#/pytest-sphinx-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytest >= 8.1.1 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module pytest >= 8.1.1} +# /SECTION +%python_subpackages + +%description +Doctest plugin for pytest with support for Sphinx-specific doctest-directives. + +%prep +%setup -q -n pytest-sphinx-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/pytest_sphinx.py +%{python_sitelib}/pytest_sphinx-%{version}.dist-info +%pycache_only %{python_sitelib}/__pycache__/pytest_sphinx*pyc + +%changelog