Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Ardana:8:CentOS
python-pytest
python-pytest.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-pytest.spec of Package python-pytest
# # spec file for package python-pytest # # 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 https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest Version: 3.1.3 Release: 0 Summary: Simple powerful testing with Python License: MIT Group: Development/Languages/Python Url: http://pytest.org Source: https://pypi.io/packages/source/p/pytest/pytest-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module devel} BuildRequires: %{python_module py >= 1.4.29} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module xml} BuildRequires: python-rpm-macros Requires: python-py >= 1.4.29 Requires(post): update-alternatives Requires(postun): update-alternatives #/usr/bin/py.test imports pkg_resources Requires: python-setuptools BuildArch: noarch %python_subpackages %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 %python_build %install # for some reason we need something after python_expand in order to correctly eat multilines %{python_expand %$python_install mv %{buildroot}%{_bindir}/py.test{,-%$python_bin_suffix} mv %{buildroot}%{_bindir}/pytest{,-%$python_bin_suffix} } %prepare_alternative py.test %prepare_alternative pytest ln -s py.test-%python2_bin_suffix %{buildroot}%{_bindir}/py.test2 ln -s py.test-%python3_bin_suffix %{buildroot}%{_bindir}/py.test3 %post %{python_install_alternative py.test} \ --slave %{_bindir}/pytest pytest %{_bindir}/pytest-%{python_version} %postun %python_uninstall_alternative py.test %files %{python_files} %defattr(-,root,root,-) %doc AUTHORS LICENSE README.rst %python_alternative %{_bindir}/py.test %python_alternative %{_bindir}/pytest %python2_only %{_bindir}/py.test2 %python3_only %{_bindir}/py.test3 %{python_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor