Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:marec2000:devel:languages:python:3.10
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) 2022 SUSE LLC # # 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() python3-%{**}} %define skip_python2 1 Name: python-coverage Version: 6.4.4 Release: 0 Summary: Code coverage measurement for Python License: Apache-2.0 URL: https://github.com/nedbat/coveragepy Source: https://files.pythonhosted.org/packages/source/c/coverage/coverage-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python Requires: python-base >= 3.7 Requires(post): update-alternatives Requires(postun):update-alternatives # coverage[toml] Recommends: python-tomli # SECTION test requirements BuildRequires: %{python_module flaky} BuildRequires: %{python_module hypothesis >= 4.57} BuildRequires: %{python_module pytest >= 4.6} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module tomli} # for database (sqlite3) support BuildRequires: %{pythons} # /SECTION %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 %autosetup -p1 -n coverage-%{version} # we define everything necessary ourselves below sed -i -e '/addopts/d' setup.cfg %build %python_build %install %python_install rm -vf %{buildroot}%{_bindir}/coverage{2,3} %python_clone -a %{buildroot}%{_bindir}/coverage %python_expand %fdupes %{buildroot}%{$python_sitearch} %check export LANG=en_US.UTF8 %{python_expand # Link executables to flavor specific build areas, to be used for testing. build/ is shuffled around by python_expand mkdir build/bin for filepath in %{buildroot}%{_bindir}/coverage*-%{$python_bin_suffix}; do filename=$(basename $filepath) unsuffixed=${filename/-%{$python_bin_suffix}/} ln -s $filepath build/bin/$unsuffixed done # indicate a writeable .pth directory for tests mkdir -p build/mysite cp %{python_sitearch}/zzzz-import-failed-hooks.pth build/mysite/ } # the tests need the empty leading part for importing local test projects" export PYTHONPATH=":$PWD/build/mysite" export PATH="$(pwd)/build/bin:$PATH" %python_exec -mcoverage debug sys # installs some test modules into tests/ (flavor agnostic) %python_exec igor.py zip_mods # test_version - checks for non-compiled variant, we ship only compiled one donttest="test_version" # test_xdist_sys_path_nuttiness_is_fixed - xdist check that we actually fail on purpose donttest+=" or test_xdist_sys_path_nuttiness_is_fixed" # test_debug_sys_ctracer - requires dep on ctracer donttest+=" or test_debug_sys_ctracer" # does not find a usable venv donttest+=" or test_venv" # writes in /usr/ donttest+=" or test_process" # requires additional plugins donttest+=" or test_plugins" %pytest_arch -n auto --no-flaky-report -k "$donttest" -rp ||: %pytest_arch -n auto --no-flaky-report -k "not ($donttest)" %post %python_install_alternative coverage %postun %python_uninstall_alternative coverage %files %{python_files} %license LICENSE.txt %doc CHANGES.rst CONTRIBUTORS.txt README.rst howto.txt %python_alternative %{_bindir}/coverage %{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