Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Ardana:8:CentOS:7.3
python-coverage
python-coverage.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-coverage.spec of Package python-coverage
# # spec file for package python-coverage # # Copyright (c) 2017 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-coverage Version: 4.3.4 Release: 0 Url: http://nedbatchelder.com/code/coverage/%{version} Summary: Code coverage measurement for Python License: Apache-2.0 Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/c/coverage/coverage-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros # Test requirements: #BuildRequires: python-mock #BuildRequires: python-nose Requires: python-setuptools Requires: python-xml Requires(pre): coreutils Requires(post): /usr/sbin/update-alternatives Requires(postun): /usr/sbin/update-alternatives %python_subpackages %description Coverage.py measures code coverage, typically during test execution. It uses the code analysis tools and tracing hooks provided in the Python standard library to determine which lines are executable, and which have been executed. %prep %setup -q -n coverage-%{version} %build %python_build %install %python_install %python_clone -a %{buildroot}%{_bindir}/coverage ln -sf coverage-%{python2_version} %{buildroot}%{_bindir}/coverage2 ln -sf coverage-%{python3_version} %{buildroot}%{_bindir}/coverage3 #NOTE(saschpe): The following seems to mess with the install dir, which is odd: #%%check # Taken straight from tox.ini: #python setup.py develop #python igor.py zip_mods install_egg remove_extension #python igor.py test_with_tracer py #python setup.py --quiet build_ext --inplace #python igor.py test_with_tracer c %post %python_install_alternative coverage %postun %python_uninstall_alternative coverage %files %python_files %defattr(-,root,root,-) %doc CHANGES.rst CONTRIBUTORS.txt README.rst LICENSE.txt TODO.txt howto.txt %python_alternative %{_bindir}/coverage %python2_only %{_bindir}/coverage2 %python3_only %{_bindir}/coverage3 %{python_sitearch}/coverage/ %{python_sitearch}/coverage-%{version}-py%{python_version}.egg-info %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