public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/WALinuxAgent] f45: Get rid of passlib dependency
@ 2026-10-14 13:17 Vitaly Kuznetsov
  0 siblings, 0 replies; only message in thread
From: Vitaly Kuznetsov @ 2026-10-14 13:17 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/WALinuxAgent
            Branch : f45
            Commit : d76bb22a2fd1cc194a847ff5f0e7cf0f96cfd7ff
            Author : Vitaly Kuznetsov <vkuznets@redhat.com>
            Date   : 2026-10-14T15:17:08+02:00
            Stats  : +40/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/WALinuxAgent/c/d76bb22a2fd1cc194a847ff5f0e7cf0f96cfd7ff?branch=f45

            Log:
            Get rid of passlib dependency

The code works well with Fedora's crypt-r, no need to have passlib
and all its dependencies.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>

---
diff --git a/0001-Fedora-get-rid-of-passlib-dependency.patch b/0001-Fedora-get-rid-of-passlib-dependency.patch
new file mode 100644
index 0000000..2a8602e
--- /dev/null
+++ b/0001-Fedora-get-rid-of-passlib-dependency.patch
@@ -0,0 +1,39 @@
+From a62fe394a8823648874d396721973b52cf964ba8 Mon Sep 17 00:00:00 2001
+From: Vitaly Kuznetsov <vkuznets@redhat.com>
+Date: Tue, 13 Oct 2026 18:02:20 +0200
+Subject: [PATCH] Fedora: get rid of passlib dependency
+Content-Type: text/plain
+
+The code works well with the existing crypt-r and passlib
+brings in a number of potentially unwanted dependencies.
+
+Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
+---
+ requirements.txt | 1 -
+ setup.py         | 2 --
+ 2 files changed, 3 deletions(-)
+
+diff --git a/requirements.txt b/requirements.txt
+index d2c3b62beadc..ee3b024d8fdc 100644
+--- a/requirements.txt
++++ b/requirements.txt
+@@ -1,3 +1,2 @@
+ distro; python_version >= '3.8'
+ pyasn1
+-passlib; python_version >= '3.13'
+diff --git a/setup.py b/setup.py
+index 946d18a503f7..268d300b8b05 100755
+--- a/setup.py
++++ b/setup.py
+@@ -367,8 +367,6 @@ class install(_install):  # pylint: disable=C0103
+ requires = []
+ if sys.version_info[0] >= 3 and sys.version_info[1] >= 8:
+     requires.append('distro')
+-if sys.version_info[0] >= 3 and sys.version_info[1] >= 13:
+-    requires.append('passlib')
+ 
+ modules = []  # pylint: disable=invalid-name
+ 
+-- 
+2.55.0
+

diff --git a/WALinuxAgent.spec b/WALinuxAgent.spec
index 3a93daa..df9980f 100644
--- a/WALinuxAgent.spec
+++ b/WALinuxAgent.spec
@@ -11,6 +11,7 @@ Source0:        https://github.com/Azure/%{name}/archive/v%{version}.tar.gz
 Source1:        module-setup.sh
 
 Patch1:         0001-waagent.service-set-ConditionVirtualization-microsof.patch
+Patch2:         0001-Fedora-get-rid-of-passlib-dependency.patch
 
 BuildArch:      noarch
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-14 13:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 13:17 [rpms/WALinuxAgent] f45: Get rid of passlib dependency Vitaly Kuznetsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox