Compare commits

...
Sign in to create a new pull request.

23 commits

Author SHA1 Message Date
Python Maint
4ff3bdfa39 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:48:13 +02:00
Python Maint
adb64d3508 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:17:21 +02:00
Fedora Release Engineering
14caaa4e7e Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 06:48:04 +00:00
Python Maint
aa394bd887 Rebuilt for Python 3.14 2025-06-03 11:00:33 +02:00
Jeremy Cline
b33ff08c97
Update to v15.0.0b1 2025-05-01 16:26:16 -04:00
Fedora Release Engineering
d2fca0dbe0 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 12:08:17 +00:00
Fedora Release Engineering
78b23aaaa3 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 09:42:01 +00:00
Python Maint
eb190c9793 Rebuilt for Python 3.13 2024-06-08 10:28:49 +02:00
Jeremy Cline
d801e0ab87
Update to v14.2.0 (rhbz #2271954) 2024-04-04 09:14:11 -04:00
Jeremy Cline
9884d3ecad Update to v14.1.0
This is required for azure-cli v2.58 (rhbz#2268049)
2024-03-06 10:27:13 -05:00
Fedora Release Engineering
87c7af4002 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 01:34:02 +00:00
Fedora Release Engineering
029d0fc023 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 23:31:23 +00:00
Major Hayden
bf302762a8
Update to 14.0.0 2023-08-01 09:44:22 -05:00
Fedora Release Engineering
25c930bb01 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 07:33:16 +00:00
Python Maint
a268f7aa20 Rebuilt for Python 3.12 2023-06-29 12:55:58 +02:00
Major Hayden
61539d8423
Migrated to SPDX license
Signed-off-by: Major Hayden <major@redhat.com>
2023-05-17 07:27:22 -05:00
Major Hayden
56a1a3d003
-S
Migrated to SPDX license

Signed-off-by: Major Hayden <major@redhat.com>
2023-05-08 14:22:25 -05:00
Fedora Release Engineering
c87a14e292 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 11:25:49 +00:00
Major Hayden
be8b02d910
Update to 13.0.0 2023-01-11 14:00:29 -06:00
Fedora Release Engineering
54b62b89df Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 16:33:22 +00:00
Major Hayden
9f36699484
Skip tests in epel9 2022-07-08 10:10:50 -05:00
Major Hayden
70b2af8654
Run tests using source from GitHub 2022-06-27 14:19:16 -05:00
Python Maint
d08efd2b62 Rebuilt for Python 3.11 2022-06-16 12:07:40 +02:00
4 changed files with 44 additions and 10 deletions

6
.gitignore vendored
View file

@ -1,3 +1,9 @@
/azure-batch-10.0.0.zip
/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

25
generate-source.sh Executable file
View file

@ -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}

View file

@ -1,16 +1,17 @@
# NOTE(mhayden): The tests require network access to talk to some Azure
# endpoints, so the tests are disabled for now. 😞
# NOTE(mhayden): Upstream removed VCR cassettes required for tests 😢
%bcond_with tests
%global srcname azure-batch
%global tarball_name azure_batch
Name: python-%{srcname}
Version: 12.0.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} zip}
Source0: %{pypi_source %{tarball_name} %{pypi_version}}
BuildArch: noarch
@ -24,6 +25,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,17 +36,16 @@ 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}
%prep
%autosetup -n %{srcname}-%{version}
%autosetup -n %{tarball_name}-%{pypi_version}
%generate_buildrequires
%pyproject_buildrequires -r
%pyproject_buildrequires
%build
@ -56,9 +57,11 @@ 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
%endif

View file

@ -1 +1 @@
SHA512 (azure-batch-12.0.0.zip) = 65e2f0af942baf28fec2219e906ef776d032128bba8b1d062e984e632eb73c2807846510c7d248e5609121cd8e338ea0c56dcbd2ba448bba86cb33c79396ddfa
SHA512 (azure_batch-15.0.0b1.tar.gz) = 7f72aaf98c3f3f9602bbeb0a6c3a0e5a27d1d1d3159e1b99f83ab404fe007e4baa3860e92278029c222a040a434305e11a61d790e960c15720bc1bbf39e9f4fe