Accepting request 174888 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/174888
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=5
This commit is contained in:
Stephan Kulow 2013-05-13 13:26:53 +00:00 committed by Git OBS Bridge
parent 41dd743111
commit 9f41ffa471
4 changed files with 93 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 2 08:45:19 UTC 2013 - speilicke@suse.com
- Enable testsuite
-------------------------------------------------------------------
Sat Apr 20 11:26:41 UTC 2013 - toms@opensuse.org

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-pytest
Version: 2.3.4
Release: 0
@ -23,10 +24,12 @@ License: MIT
Group: Development/Languages/Python
Url: http://pytest.org
Source: http://pypi.python.org/packages/source/p/pytest/pytest-%{version}.zip
BuildRequires: python-Sphinx
BuildRequires: python-devel
BuildRequires: python-py
BuildRequires: unzip
# Documentation requirements:
BuildRequires: python-Sphinx
# Test requirements:
BuildRequires: python-py
Requires: python-py
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
@ -55,19 +58,19 @@ cross-project Python testing tool. It provides:
%build
python setup.py build
cd doc/en && make html && rm -r _build/html/.buildinfo # Build HTML documentation
python setup.py build_sphinx
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# %%check
# python setup.py test
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc LICENSE README.txt
%doc doc/en/_build/html
%{_bindir}/py.test*
%doc LICENSE README.txt build/sphinx/html
%{_bindir}/py.test
%{_bindir}/py.test-%{py_ver}
%{python_sitelib}/*
%changelog

5
python3-pytest.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu May 2 08:44:44 UTC 2013 - speilicke@suse.com
- Initial version

72
python3-pytest.spec Normal file
View File

@ -0,0 +1,72 @@
#
# spec file for package python3-pytest
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#
Name: python3-pytest
Version: 2.3.4
Release: 0
Summary: Simple powerful testing with Python
License: MIT
Group: Development/Languages/Python
Url: http://pytest.org
Source: http://pypi.python.org/packages/source/p/pytest/pytest-%{version}.zip
BuildRequires: python3-devel
BuildRequires: unzip
# Documentation requirements:
BuildRequires: python3-Sphinx
# Test requirements:
BuildRequires: python3-py
Requires: python3-py
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
pytest helps you write better programs. It is a a mature full-featured,
cross-project Python testing tool. It provides:
* auto-discovery of test modules and functions,
* detailed info on failing assert statements (no need to remember
self.assert* names),
* modular fixtures for managing small or parametrized long-lived test resources.
* multi-paradigm support: you can use py.test to run test suites based on
unittest (or trial), nose,
* single-source compatibility to Python2.4 all the way up to Python3.3,
PyPy-1.9 and Jython-2.5.1, and
* many external plugins.
%prep
%setup -q -n pytest-%{version}
%build
python3 setup.py build
python3 setup.py build_sphinx
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Drop unversioned binary, collides with py2 pkg, maybe update-alternatives?
rm %{buildroot}%{_bindir}/py.test
%check
python3 setup.py test
%files
%defattr(-,root,root,-)
%doc LICENSE README.txt build/sphinx/html
%{_bindir}/py.test-%{py3_ver}
%{python3_sitelib}/*
%changelog