Get source from git repository

This commit is contained in:
Major Hayden 2022-06-24 14:08:18 -05:00
commit 8ea5b0a8e7
No known key found for this signature in database
GPG key ID: 737051E0C1011FB1
4 changed files with 33 additions and 7 deletions

View file

@ -1,4 +1,4 @@
# All tests are marked as "live" tests which require network connectivity.
# All of the tests require a proxy running under docker.
%bcond_with tests
%global srcname azure-mgmt-network
@ -9,7 +9,9 @@ Release: %autorelease
Summary: Microsoft Azure Network Management Client Library for Python
License: MIT
URL: https://pypi.org/project/%{srcname}/
Source0: %{pypi_source %{srcname} %{version} zip}
# This source comes from making a git archive of the main azure-sdk-for-python
# repository. To reproduce the source code, run the generate-source.sh script.
Source0: %{srcname}-%{version}.tgz
BuildArch: noarch
@ -33,7 +35,7 @@ Microsoft Azure Network Management Client Library for Python}
%package -n python3-%{srcname}
Summary: %{summary}
Obsoletes: python3-azure-sdk < 5.0.1
%description -n python3-%{srcname} %{_description}
@ -42,7 +44,7 @@ Obsoletes: python3-azure-sdk < 5.0.1
%generate_buildrequires
%pyproject_buildrequires -r
%pyproject_buildrequires
%build
@ -54,9 +56,11 @@ Obsoletes: python3-azure-sdk < 5.0.1
%pyproject_save_files azure
%if %{with tests}
%check
%pytest -m "not live_test_only"
%pyproject_check_import
%if %{with tests}
%pytest
%endif