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
This commit is contained in:
commit
3bd8dd9f1f
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
26
python-sybil.changes
Normal file
26
python-sybil.changes
Normal file
@ -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
|
||||
|
82
python-sybil.spec
Normal file
82
python-sybil.spec
Normal file
@ -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
|
3
sybil-1.0.8.tar.gz
Normal file
3
sybil-1.0.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1e17e10bac4c56ef5b6752866a7d100f5ae856ff97d805c4d6cac73be80863d3
|
||||
size 26327
|
Loading…
x
Reference in New Issue
Block a user