## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # No tests from upstream yet. %bcond_with tests %global srcname vsts Name: python-%{srcname} Version: 0.1.25 Release: %autorelease Summary: Azure DevOps Python API License: MIT URL: https://pypi.org/project/%{srcname}/ Source0: %pypi_source BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(pytest) %endif %global _description %{expand: This repository contains Python APIs for interacting with and managing Azure DevOps. These APIs power the Azure DevOps Extension for Azure CLI.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{version} sed -i 's/,<0.7.0//' setup.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %pyproject_check_import -e 'vsts.customer_intelligence.*' %if %{with tests} %pytest %endif %files -n python3-%{srcname} -f %{pyproject_files} # No README included in pypi package. 😢 %changelog * Wed Jul 06 2022 Major Hayden 0.1.25-7 - Fix FTI from rhbz#2104300 * Wed Jun 15 2022 Python Maint 0.1.25-6 - Rebuilt for Python 3.11 * Wed Apr 27 2022 Major Hayden 0.1.25-5 - Switch to pyproject-rpm-macros * Fri Jan 21 2022 Fedora Release Engineering 0.1.25-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering 0.1.25-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 08 2021 Major Hayden 0.1.25-2 - Add setuptools to buildrequires * Tue Jun 08 2021 Major Hayden 0.1.25-1 - Initial import (#1967777)