From d08efd2b6219f0cb6ffd954d1cc10811b7bac898 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Thu, 16 Jun 2022 12:07:40 +0200 Subject: [PATCH 01/23] Rebuilt for Python 3.11 From 70b2af8654d6313b442ef48becaa808afc121925 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Mon, 27 Jun 2022 14:19:03 -0500 Subject: [PATCH 02/23] Run tests using source from GitHub --- .gitignore | 1 + generate-source.sh | 25 +++++++++++++++++++++++++ python-azure-batch.spec | 18 ++++++++++++------ sources | 2 +- 4 files changed, 39 insertions(+), 7 deletions(-) create mode 100755 generate-source.sh diff --git a/.gitignore b/.gitignore index e3255ef..ea5899a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /azure-batch-10.0.0.zip /azure-batch-11.0.0.zip /azure-batch-12.0.0.zip +/azure-batch-12.0.0.tgz diff --git a/generate-source.sh b/generate-source.sh new file mode 100755 index 0000000..8f106d0 --- /dev/null +++ b/generate-source.sh @@ -0,0 +1,25 @@ +#!/bin/bash +set -euxo pipefail + +export VERSION=12.0.0 +export PACKAGE_NAME=azure-batch +WORKING_DIR=$(pwd) + +# Download the release and unpack it. +curl -LO https://github.com/Azure/azure-sdk-for-python/archive/refs/tags/${PACKAGE_NAME}_${VERSION}.tar.gz +tar xzf ${PACKAGE_NAME}_${VERSION}.tar.gz + +# Find the package directory in the SDK release and the parent directory. +PACKAGE_DIR=$(find azure-sdk-for-python-${PACKAGE_NAME}_${VERSION} -type d -name $PACKAGE_NAME) +PARENT_DIR=$(dirname $PACKAGE_DIR) + +# Build a tarball with a prefix directory that contains the package name and +# version. Store that in the directory where the script is running. +pushd $PARENT_DIR + tar --transform "s/^${PACKAGE_NAME}/${PACKAGE_NAME}-${VERSION}/" -cz \ + -f ${WORKING_DIR}/${PACKAGE_NAME}-${VERSION}.tgz $PACKAGE_NAME +popd + +# Clean up. +rm -f tar xzf ${PACKAGE_NAME}_${VERSION}.tar.gz +rm -rf azure-sdk-for-python-${PACKAGE_NAME}_${VERSION} \ No newline at end of file diff --git a/python-azure-batch.spec b/python-azure-batch.spec index 60f4e20..b9e8588 100644 --- a/python-azure-batch.spec +++ b/python-azure-batch.spec @@ -1,6 +1,6 @@ # NOTE(mhayden): The tests require network access to talk to some Azure # endpoints, so the tests are disabled for now. 😞 -%bcond_with tests +%bcond_without tests %global srcname azure-batch @@ -10,7 +10,9 @@ Release: %autorelease Summary: Microsoft Azure Batch 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 @@ -24,6 +26,7 @@ BuildRequires: python3dist(azure-mgmt-resource) BuildRequires: python3dist(azure-sdk-tools) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-aiohttp) +BuildRequires: python3dist(python-dotenv) %endif %global _description %{expand: @@ -34,7 +37,6 @@ Microsoft Azure Batch Client Library for Python} %package -n python3-%{srcname} Summary: %{summary} -Obsoletes: python3-azure-sdk < 5.0.1 %description -n python3-%{srcname} %{_description} @@ -44,7 +46,7 @@ Obsoletes: python3-azure-sdk < 5.0.1 %generate_buildrequires -%pyproject_buildrequires -r +%pyproject_buildrequires %build @@ -56,9 +58,13 @@ Obsoletes: python3-azure-sdk < 5.0.1 %pyproject_save_files azure -%if %{with tests} %check -%pytest --disable-warnings +%pyproject_check_import + +%if %{with tests} +%pytest \ + -k "not test_batch_applications \ + and not test_batch_files" %endif diff --git a/sources b/sources index d450352..bfdc76e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure-batch-12.0.0.zip) = 65e2f0af942baf28fec2219e906ef776d032128bba8b1d062e984e632eb73c2807846510c7d248e5609121cd8e338ea0c56dcbd2ba448bba86cb33c79396ddfa +SHA512 (azure-batch-12.0.0.tgz) = a3db8d9fc6e88ed32bc048872328c482c93640704d1f831c50a3c3efcf67043ac80d9a56aeb1b8e5760ca5c6470a0a4e41e89543af9a3fb400deaff0a59183a7 From 9f36699484b553a441086ad7bac7b6911943055c Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Fri, 8 Jul 2022 10:10:50 -0500 Subject: [PATCH 03/23] Skip tests in epel9 --- python-azure-batch.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-azure-batch.spec b/python-azure-batch.spec index b9e8588..a2d6eaf 100644 --- a/python-azure-batch.spec +++ b/python-azure-batch.spec @@ -1,6 +1,9 @@ -# NOTE(mhayden): The tests require network access to talk to some Azure -# endpoints, so the tests are disabled for now. 😞 +# EPEL9 does not have python-aiohttp packaged yet. +%if 0%{?fedora} %bcond_without tests +%else +%bcond_with tests +%endif %global srcname azure-batch From 54b62b89df6ed63c90224b8e6c51d5b5005e7215 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 16:33:22 +0000 Subject: [PATCH 04/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering From be8b02d910c9c324a95d34aa5447c49012a91fbe Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Wed, 11 Jan 2023 14:00:29 -0600 Subject: [PATCH 05/23] Update to 13.0.0 --- .gitignore | 1 + python-azure-batch.spec | 16 ++++------------ sources | 2 +- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index ea5899a..d6ff5a5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /azure-batch-11.0.0.zip /azure-batch-12.0.0.zip /azure-batch-12.0.0.tgz +/azure-batch-13.0.0.zip diff --git a/python-azure-batch.spec b/python-azure-batch.spec index a2d6eaf..1f8f355 100644 --- a/python-azure-batch.spec +++ b/python-azure-batch.spec @@ -1,21 +1,15 @@ -# EPEL9 does not have python-aiohttp packaged yet. -%if 0%{?fedora} -%bcond_without tests -%else +# NOTE(mhayden): Upstream removed VCR cassettes required for tests 😢 %bcond_with tests -%endif %global srcname azure-batch Name: python-%{srcname} -Version: 12.0.0 +Version: 13.0.0 Release: %autorelease Summary: Microsoft Azure Batch Client Library for Python License: MIT URL: https://pypi.org/project/%{srcname}/ -# 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 +Source0: %{pypi_source %{srcname} %{version} zip} BuildArch: noarch @@ -65,9 +59,7 @@ Summary: %{summary} %pyproject_check_import %if %{with tests} -%pytest \ - -k "not test_batch_applications \ - and not test_batch_files" +%pytest %endif diff --git a/sources b/sources index bfdc76e..9d26543 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure-batch-12.0.0.tgz) = a3db8d9fc6e88ed32bc048872328c482c93640704d1f831c50a3c3efcf67043ac80d9a56aeb1b8e5760ca5c6470a0a4e41e89543af9a3fb400deaff0a59183a7 +SHA512 (azure-batch-13.0.0.zip) = b22fc37fc3bc54625830874e4ad31f27c09aeff0d8c8d78f26a7fcc0498a28dfa20a3a7780f840469df0a7a1b980be568ff9a1e55d54d7d54ef785df24aeab01 From c87a14e292b5a400d37830de50cc0f9125a08e74 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 11:25:49 +0000 Subject: [PATCH 06/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering From 56a1a3d003c5bab893a94e4c2ef59ede356a7878 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Mon, 8 May 2023 14:22:25 -0500 Subject: [PATCH 07/23] -S Migrated to SPDX license Signed-off-by: Major Hayden From 61539d8423c80a2c7354bd19512a64b81047db04 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Wed, 17 May 2023 07:27:22 -0500 Subject: [PATCH 08/23] Migrated to SPDX license Signed-off-by: Major Hayden From a268f7aa2055eafb8152c5df63beed6730cf7b14 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Thu, 29 Jun 2023 12:55:58 +0200 Subject: [PATCH 09/23] Rebuilt for Python 3.12 From 25c930bb01907fc52b21fc4b5841f66015723b67 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 07:33:16 +0000 Subject: [PATCH 10/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering From bf302762a8886cd3e381ee6a456d04e57d2c7e2d Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Tue, 1 Aug 2023 09:44:22 -0500 Subject: [PATCH 11/23] Update to 14.0.0 --- .gitignore | 1 + python-azure-batch.spec | 2 +- sources | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d6ff5a5..7aa1239 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /azure-batch-12.0.0.zip /azure-batch-12.0.0.tgz /azure-batch-13.0.0.zip +/azure-batch-14.0.0.zip diff --git a/python-azure-batch.spec b/python-azure-batch.spec index 1f8f355..e5611aa 100644 --- a/python-azure-batch.spec +++ b/python-azure-batch.spec @@ -4,7 +4,7 @@ %global srcname azure-batch Name: python-%{srcname} -Version: 13.0.0 +Version: 14.0.0 Release: %autorelease Summary: Microsoft Azure Batch Client Library for Python License: MIT diff --git a/sources b/sources index 9d26543..c3b6919 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure-batch-13.0.0.zip) = b22fc37fc3bc54625830874e4ad31f27c09aeff0d8c8d78f26a7fcc0498a28dfa20a3a7780f840469df0a7a1b980be568ff9a1e55d54d7d54ef785df24aeab01 +SHA512 (azure-batch-14.0.0.zip) = 6706304e819bd74485aa3e064b66aff1239442c0f85141e67d1e157c4d1445431fe8c4f8bda43d4a9468aee764b64e4ba53f51a2a29c9ee1e057a5502261110a From 029d0fc02371f9a40eec8a9183238ee057372321 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 21 Jan 2024 23:31:23 +0000 Subject: [PATCH 12/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 87c7af4002313927ea7df089616cf3455b3855be Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jan 2024 01:34:02 +0000 Subject: [PATCH 13/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 9884d3ecad9b0717d8e9486b8c6605038356349d Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Wed, 6 Mar 2024 10:27:13 -0500 Subject: [PATCH 14/23] Update to v14.1.0 This is required for azure-cli v2.58 (rhbz#2268049) --- .gitignore | 1 + python-azure-batch.spec | 4 ++-- sources | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7aa1239..e26ad1f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /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 diff --git a/python-azure-batch.spec b/python-azure-batch.spec index e5611aa..02e5b1f 100644 --- a/python-azure-batch.spec +++ b/python-azure-batch.spec @@ -4,12 +4,12 @@ %global srcname azure-batch Name: python-%{srcname} -Version: 14.0.0 +Version: 14.1.0 Release: %autorelease Summary: Microsoft Azure Batch Client Library for Python License: MIT URL: https://pypi.org/project/%{srcname}/ -Source0: %{pypi_source %{srcname} %{version} zip} +Source0: %{pypi_source %{srcname} %{version}} BuildArch: noarch diff --git a/sources b/sources index c3b6919..d198698 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure-batch-14.0.0.zip) = 6706304e819bd74485aa3e064b66aff1239442c0f85141e67d1e157c4d1445431fe8c4f8bda43d4a9468aee764b64e4ba53f51a2a29c9ee1e057a5502261110a +SHA512 (azure-batch-14.1.0.tar.gz) = 51fd0b37c9be5ed2e1ac08e5790342e95885fa037fdcb11ee460b0f0aa188018a6eac218792d07e2aefef92c6a224994500f81bb8790fef2bf468d1d6877166c From d801e0ab8745549d88b084841fa1c4ec44321ac5 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Thu, 4 Apr 2024 09:14:11 -0400 Subject: [PATCH 15/23] Update to v14.2.0 (rhbz #2271954) --- .gitignore | 1 + python-azure-batch.spec | 2 +- sources | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e26ad1f..b84e6c7 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /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 diff --git a/python-azure-batch.spec b/python-azure-batch.spec index 02e5b1f..810a63d 100644 --- a/python-azure-batch.spec +++ b/python-azure-batch.spec @@ -4,7 +4,7 @@ %global srcname azure-batch Name: python-%{srcname} -Version: 14.1.0 +Version: 14.2.0 Release: %autorelease Summary: Microsoft Azure Batch Client Library for Python License: MIT diff --git a/sources b/sources index d198698..dece0e9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure-batch-14.1.0.tar.gz) = 51fd0b37c9be5ed2e1ac08e5790342e95885fa037fdcb11ee460b0f0aa188018a6eac218792d07e2aefef92c6a224994500f81bb8790fef2bf468d1d6877166c +SHA512 (azure-batch-14.2.0.tar.gz) = ac75521ab28061e761124de5d600d1402f5b467ee26f86ba46f75f906abb11355108669dc5262aa35b6a679f147d6b9c949921460694e771afca118f85abe0b3 From eb190c9793139ed92386123fd0999a1824ab45bd Mon Sep 17 00:00:00 2001 From: Python Maint Date: Sat, 8 Jun 2024 10:28:49 +0200 Subject: [PATCH 16/23] Rebuilt for Python 3.13 From 78b23aaaa334b1a5c4d5ca6e1236ecfaac1c1d62 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 09:42:01 +0000 Subject: [PATCH 17/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From d2fca0dbe055cefb579c4d24b2354bfa0ae0ebcb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 12:08:17 +0000 Subject: [PATCH 18/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From b33ff08c971e79c7b8b8af3d044a1d13c9552191 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Thu, 1 May 2025 16:26:16 -0400 Subject: [PATCH 19/23] Update to v15.0.0b1 --- .gitignore | 1 + python-azure-batch.spec | 8 +++++--- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b84e6c7..73528f3 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /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 810a63d..1746fc5 100644 --- a/python-azure-batch.spec +++ b/python-azure-batch.spec @@ -2,14 +2,16 @@ %bcond_with tests %global srcname azure-batch +%global tarball_name azure_batch Name: python-%{srcname} -Version: 14.2.0 +Version: 15.0.0~b1 +%global pypi_version 15.0.0b1 Release: %autorelease Summary: Microsoft Azure Batch Client Library for Python License: MIT URL: https://pypi.org/project/%{srcname}/ -Source0: %{pypi_source %{srcname} %{version}} +Source0: %{pypi_source %{tarball_name} %{pypi_version}} BuildArch: noarch @@ -39,7 +41,7 @@ Summary: %{summary} %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{tarball_name}-%{pypi_version} %generate_buildrequires diff --git a/sources b/sources index dece0e9..62c3158 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure-batch-14.2.0.tar.gz) = ac75521ab28061e761124de5d600d1402f5b467ee26f86ba46f75f906abb11355108669dc5262aa35b6a679f147d6b9c949921460694e771afca118f85abe0b3 +SHA512 (azure_batch-15.0.0b1.tar.gz) = 7f72aaf98c3f3f9602bbeb0a6c3a0e5a27d1d1d3159e1b99f83ab404fe007e4baa3860e92278029c222a040a434305e11a61d790e960c15720bc1bbf39e9f4fe From aa394bd887bfa3dc0240a7f97f9befbafe6c54d1 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 3 Jun 2025 11:00:33 +0200 Subject: [PATCH 20/23] Rebuilt for Python 3.14 From 14caaa4e7e7a6b134b5ee1d44727e26b48636137 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 06:48:04 +0000 Subject: [PATCH 21/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From adb64d35080e3ad330caaca613c245bda7c35d7a Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 13:17:21 +0200 Subject: [PATCH 22/23] Rebuilt for Python 3.14.0rc2 bytecode From 4ff3bdfa393fc84494c32f52a3852a2af4388cc9 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 12:48:13 +0200 Subject: [PATCH 23/23] Rebuilt for Python 3.14.0rc3 bytecode