Compare commits

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

18 commits

Author SHA1 Message Date
Python Maint
046148fd63 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:49:18 +02:00
Python Maint
819539b0a0 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:18:21 +02:00
Fedora Release Engineering
19b87b4e81 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 06:50:21 +00:00
Python Maint
835ba7b961 Rebuilt for Python 3.14 2025-06-04 01:20:46 +02:00
Fedora Release Engineering
99f4483e09 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 12:12:35 +00:00
Fedora Release Engineering
8db5039cdb Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 09:45:49 +00:00
Python Maint
ccadb28b20 Rebuilt for Python 3.13 2024-06-08 10:29:18 +02:00
Fedora Release Engineering
4536d9ca07 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 01:40:14 +00:00
Fedora Release Engineering
d5bca1c309 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 23:34:58 +00:00
Fedora Release Engineering
ce31db2108 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 07:38:25 +00:00
Python Maint
24fe12b4e8 Rebuilt for Python 3.12 2023-06-29 12:56:35 +02:00
Major Hayden
9eea5d2a8d
-S
Migrated to SPDX license

Signed-off-by: Major Hayden <major@redhat.com>
2023-05-08 13:56:18 -05:00
Fedora Release Engineering
97a0ab5f40 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 11:29:42 +00:00
Fedora Release Engineering
468a471f96 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 16:37:13 +00:00
Major Hayden
085fb9f73e
Check imports using GitHub source code 2022-06-28 12:39:43 -05:00
Python Maint
a8170f7908 Rebuilt for Python 3.11 2022-06-15 15:33:49 +02:00
Major Hayden
6f5c1ad0e3
Switch to rpmautospec 2022-04-28 09:07:27 -05:00
Fedora Release Engineering
c6ef68376d - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 10:34:49 +00:00
4 changed files with 51 additions and 25 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/azure-mgmt-batchai-2.0.0.zip
/azure-mgmt-batchai-7.0.0b1.zip
/azure-mgmt-batchai-7.0.0b1.tgz

21
generate-source.sh Executable file
View file

@ -0,0 +1,21 @@
#!/bin/bash
set -euxo pipefail
export VERSION=7.0.0b1
export PACKAGE_NAME=azure-mgmt-batchai
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

View file

@ -1,21 +1,33 @@
# No tests available from upstream yet.
%bcond_with tests
%global srcname azure-mgmt-batchai
Name: python-%{srcname}
Version: 7.0.0b1
Release: 3%{?dist}
Release: %autorelease
Summary: Microsoft Azure Batch AI Management 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
Epoch: 1
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
%if %{with tests}
BuildRequires: python3dist(azure-devtools)
BuildRequires: python3dist(azure-mgmt-keyvault)
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:
Microsoft Azure Batch AI Management Client Library for Python}
@ -25,16 +37,16 @@ Microsoft Azure Batch AI Management Client Library for Python}
%package -n python3-%{srcname}
Summary: %{summary}
Obsoletes: python3-azure-sdk < 5.0.1
%description -n python3-%{srcname} %{_description}
%prep
%autosetup -p0 -n %{srcname}-%{version}
%autosetup -n %{srcname}-%{version}
%generate_buildrequires
%pyproject_buildrequires -r
%pyproject_buildrequires
%build
@ -46,25 +58,17 @@ Obsoletes: python3-azure-sdk < 5.0.1
%pyproject_save_files azure
%check
%pyproject_check_import
%if %{with tests}
%pytest
%endif
%files -n python3-%{srcname} -f %{pyproject_files}
%doc README.md CHANGELOG.md
%changelog
* Wed Sep 08 2021 Major Hayden <major@mhtx.net> - 1:7.0.0b1-3
- Move obsoletes into subpackage
* Mon Aug 09 2021 Major Hayden <major@mhtx.net> - 1:7.0.0b1-2
- Update to 7.0.0b1
* Fri Jul 23 2021 Major Hayden <major@mhtx.net> - 1:2.0.0-4
- Add epoch number to 2.0.0 downgrade
* Wed Jul 14 2021 Major Hayden <major@mhtx.net> - 2.0.0-3
- Remove unneccessary __init__.py files to avoid file conflicts.
* Wed Jul 07 2021 Major Hayden <major@mhtx.net> - 2.0.0-2
- Removed customized wheel builder from package to avoid -nspkg requirement.
* Tue Jun 01 2021 Major Hayden <major@mhtx.net> - 2.0.0-1
- First package.
%autochangelog

View file

@ -1 +1 @@
SHA512 (azure-mgmt-batchai-7.0.0b1.zip) = c81be868cb87ff9d2acc82b83581844586a31ecbb8b4a3a8e2025cfcc658009030dd97ce873b6b2d0d2ab175ac4ba21ed4c1906f08f047c8c84fc4081e26be2b
SHA512 (azure-mgmt-batchai-7.0.0b1.tgz) = 0893276a24dba766a031e68a7b617d0f21c954c6238ac5d5b422376772261c659cde35f68d032020a84c3cb621565c1b71f89eec2e8fd5dd6921d0ea7bc3f6c0