## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 12; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Created by pyp2rpm-3.3.5 %global pypi_name codecov %global common_description %{expand: Find coverage reports for supported languages, gather them and submit them to Codecov.} Name: python-%{pypi_name} Version: 2.1.12 Release: %autorelease Summary: Python report uploader for Codecov # Automatically converted from old format: ASL 2.0 - review is highly recommended. License: Apache-2.0 URL: https://github.com/codecov/codecov-python # PyPI doesn't include tests so use the GitHub tarball instead Source0: %{url}/archive/v%{version}/codecov-python-%{version}.tar.gz BuildArch: noarch BuildRequires: sed BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(pytest) BuildRequires: python3dist(ddt) BuildRequires: python3dist(mock) BuildRequires: python3dist(requests) %description %{common_description} %package -n python3-%{pypi_name} Summary: %{summary} %if 0%{?fedora} == 32 %py_provides python3-%{pypi_name} %endif %description -n python3-%{pypi_name} %{common_description} %prep %autosetup -n codecov-python-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info # Remove unneeded shebang sed -e "\|#!/usr/bin/env python3|d" -i %{pypi_name}/*.py %build %py3_build %install %py3_install %check # Disable tests that require network access %pytest tests/test.py \ --deselect tests/test.py::TestUploader::test_bowerrc_none \ --deselect tests/test.py::TestUploader::test_prefix \ --deselect tests/test.py::TestUploader::test_send %files -n python3-%{pypi_name} %license LICENSE %doc README.md CHANGELOG.md %{_bindir}/codecov %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog ## START: Generated by rpmautospec * Wed Jul 24 2024 Miroslav Suchý - 2.1.12-12 - convert ASL 2.0 license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 2.1.12-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 2.1.12-10 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 2.1.12-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.1.12-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.1.12-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 2.1.12-6 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 2.1.12-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.1.12-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.1.12-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2.1.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Nov 07 2021 Davide Cavalca - 2.1.12-1 - Update to 2.1.12; Fixes: RHBZ#1989250 * Fri Jul 23 2021 Fedora Release Engineering - 2.1.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.1.11-3 - Rebuilt for Python 3.10 * Tue Mar 16 2021 Davide Cavalca - 2.1.11-2 - Remove uneeded shebangs - Fix license and description * Tue Mar 09 2021 Davide Cavalca - 2.1.11-1 - Initial package. ## END: Generated by rpmautospec