diff --git a/.gitignore b/.gitignore index 73528f3..ea5899a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,8 +2,3 @@ /azure-batch-11.0.0.zip /azure-batch-12.0.0.zip /azure-batch-12.0.0.tgz -/azure-batch-13.0.0.zip -/azure-batch-14.0.0.zip -/azure-batch-14.1.0.tar.gz -/azure-batch-14.2.0.tar.gz -/azure_batch-15.0.0b1.tar.gz diff --git a/python-azure-batch.spec b/python-azure-batch.spec index 1746fc5..b9e8588 100644 --- a/python-azure-batch.spec +++ b/python-azure-batch.spec @@ -1,17 +1,18 @@ -# NOTE(mhayden): Upstream removed VCR cassettes required for tests 😢 -%bcond_with tests +# NOTE(mhayden): The tests require network access to talk to some Azure +# endpoints, so the tests are disabled for now. 😞 +%bcond_without tests %global srcname azure-batch -%global tarball_name azure_batch Name: python-%{srcname} -Version: 15.0.0~b1 -%global pypi_version 15.0.0b1 +Version: 12.0.0 Release: %autorelease Summary: Microsoft Azure Batch Client Library for Python License: MIT URL: https://pypi.org/project/%{srcname}/ -Source0: %{pypi_source %{tarball_name} %{pypi_version}} +# 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 @@ -41,7 +42,7 @@ Summary: %{summary} %prep -%autosetup -n %{tarball_name}-%{pypi_version} +%autosetup -n %{srcname}-%{version} %generate_buildrequires @@ -61,7 +62,9 @@ Summary: %{summary} %pyproject_check_import %if %{with tests} -%pytest +%pytest \ + -k "not test_batch_applications \ + and not test_batch_files" %endif diff --git a/sources b/sources index 62c3158..bfdc76e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure_batch-15.0.0b1.tar.gz) = 7f72aaf98c3f3f9602bbeb0a6c3a0e5a27d1d1d3159e1b99f83ab404fe007e4baa3860e92278029c222a040a434305e11a61d790e960c15720bc1bbf39e9f4fe +SHA512 (azure-batch-12.0.0.tgz) = a3db8d9fc6e88ed32bc048872328c482c93640704d1f831c50a3c3efcf67043ac80d9a56aeb1b8e5760ca5c6470a0a4e41e89543af9a3fb400deaff0a59183a7