Notification time stamped 2022-10-22 21:46:25 UTC
From accb21ab5a2dd85667b0ae675c4058d620745b02 Mon Sep 17 00:00:00 2001
From: Mikel Olasagasti Uranga <mikel(a)olasagasti.info>
Date: Oct 22 2022 21:35:11 +0000
Subject: Add explicit dep on pbr - Closes rhbz#2136143
---
diff --git a/bandit.spec b/bandit.spec
index 14ca928..341aa83 100644
--- a/bandit.spec
+++ b/bandit.spec
@@ -26,11 +26,17 @@ The ast module is used to convert source code into a parsed tree of Python
syntax nodes. Bandit allows users to define custom tests that are performed
against those nodes. At the completion of testing, a report is generated
that lists security issues identified within the target source code.
+
%prep
%autosetup
+
# remove test that requires bs4
rm tests/unit/formatters/test_html.py
+# Add missing requirement on pbr
+# https://github.com/PyCQA/bandit/pull/959
+echo "pbr" >> requirements.txt
+
%generate_buildrequires
%pyproject_buildrequires -r
https://src.fedoraproject.org/rpms/bandit/c/accb21ab5a2dd85667b0ae675c4058d…
Notification time stamped 2022-10-22 21:35:42 UTC
From accb21ab5a2dd85667b0ae675c4058d620745b02 Mon Sep 17 00:00:00 2001
From: Mikel Olasagasti Uranga <mikel(a)olasagasti.info>
Date: Oct 22 2022 21:35:11 +0000
Subject: Add explicit dep on pbr - Closes rhbz#2136143
---
diff --git a/bandit.spec b/bandit.spec
index 14ca928..341aa83 100644
--- a/bandit.spec
+++ b/bandit.spec
@@ -26,11 +26,17 @@ The ast module is used to convert source code into a parsed tree of Python
syntax nodes. Bandit allows users to define custom tests that are performed
against those nodes. At the completion of testing, a report is generated
that lists security issues identified within the target source code.
+
%prep
%autosetup
+
# remove test that requires bs4
rm tests/unit/formatters/test_html.py
+# Add missing requirement on pbr
+# https://github.com/PyCQA/bandit/pull/959
+echo "pbr" >> requirements.txt
+
%generate_buildrequires
%pyproject_buildrequires -r
https://src.fedoraproject.org/rpms/bandit/c/accb21ab5a2dd85667b0ae675c4058d…