-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython3-redis-entraid.spec
More file actions
86 lines (76 loc) · 2.87 KB
/
python3-redis-entraid.spec
File metadata and controls
86 lines (76 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#
# Conditional build:
%bcond_with tests # unit tests (conftest missing in sdist)
Summary: Entra ID credentials provider implementation for Redis-py client
Summary(pl.UTF-8): Implementacja dostarczająca dane uwierzytelniające Entra ID dla klienta Redis-py
Name: python3-redis-entraid
Version: 1.1.0
Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/redis-entraid/
Source0: https://files.pythonhosted.org/packages/source/r/redis-entraid/redis_entraid-%{version}.tar.gz
# Source0-md5: 091fa57429ace609b5409eefaf82aa0f
URL: https://pypi.org/project/redis-entraid/
BuildRequires: python3-build
BuildRequires: python3-installer
BuildRequires: python3-modules >= 1:3.10
BuildRequires: python3-setuptools >= 1:61.0
%if %{with tests}
BuildRequires: python3-azure-identity >= 1.24.0
BuildRequires: python3-azure-identity < 1.25
BuildRequires: python3-msal >= 1.33.0
BuildRequires: python3-msal < 1.34
BuildRequires: python3-pyjwt >= 2.10.0
BuildRequires: python3-pyjwt < 2.11
BuildRequires: python3-pytest
BuildRequires: python3-pytest-asyncio
BuildRequires: python3-redis >= 5.3.0
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
Requires: python3-modules >= 1:3.10
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This Python package helps simplifying the authentication with Azure
Managed Redis: https://azure.microsoft.com/en-us/products/managed-redis
and Azure Cache for Redis using Microsoft Entra ID (formerly Azure
Active Directory). It enables seamless integration with Azure's Redis
services by fetching authentication tokens and managing the token
renewal in the background. This package builds on top of redis-py and
provides a structured way to authenticate by using a:
- System-assigned managed identity
- User-assigned managed identity
- Service principal
%description -l pl.UTF-8
Ten pakiet Pythona upraszcza uwierzytelnianie przy użyciu usługi Azure
Managed Redis: https://azure.microsoft.com/en-us/products/managed-redis
i Azure Cache for Redis z użyciem Microsoft Entra ID (dawniej Azure
Active Directory). Pozwala na gładką integrację z usługami Azure Redis
poprzez pobieranie tokenów uwierzytelniających i zarządzanie
odnawianiem tokenów w tle. Ten pakiet jest zbudowany w oparciu o
redis-py i zapewnia ustrukturyzowany sposób uwierzytelniania przy
użyciu:
- tożsamości nadawanej przez system
- tożsamości nadawanej przez użytkownika
- podmiotu usługi
%prep
%setup -q -n redis_entraid-%{version}
%build
%py3_build_pyproject
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTEST_PLUGINS=pytest_asyncio.plugin \
%{__python3} -m pytest tests
%endif
%install
rm -rf $RPM_BUILD_ROOT
%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc LICENSE README.md
%{py3_sitescriptdir}/redis_entraid
%{py3_sitescriptdir}/redis_entraid-%{version}.dist-info