Blame python-azure-mgmt-web.spec

32e9085
# No tests provided. 😢
c541b33
%bcond_with    tests
caec7e6
b2710e6
%global         srcname     azure-mgmt-web
b2710e6
b2710e6
Name:           python-%{srcname}
ada86c2
Version:        7.2.0
caec7e6
Release:        %autorelease
b2710e6
Summary:        Microsoft Azure Web Apps Management Client Library for Python
b2710e6
License:        MIT
b2710e6
URL:            https://pypi.org/project/%{srcname}/
ada86c2
Source0:        %{pypi_source %{srcname} %{version}}
b2710e6
b2710e6
BuildArch:      noarch
b2710e6
0a4886b
Epoch:          1
0a4886b
0e0e660
BuildRequires:  python3-devel
b2710e6
caec7e6
%if %{with tests}
caec7e6
BuildRequires:  python3dist(azure-devtools)
caec7e6
BuildRequires:  python3dist(azure-mgmt-keyvault)
caec7e6
BuildRequires:  python3dist(azure-mgmt-resource)
32e9085
BuildRequires:  python3dist(azure-sdk-tools)
caec7e6
BuildRequires:  python3dist(pytest)
caec7e6
BuildRequires:  python3dist(pytest-aiohttp)
0e0e660
BuildRequires:  python3dist(python-dotenv)
caec7e6
%endif
b2710e6
b2710e6
%global _description %{expand:
b2710e6
Microsoft Azure Web Apps Management Client Library for Python}
b2710e6
b2710e6
%description %{_description}
b2710e6
b2710e6
0a4886b
%package -n python3-%{srcname}
b2710e6
Summary:        %{summary}
ef139b7
0a4886b
%description -n python3-%{srcname} %{_description}
b2710e6
b2710e6
b2710e6
%prep
b2710e6
%autosetup -n %{srcname}-%{version}
b2710e6
b2710e6
b2710e6
%generate_buildrequires
b2710e6
%pyproject_buildrequires -r
b2710e6
b2710e6
b2710e6
%build
b2710e6
%pyproject_wheel
b2710e6
b2710e6
b2710e6
%install
b2710e6
%pyproject_install
b2710e6
%pyproject_save_files azure
b2710e6
b2710e6
caec7e6
%if %{with tests}
caec7e6
%check
5dd1a8a
%pyproject_check_import
caec7e6
%pytest --disable-warnings
caec7e6
%endif
b2710e6
b2710e6
caec7e6
%files -n python3-%{srcname} -f %{pyproject_files}
caec7e6
%doc README.md CHANGELOG.md
4844581
0a4886b
caec7e6
%changelog
caec7e6
%autochangelog