Compare commits
22 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24724605d2 | ||
|
|
254fdf52d5 | ||
|
|
780f974b58 | ||
|
|
f3a2b850e3 | ||
|
|
8ac20b6b5d | ||
|
|
ef943f3b87 | ||
|
|
687c734b96 | ||
|
|
764091b027 | ||
|
|
ce4d66f9b3 | ||
|
|
49c00801a2 | ||
|
|
5929cbf3c5 | ||
|
|
487745e29f |
||
|
|
06c521eeff | ||
|
|
444a9f2d0b | ||
|
|
3b4dc0ab6b | ||
|
|
862c7fb5a0 |
||
|
|
bd0db35233 |
||
|
|
27ddfe8c03 | ||
|
|
fc863e1a9b | ||
|
|
5cd54e3549 |
||
|
|
9ca0b26cee |
||
|
|
ed96c9ff63 |
4 changed files with 40 additions and 14 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -2,3 +2,8 @@
|
|||
/azure-identity-1.5.0.zip
|
||||
/azure-identity-1.6.1.zip
|
||||
/azure-identity-1.9.0.zip
|
||||
/azure-identity-1.10.0.zip
|
||||
/azure-identity-1.10.0.tgz
|
||||
/azure-identity-1.14.0.zip
|
||||
/azure-identity-1.15.0.tar.gz
|
||||
/azure-identity-1.17.1.tar.gz
|
||||
|
|
|
|||
21
generate-source.sh
Executable file
21
generate-source.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
export VERSION=1.10.0
|
||||
export PACKAGE_NAME=azure-identity
|
||||
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
|
||||
|
|
@ -1,16 +1,15 @@
|
|||
# The majority of the tests included require some type of network access, so they are
|
||||
# disabled for now until upstream can improve them.
|
||||
# Upstream's tests now require docker to be running.
|
||||
%bcond_with tests
|
||||
|
||||
%global srcname azure-identity
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 1.9.0
|
||||
Version: 1.17.1
|
||||
Release: %autorelease
|
||||
Summary: Microsoft Azure Identity Library for Python
|
||||
License: MIT
|
||||
URL: https://pypi.org/project/%{srcname}/
|
||||
Source0: %{pypi_source %{srcname} %{version} zip}
|
||||
Source0: %{pypi_source %{srcname} %{version}}
|
||||
|
||||
Epoch: 1
|
||||
|
||||
|
|
@ -20,10 +19,10 @@ 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(aiohttp)
|
||||
BuildRequires: python3dist(pytest-asyncio)
|
||||
|
|
@ -38,20 +37,16 @@ Microsoft Azure Identity 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}
|
||||
|
||||
# azure-identity requires msal-extensions~=0.3.0, but azure-cli needs 1.0.0.
|
||||
# This conflict will be fixed in the next azure-identity release after 1.9.0.
|
||||
sed -i 's/msal-extensions~=0.3.0/msal-extensions~=1.0.0/' setup.py
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -r
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
|
|
@ -63,9 +58,14 @@ sed -i 's/msal-extensions~=0.3.0/msal-extensions~=1.0.0/' setup.py
|
|||
%pyproject_save_files azure
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%pytest
|
||||
%pyproject_check_import
|
||||
|
||||
%if %{with tests}
|
||||
# test_persistent_cache_linux fails with Python 3.12
|
||||
# we skip it as it's likely problem between mocked objects
|
||||
# reported upstream: https://github.com/Azure/azure-sdk-for-python/issues/30994
|
||||
%pytest -k "not test_timeout and not test_persistent_cache_linux"
|
||||
%endif
|
||||
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (azure-identity-1.9.0.zip) = 43677d43fc2c3d4311efc7246d627e8ddb45120bae87e0906ac26e3de83eb56e6e4cb2d6661db5503db590c80c0a146a9159f1263a85d0286ec6393112318ddf
|
||||
SHA512 (azure-identity-1.17.1.tar.gz) = fd922f49b69dcbdef52452effc406a1ac43234ccfc0123614570ed7040e71e97d0e94eda29caec27832c5dbc95528f244de214b2d55f65c16b65abaa7a81e36b
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue