Blame python-azure-mgmt-batchai.spec

085fb9f
# No tests available from upstream yet.
085fb9f
%bcond_with     tests
085fb9f
fba4889
%global         srcname     azure-mgmt-batchai
fba4889
fba4889
Name:           python-%{srcname}
14f04bc
Version:        7.0.0b1
6f5c1ad
Release:        %autorelease
fba4889
Summary:        Microsoft Azure Batch AI Management Client Library for Python
fba4889
License:        MIT
fba4889
URL:            https://pypi.org/project/%{srcname}/
085fb9f
# This source comes from making a git archive of the main azure-sdk-for-python
085fb9f
# repository. To reproduce the source code, run the generate-source.sh script.
085fb9f
Source0:        %{srcname}-%{version}.tgz
fba4889
fba4889
BuildArch:      noarch
fba4889
a0f4668
Epoch:          1
a0f4668
f2fcbaa
BuildRequires:  python3-devel
fba4889
085fb9f
%if %{with tests}
085fb9f
BuildRequires:  python3dist(azure-devtools)
085fb9f
BuildRequires:  python3dist(azure-mgmt-keyvault)
085fb9f
BuildRequires:  python3dist(azure-mgmt-resource)
085fb9f
BuildRequires:  python3dist(azure-sdk-tools)
085fb9f
BuildRequires:  python3dist(pytest)
085fb9f
BuildRequires:  python3dist(pytest-aiohttp)
085fb9f
BuildRequires:  python3dist(python-dotenv)
085fb9f
%endif
fba4889
fba4889
%global _description %{expand:
fba4889
Microsoft Azure Batch AI Management Client Library for Python}
fba4889
fba4889
%description %{_description}
fba4889
fba4889
f2fcbaa
%package -n python3-%{srcname}
fba4889
Summary:        %{summary}
085fb9f
f2fcbaa
%description -n python3-%{srcname} %{_description}
fba4889
fba4889
fba4889
%prep
085fb9f
%autosetup -n %{srcname}-%{version}
fba4889
fba4889
fba4889
%generate_buildrequires
085fb9f
%pyproject_buildrequires
fba4889
fba4889
fba4889
%build
fba4889
%pyproject_wheel
fba4889
fba4889
fba4889
%install
fba4889
%pyproject_install
14f04bc
%pyproject_save_files azure
fba4889
fba4889
085fb9f
%check
085fb9f
%pyproject_check_import
085fb9f
085fb9f
%if %{with tests}
085fb9f
%pytest
085fb9f
%endif
085fb9f
085fb9f
14f04bc
%files -n python3-%{srcname} -f %{pyproject_files}
14f04bc
%doc README.md CHANGELOG.md
fba4889
fba4889
fba4889
%changelog
6f5c1ad
%autochangelog