From 39fe260e0e8c8928152cc6902a1ec60ff5c6ad2f Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 15 Jun 2022 15:33:50 +0200 Subject: [PATCH 01/16] Rebuilt for Python 3.11 From f25fde65f27332a1e735c19008ea85e4ee462dc4 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Tue, 28 Jun 2022 13:22:43 -0500 Subject: [PATCH 02/16] Add import test --- .gitignore | 1 + generate-source.sh | 21 +++++++++++++++++++++ python-azure-mgmt-cdn.spec | 12 ++++++++---- sources | 2 +- 4 files changed, 31 insertions(+), 5 deletions(-) create mode 100755 generate-source.sh diff --git a/.gitignore b/.gitignore index d7f3744..5872528 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /azure-mgmt-cdn-11.0.0.zip /azure-mgmt-cdn-12.0.0.zip +/azure-mgmt-cdn-12.0.0.tgz diff --git a/generate-source.sh b/generate-source.sh new file mode 100755 index 0000000..da577aa --- /dev/null +++ b/generate-source.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -euxo pipefail + +export VERSION=12.0.0 +export PACKAGE_NAME=azure-mgmt-cdn +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 \ No newline at end of file diff --git a/python-azure-mgmt-cdn.spec b/python-azure-mgmt-cdn.spec index 94250f4..260dcf7 100644 --- a/python-azure-mgmt-cdn.spec +++ b/python-azure-mgmt-cdn.spec @@ -9,17 +9,19 @@ Release: %autorelease Summary: Microsoft Azure CDN 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 BuildRequires: python3-devel %if %{with tests} -BuildRequires: python3-azure-sdk-tools BuildRequires: python3dist(azure-devtools) BuildRequires: python3dist(azure-mgmt-keyvault) BuildRequires: python3dist(azure-mgmt-resource) +BuildRequires: python3dist(azure-sdk-tools) BuildRequires: python3dist(pytest) BuildRequires: python3dist(python-dotenv) %endif @@ -40,15 +42,17 @@ Summary: %{summary} %generate_buildrequires -%pyproject_buildrequires -r +%pyproject_buildrequires %build %pyproject_wheel -%if %{with tests} %check +%pyproject_check_import + +%if %{with tests} %pytest %endif diff --git a/sources b/sources index 60487e3..8f21a53 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure-mgmt-cdn-12.0.0.zip) = 820a97f94bdff877b81a7825b5f85b7114fd1063a02cd6c9718850c35b9f0432029961a0d934c3e18985f6815aad65332f249db7c86b09ed35ad8a08eb5ad856 +SHA512 (azure-mgmt-cdn-12.0.0.tgz) = 5554c39ecc8ed2fc097c9b597b67cf6088e81e088ea579773da1cfacc0da41f71286b7dada0459fdaa1be3d52fbfd9a8fc903bec56e11635c6c71eee9efc7fb9 From bf2a2794a833c2227b3fa991181211aa2c477aa5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 16:37:45 +0000 Subject: [PATCH 03/16] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering From fbfd5f422bb8645c91874ac735cafb836215e3a4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 11:30:09 +0000 Subject: [PATCH 04/16] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering From 7c9ae47794db62c91e4de52f0b55376fc71dfc6b Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Mon, 8 May 2023 13:56:22 -0500 Subject: [PATCH 05/16] -S Migrated to SPDX license Signed-off-by: Major Hayden From 03a4db19359828261ad2ad79fab857231b9e5db0 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Thu, 29 Jun 2023 12:56:37 +0200 Subject: [PATCH 06/16] Rebuilt for Python 3.12 From 4e8681fbe4d3abe73bb65c3086ef50557e529112 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 07:39:03 +0000 Subject: [PATCH 07/16] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering From e8bb5774daedf9f26595d7c620b6a4043ed8ffda Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 21 Jan 2024 23:35:25 +0000 Subject: [PATCH 08/16] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 7bac94a680a5f374a45a17359a519098d9fe08a4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jan 2024 01:41:15 +0000 Subject: [PATCH 09/16] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 8aabaa44f1119779c88f98a717ef5a2434448b4a Mon Sep 17 00:00:00 2001 From: Python Maint Date: Sat, 8 Jun 2024 10:29:19 +0200 Subject: [PATCH 10/16] Rebuilt for Python 3.13 From af915c3dba0fded997ed53c5ba67feeaba744222 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 09:46:19 +0000 Subject: [PATCH 11/16] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 6b6e85033b57b4588f516cf78c4bb9f4fe030ee8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 12:13:08 +0000 Subject: [PATCH 12/16] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 2306b8ed011c80119c58544e471002efdadc485d Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 4 Jun 2025 01:20:47 +0200 Subject: [PATCH 13/16] Rebuilt for Python 3.14 From f5e4ebda200a2bd1b227d4d01174130c8bcb5069 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 06:50:38 +0000 Subject: [PATCH 14/16] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 56fa9c217f2bf548215c76575dbd186b234b2342 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 13:18:33 +0200 Subject: [PATCH 15/16] Rebuilt for Python 3.14.0rc2 bytecode From 4733705da39bba1b752b46cb5aaaccc797a21c22 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 12:49:31 +0200 Subject: [PATCH 16/16] Rebuilt for Python 3.14.0rc3 bytecode