Blame python-azure-mgmt-containerregistry.spec

b4441dc
# Upstream has marked all tests as skipped.
b4441dc
%bcond_with     tests
7b091e5
302fa0d
%global         srcname     azure-mgmt-containerregistry
302fa0d
302fa0d
Name:           python-%{srcname}
Jeremy Cline 8485527
Version:        10.3.0
d770bea
Release:        %autorelease
302fa0d
Summary:        Microsoft Azure Container Registry Client Library for Python
302fa0d
License:        MIT
302fa0d
URL:            https://pypi.org/project/%{srcname}/
Jeremy Cline 8485527
Source0:        %{pypi_source %{srcname} %{version}}
302fa0d
302fa0d
BuildArch:      noarch
302fa0d
5c019e9
Epoch:          1
5c019e9
302fa0d
21b73e1
BuildRequires:  python3-devel
302fa0d
7b091e5
%if %{with tests}
7b091e5
BuildRequires:  python3dist(azure-devtools)
7b091e5
BuildRequires:  python3dist(azure-mgmt-keyvault)
7b091e5
BuildRequires:  python3dist(azure-mgmt-resource)
eda483e
BuildRequires:  python3dist(azure-sdk-tools)
7b091e5
BuildRequires:  python3dist(pytest)
b4441dc
BuildRequires:  python3dist(python-dotenv)
7b091e5
%endif
302fa0d
302fa0d
%global _description %{expand:
302fa0d
Microsoft Azure Container Registry Client Library for Python}
302fa0d
302fa0d
%description %{_description}
302fa0d
302fa0d
21b73e1
%package -n python3-%{srcname}
302fa0d
Summary:        %{summary}
eda483e
21b73e1
%description -n python3-%{srcname} %{_description}
302fa0d
302fa0d
302fa0d
%prep
302fa0d
%autosetup -n %{srcname}-%{version}
302fa0d
302fa0d
302fa0d
%generate_buildrequires
eda483e
%pyproject_buildrequires
302fa0d
302fa0d
302fa0d
%build
302fa0d
%pyproject_wheel
302fa0d
302fa0d
302fa0d
%install
302fa0d
%pyproject_install
302fa0d
%pyproject_save_files azure
302fa0d
302fa0d
7b091e5
%check
eda483e
%pyproject_check_import
eda483e
eda483e
%if %{with tests}
7b091e5
%pytest
7b091e5
%endif
7b091e5
7b091e5
302fa0d
%files -n python3-%{srcname} -f %{pyproject_files}
8835d1e
%doc README.md CHANGELOG.md
302fa0d
302fa0d
302fa0d
%changelog
d770bea
%autochangelog