From 3bd8dd9f1f07a2f31c96c619ec6957378e1d1a4bfdc1d43e2f0a7fa35fde3049 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 24 May 2018 20:56:56 +0000 Subject: [PATCH] Accepting request 611988 from devel:languages:python:misc Automated testing for the examples in your documentation OBS-URL: https://build.opensuse.org/request/show/611988 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-sybil.changes | 26 ++++++++++++++ python-sybil.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++ sybil-1.0.8.tar.gz | 3 ++ 5 files changed, 135 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-sybil.changes create mode 100644 python-sybil.spec create mode 100644 sybil-1.0.8.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-sybil.changes b/python-sybil.changes new file mode 100644 index 0000000..7cdc9f3 --- /dev/null +++ b/python-sybil.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Thu May 24 17:49:50 UTC 2018 - toddrme2178@gmail.com + +- Update 1.0.8 + * Changes only to unit tests to support fixes in the latest release of pytest. +- Update 1.0.7 + * Literal tabs may no longer be included in text that is parsed by the DocTestParser. Previously, tabs were expanded which could unpleasant problems. +- spec file cleanups + +------------------------------------------------------------------- +Fri Jan 5 09:48:15 UTC 2018 - alarrosa@suse.com + +- Update to 1.0.6 + * Fix compatibility with pytest 3.3+. + +------------------------------------------------------------------- +Mon Oct 9 15:03:03 UTC 2017 - alarrosa@suse.com + +- Fixed %check section and add python-virtualenv to the build requirements. +- Add a longer description to the package. + +------------------------------------------------------------------- +Wed Aug 23 13:40:51 UTC 2017 - t.gruner@katodev.de + +- Initial release 1.0.5 + diff --git a/python-sybil.spec b/python-sybil.spec new file mode 100644 index 0000000..7dbde6b --- /dev/null +++ b/python-sybil.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-sybil +# +# Copyright (c) 2018 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-sybil +Version: 1.0.8 +Release: 0 +Summary: Automated testing for the examples in your documentation +License: MIT +Group: Development/Languages/Python +Url: https://github.com/cjw296/sybil +Source: https://files.pythonhosted.org/packages/source/s/sybil/sybil-%{version}.tar.gz +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pkginfo} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-coveralls} +BuildRequires: %{python_module setuptools-git} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module twine} +BuildRequires: %{python_module virtualenv} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Suggests: python-python-coveralls +Suggests: python-nose +Suggests: python-pytest +Suggests: python-sphinx +Suggests: python-pkginfo +Suggests: python-setuptools-git +Suggests: python-twine +Suggests: python-wheel +BuildArch: noarch + +%python_subpackages + +%description +python-sybil provides a way to test examples in your documentation by parsing +them from the documentation source and evaluating the parsed examples as part +of your normal test run. Integration is provided for the three main Python +test runners. + +%prep +%setup -q -n sybil-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +sed -i -e "s/'coveralls'/'python-coveralls'/" setup.py +%{python_expand virtualenv-%$python_bin_suffix --system-site-packages --no-download testvenv-%$python_bin_suffix +testvenv-%$python_bin_suffix/bin/pip install -e .[test,build] +export PYTHONPATH=$PWD/testvenv-%$python_bin_suffix/lib/python%$python_bin_suffix/site-packages/:$PWD +testvenv-%$python_bin_suffix/bin/python -m pytest && rm -Rf testvenv-%$python_bin_suffix +} + +%files %{python_files} +%doc README.rst docs/changes.rst +%license docs/license.rst +%{python_sitelib}/* + +%changelog diff --git a/sybil-1.0.8.tar.gz b/sybil-1.0.8.tar.gz new file mode 100644 index 0000000..b2d5eb2 --- /dev/null +++ b/sybil-1.0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e17e10bac4c56ef5b6752866a7d100f5ae856ff97d805c4d6cac73be80863d3 +size 26327