commit eda4d311404c5c1cc3f0a3752684421868ff8df6a51b0a2c5a2df7daa8355fbc Author: Tomáš Chvátal Date: Mon Sep 9 07:30:57 2019 +0000 Accepting request 729016 from home:jayvdb:coala:test-rig Doctest helper OBS-URL: https://build.opensuse.org/request/show/729016 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-sphinx?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/pytest-sphinx-0.2.2.tar.gz b/pytest-sphinx-0.2.2.tar.gz new file mode 100644 index 0000000..4185fb7 --- /dev/null +++ b/pytest-sphinx-0.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c68c9006530de8c7083f879f9fbf91a7ad4120e638f4e451a037833da2cc977 +size 11254 diff --git a/python-pytest-sphinx.changes b/python-pytest-sphinx.changes new file mode 100644 index 0000000..4408949 --- /dev/null +++ b/python-pytest-sphinx.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +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..8e9923b --- /dev/null +++ b/python-pytest-sphinx.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-pytest-sphinx +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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-pytest-sphinx +Version: 0.2.2 +Release: 0 +Summary: Doctest plugin for pytest with support for Sphinx-specific doctest-directives +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/thisch/pytest-sphinx +Source: https://github.com/thisch/pytest-sphinx/archive/v0.2.2.tar.gz#/pytest-sphinx-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytest >= 3.1.1 +Requires: python-enum34 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest >= 3.1.1} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest-mock} +BuildRequires: python2-enum34 +# /SECTION +%python_subpackages + +%description +Doctest plugin for pytest with support for Sphinx-specific doctest-directives. + +%prep +%setup -q -n pytest-sphinx-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog