Blame python-azure-storage-common.spec

4c5d70e
# No tests from upstream yet.
4c5d70e
%bcond_with     tests
4c5d70e
3f8c928
%global         srcname     azure-storage-common
3f8c928
3f8c928
Name:           python-%{srcname}
66cf3ed
Version:        1.4.2
eaae8d3
Release:        %autorelease
3f8c928
Summary:        Microsoft Azure Storage Common Client Library for Python
3f8c928
License:        MIT
3f8c928
URL:            https://pypi.org/project/%{srcname}/
3f8c928
Source0:        %{pypi_source %{srcname} %{version}}
3f8c928
3f8c928
BuildArch:      noarch
3f8c928
66cf3ed
Epoch:          1
66cf3ed
66cf3ed
BuildRequires:  python3-devel
3f8c928
4c5d70e
%if %{with tests}
4c5d70e
BuildRequires:  python3dist(azure-devtools)
4c5d70e
BuildRequires:  python3dist(azure-mgmt-keyvault)
4c5d70e
BuildRequires:  python3dist(azure-mgmt-resource)
4c5d70e
BuildRequires:  python3dist(azure-sdk-tools)
4c5d70e
BuildRequires:  python3dist(pytest)
4c5d70e
BuildRequires:  python3dist(pytest-aiohttp)
4c5d70e
BuildRequires:  python3dist(python-dotenv)
4c5d70e
%endif
3f8c928
3f8c928
%global _description %{expand:
3f8c928
Microsoft Azure Storage Common Client Library for Python}
3f8c928
3f8c928
%description %{_description}
3f8c928
3f8c928
66cf3ed
%package -n python3-%{srcname}
3f8c928
Summary:        %{summary}
4c5d70e
66cf3ed
%description -n python3-%{srcname} %{_description}
3f8c928
3f8c928
3f8c928
%prep
3f8c928
%autosetup -n %{srcname}-%{version}
3f8c928
3f8c928
3f8c928
%generate_buildrequires
4c5d70e
%pyproject_buildrequires
3f8c928
3f8c928
3f8c928
%build
3f8c928
%pyproject_wheel
3f8c928
3f8c928
3f8c928
%install
3f8c928
%pyproject_install
3f8c928
%pyproject_save_files azure
3f8c928
3f8c928
4c5d70e
%check
4c5d70e
%pyproject_check_import
4c5d70e
4c5d70e
%if %{with tests}
4c5d70e
%pytest
4c5d70e
%endif
4c5d70e
4c5d70e
3f8c928
%files -n python3-%{srcname} -f %{pyproject_files}
3f8c928
%doc README.rst
3f8c928
%license LICENSE.txt
3f8c928
3f8c928
3f8c928
%changelog
eaae8d3
%autochangelog