public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Vitaly Kuznetsov <vkuznets@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/WALinuxAgent] f45: Get rid of passlib dependency
Date: Wed, 14 Oct 2026 13:17:33 GMT	[thread overview]
Message-ID: <179198385335.1.14898051525443574839.rpms-WALinuxAgent-d76bb22a2fd1@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-10-14 13:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179198385335.1.14898051525443574839.rpms-WALinuxAgent-d76bb22a2fd1@fedoraproject.org \
    --to=vkuznets@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox