Blame python-azure-mgmt-network.spec

8ea5b0a
# All of the tests require a proxy running under docker.
a855ee1
%bcond_with     tests
a855ee1
e42d016
%global         srcname     azure-mgmt-network
e42d016
e42d016
Name:           python-%{srcname}
ae8e796
Version:        21.0.1
cd13532
Release:        %autorelease
e42d016
Summary:        Microsoft Azure Network Management Client Library for Python
e42d016
License:        MIT
e42d016
URL:            https://pypi.org/project/%{srcname}/
ae8e796
Source0:        %{pypi_source %{srcname} %{version} zip}
e42d016
e42d016
BuildArch:      noarch
e42d016
04adf2e
BuildRequires:  python3-devel
e42d016
a855ee1
%if %{with tests}
a855ee1
BuildRequires:  python3dist(azure-devtools)
a855ee1
BuildRequires:  python3dist(azure-mgmt-keyvault)
a855ee1
BuildRequires:  python3dist(azure-mgmt-resource)
a855ee1
BuildRequires:  python3dist(azure-sdk-tools)
a855ee1
BuildRequires:  python3dist(pytest)
a855ee1
BuildRequires:  python3dist(pytest-aiohttp)
a855ee1
BuildRequires:  python3dist(python-dotenv)
a855ee1
%endif
e42d016
e42d016
%global _description %{expand:
e42d016
Microsoft Azure Network Management Client Library for Python}
e42d016
e42d016
%description %{_description}
e42d016
e42d016
04adf2e
%package -n python3-%{srcname}
e42d016
Summary:        %{summary}
8ea5b0a
04adf2e
%description -n python3-%{srcname} %{_description}
e42d016
e42d016
e42d016
%prep
e42d016
%autosetup -n %{srcname}-%{version}
e42d016
e42d016
e42d016
%generate_buildrequires
8ea5b0a
%pyproject_buildrequires
e42d016
e42d016
e42d016
%build
e42d016
%pyproject_wheel
e42d016
e42d016
e42d016
%install
e42d016
%pyproject_install
e42d016
%pyproject_save_files azure
e42d016
e42d016
a855ee1
%check
8ea5b0a
%pyproject_check_import
8ea5b0a
8ea5b0a
%if %{with tests}
8ea5b0a
%pytest
a855ee1
%endif
a855ee1
a855ee1
e42d016
%files -n python3-%{srcname} -f %{pyproject_files}
e42d016
%doc README.md
e42d016
e42d016
e42d016
%changelog
cd13532
%autochangelog