diff --git a/.gitignore b/.gitignore index 799271a..310afe0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /azure-mgmt-iothub-2.0.0.zip /azure-mgmt-iothub-2.1.0.zip +/azure-mgmt-iothub-2.2.0.zip diff --git a/python-azure-mgmt-iothub.spec b/python-azure-mgmt-iothub.spec index de5dc86..f311af8 100644 --- a/python-azure-mgmt-iothub.spec +++ b/python-azure-mgmt-iothub.spec @@ -1,7 +1,9 @@ +%bcond_without tests + %global srcname azure-mgmt-iothub Name: python-%{srcname} -Version: 2.1.0 +Version: 2.2.0 Release: %autorelease Summary: Microsoft Azure IoTHub Management Client Library for Python License: MIT @@ -12,7 +14,19 @@ BuildArch: noarch BuildRequires: python3-devel -BuildRequires: pyproject-rpm-macros + +%if %{with tests} +BuildRequires: python3-azure-sdk-tools +BuildRequires: python3dist(azure-devtools) +BuildRequires: python3dist(azure-mgmt-authorization) +BuildRequires: python3dist(azure-mgmt-keyvault) +BuildRequires: python3dist(azure-mgmt-resource) +BuildRequires: python3dist(azure-mgmt-storage) +BuildRequires: python3dist(azure-mgmt-network) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-aiohttp) +BuildRequires: python3dist(python-dotenv) +%endif %global _description %{expand: @@ -44,6 +58,12 @@ Obsoletes: python3-azure-sdk < 5.0.1 %pyproject_save_files azure +%if %{with tests} +%check +%pytest --disable-warnings +%endif + + %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md diff --git a/sources b/sources index 1426185..a314e61 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure-mgmt-iothub-2.1.0.zip) = b40d529c33a5f4eeeef8ac4ed853e77646a1ffb30417be0de2b969521105e3ccd61751647a8c8e05ae70d25611b1d49fb2cbaca1c0419b05ed2c3df1b8fed354 +SHA512 (azure-mgmt-iothub-2.2.0.zip) = c1c18f1493afaae2df36ca518c8eb63f48843e271ba303413f2427eb4d6e360dac9e3b34a77b8e93faff651cf648893078e02acba7564f4ab4d26e17f2c98cf2