Blame python-azure-mgmt-signalr.spec

118b639
# Upstream removed the tests from PyPi.
7860707
%bcond_with     tests
d00d322
e8c7e77
%global         srcname     azure-mgmt-signalr
e8c7e77
e8c7e77
Name:           python-%{srcname}
118b639
Version:        2.0.0~b1
118b639
%global         pypi_version 2.0.0b1
8b94273
Release:        %autorelease
e8c7e77
Summary:        Microsoft Azure SignalR Client Library for Python
e8c7e77
License:        MIT
e8c7e77
URL:            https://pypi.org/project/%{srcname}/
118b639
Source0:        %{pypi_source %{srcname} %{pypi_version}}
e8c7e77
e8c7e77
BuildArch:      noarch
e8c7e77
bd80da7
BuildRequires:  python3-devel
e8c7e77
d00d322
%if %{with tests}
d00d322
BuildRequires:  python3dist(azure-devtools)
d00d322
BuildRequires:  python3dist(azure-mgmt-keyvault)
d00d322
BuildRequires:  python3dist(azure-mgmt-resource)
d00d322
BuildRequires:  python3dist(azure-sdk-tools)
d00d322
BuildRequires:  python3dist(pytest)
d00d322
BuildRequires:  python3dist(pytest-aiohttp)
d00d322
BuildRequires:  python3dist(python-dotenv)
d00d322
%endif
e8c7e77
e8c7e77
%global _description %{expand:
e8c7e77
Microsoft Azure SignalR Client Library for Python}
e8c7e77
e8c7e77
%description %{_description}
e8c7e77
e8c7e77
bd80da7
%package -n python3-%{srcname}
e8c7e77
Summary:        %{summary}
d00d322
bd80da7
%description -n python3-%{srcname} %{_description}
e8c7e77
e8c7e77
e8c7e77
%prep
118b639
%autosetup -n %{srcname}-%{pypi_version}
e8c7e77
e8c7e77
e8c7e77
%generate_buildrequires
d00d322
%pyproject_buildrequires
e8c7e77
e8c7e77
e8c7e77
%build
e8c7e77
%pyproject_wheel
e8c7e77
e8c7e77
e8c7e77
%install
e8c7e77
%pyproject_install
e8c7e77
%pyproject_save_files azure
e8c7e77
e8c7e77
d00d322
%check
d00d322
%pyproject_check_import
d00d322
d00d322
%if %{with tests}
d00d322
%pytest
d00d322
%endif
d00d322
d00d322
e8c7e77
%files -n python3-%{srcname} -f %{pyproject_files}
e8c7e77
%doc README.md
e8c7e77
e8c7e77
e8c7e77
%changelog
8b94273
%autochangelog