Compare commits

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

19 commits

Author SHA1 Message Date
Python Maint
8a47917420 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:49:35 +02:00
Python Maint
293cce1998 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:18:42 +02:00
Fedora Release Engineering
73a838db01 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 06:50:55 +00:00
Python Maint
e2747fa20e Rebuilt for Python 3.14 2025-06-06 17:35:47 +02:00
Fedora Release Engineering
52db5c0099 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 12:13:41 +00:00
Fedora Release Engineering
3fe3bfaa91 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 09:46:50 +00:00
Python Maint
afe687a416 Rebuilt for Python 3.13 2024-06-09 13:43:01 +02:00
Fedora Release Engineering
84142f48f6 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 01:42:11 +00:00
Fedora Release Engineering
aee9fb4a9c Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 23:35:52 +00:00
Fedora Release Engineering
09a1296091 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 07:39:35 +00:00
Python Maint
1304396ee8 Rebuilt for Python 3.12 2023-07-01 18:45:49 +02:00
Major Hayden
a828a01fe1
-S
Migrated to SPDX license

Signed-off-by: Major Hayden <major@redhat.com>
2023-05-08 13:56:25 -05:00
Fedora Release Engineering
bc606bf933 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 11:30:37 +00:00
Fedora Release Engineering
aed31f5f37 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 16:38:15 +00:00
Major Hayden
d7ccfaf5e7
Add testing conditional for epel9 2022-07-08 10:15:58 -05:00
Major Hayden
69f4a977cb
Run tests during build 2022-06-28 13:35:05 -05:00
Python Maint
1752a92b62 Rebuilt for Python 3.11 2022-06-16 12:07:38 +02:00
Major Hayden
96399a74df
Switch to rpmautospec 2022-04-28 09:22:59 -05:00
Fedora Release Engineering
ff34a6f910 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 10:35:42 +00:00
5 changed files with 57 additions and 32 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/azure-mgmt-consumption-8.0.0.zip
/azure-mgmt-consumption-2.0.0.zip
/azure-mgmt-consumption-2.0.0.tgz

21
generate-source.sh Executable file
View file

@ -0,0 +1,21 @@
#!/bin/bash
set -euxo pipefail
export VERSION=2.0.0
export PACKAGE_NAME=azure-mgmt-consumption
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,10 +0,0 @@
diff -up ./setup.cfg.orig ./setup.cfg
--- ./setup.cfg.orig 2021-07-22 16:37:20.836524174 -0500
+++ ./setup.cfg 2021-07-22 16:37:28.147481481 -0500
@@ -1,6 +1,5 @@
[bdist_wheel]
universal = 1
-azure-namespace-package = azure-mgmt-nspkg
[egg_info]
tag_build =

View file

@ -1,22 +1,37 @@
# EPEL9 does not have python-aiohttp packaged yet.
%if 0%{?fedora}
%bcond_without tests
%else
%bcond_with tests
%endif
%global srcname azure-mgmt-consumption
Name: python-%{srcname}
Version: 2.0.0
Release: 4%{?dist}
Release: %autorelease
Summary: Microsoft Azure Consumption Client Library for Python
License: MIT
URL: https://pypi.org/project/%{srcname}/
Source0: %{pypi_source %{srcname} %{version} zip}
Patch0: python-azure-consumption-remove-nspkg.patch
# 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
Epoch: 1
BuildArch: noarch
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 Consumption Client Library for Python}
@ -26,7 +41,7 @@ Microsoft Azure Consumption Client Library for Python}
%package -n python3-%{srcname}
Summary: %{summary}
Obsoletes: python3-azure-sdk < 5.0.1
%description -n python3-%{srcname} %{_description}
@ -34,11 +49,12 @@ Obsoletes: python3-azure-sdk < 5.0.1
%autosetup -p0 -n %{srcname}-%{version}
# Remove the custom wheel builder.
sed -i '/azure-namespace-package/d' setup.cfg
rm -fv azure_bdist_wheel.py
%generate_buildrequires
%pyproject_buildrequires -r
%pyproject_buildrequires
%build
@ -53,6 +69,16 @@ rm -fv azure_bdist_wheel.py
rm -rf %{buildroot}%{python3_sitelib}/azure/{__init__.py,__pycache__}
rm -rf %{buildroot}%{python3_sitelib}/azure/mgmt/{__init__.py,__pycache__}
%pyproject_save_files azure
%check
%pyproject_check_import
%if %{with tests}
%pytest
%endif
%files -n python3-%{srcname}
%doc README.rst HISTORY.rst
@ -61,17 +87,4 @@ rm -rf %{buildroot}%{python3_sitelib}/azure/mgmt/{__init__.py,__pycache__}
%changelog
* Wed Sep 08 2021 Major Hayden <major@mhtx.net> - 1:2.0.0-4
- Move obsoletes into subpackage
* Mon Jul 26 2021 Major Hayden <major@mhtx.net> - 1:2.0.0-3
- Remove conflicting namespace package files
* Fri Jul 23 2021 Major Hayden <major@mhtx.net> - 1:2.0.0-2
- Add epoch number for 2.0.0 downgrade
* Thu Jul 22 2021 Major Hayden <major@mhtx.net> - 2.0.0-1
- Downgrade to 2.0.0
* Tue Jun 01 2021 Major Hayden <major@mhtx.net> - 8.0.0-1
- First package.
%autochangelog

View file

@ -1 +1 @@
SHA512 (azure-mgmt-consumption-2.0.0.zip) = 57879641214bfb5faa347d23be6e8149cf676e487bc18b2d588abaa4f7d27b6b93d74d098e8ce45aa451de97a01c102b1a56dbd83c8fb21641d6cb9868bc5427
SHA512 (azure-mgmt-consumption-2.0.0.tgz) = dbf0350e76ca60e42fe5fa970b4ac691db7f44921e46f7d69962490db737c823e9044c657bb77082f6e35eb7f887ab03be418eadfa09de4fae851fab8ced4342