## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec Name: bandit Version: 1.7.1 Release: %autorelease Summary: A framework for performing security analysis of Python source code License: ASL 2.0 URL: https://github.com/PyCQA/bandit Source0: https://files.pythonhosted.org/packages/source/b/%{name}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # for checks, cherry-picked from test-requirements.txt (mixes coverage and linting) BuildRequires: python3dist(pytest) BuildRequires: python3dist(fixtures) BuildRequires: python3dist(testscenarios) BuildRequires: python3dist(testtools) BuildRequires: python3dist(toml) %description Bandit provides a framework for performing security analysis of Python source code, utilizing the ast module from the Python standard library. 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 %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files bandit %check # disable test_help_arg that fails with 3.10 # https://github.com/PyCQA/bandit/pull/752 %pytest tests -k "not test_help_arg" %files -f %{pyproject_files} %doc AUTHORS ChangeLog README.rst %doc doc %doc examples %license LICENSE %{_bindir}/bandit %{_bindir}/bandit-baseline %{_bindir}/bandit-config-generator %changelog * Thu Dec 16 2021 Miro Hrončok 1.7.1-3 - Fix BuildRequires for tests * Fri Nov 12 2021 Mikel Olasagasti Uranga 1.7.1-2 - Add missing deps * Wed Jul 21 2021 Fedora Release Engineering - 1.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.7.0-3 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 1.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Dec 13 2020 Fedora Release Monitoring - 1.7.0-1 - Update to 1.7.0 (#1907119) * Sun Dec 06 2020 Mikel Olasagasti Uranga - 1.6.3-1 - Version bump * Tue Oct 06 2020 Mikel Olasagasti Uranga - 1.6.2-1 - Version bump * Mon Jul 27 2020 Fedora Release Engineering - 1.4.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.4.0-13 - Rebuilt for Python 3.9 * Tue Jan 28 2020 Fedora Release Engineering - 1.4.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.4.0-11 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.4.0-10 - Rebuilt for Python 3.8 * Wed Jul 24 2019 Fedora Release Engineering - 1.4.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 1.4.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 1.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.4.0-6 - Rebuilt for Python 3.7 * Wed Feb 07 2018 Fedora Release Engineering - 1.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Nov 27 2017 Marek Cermak - 1.4.0-4 - new formatter (custom) * Mon Nov 27 2017 Marek Cermak - 1.4.0-3 - new formatter (yaml) * Mon Nov 27 2017 Marek Cermak - 1.4.0-2 - reformat setup.cfg * Tue Sep 19 2017 Marek Cermak - 1.4.0-1 - new version 1.4.0 * Wed Jul 26 2017 Fedora Release Engineering - 1.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.0.1-3 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 1.0.1-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Apr 21 2016 Michael Scherer - 1.0.1-1 - update to 1.0.1 - port to python3 - drop the /etc configuration directory, as upstream did remove config file * Wed Feb 03 2016 Fedora Release Engineering - 0.13.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Aug 20 2015 Michael Scherer 0.13.2-1 - new version 0.13.2 - add requires on python-stevedore, fix #1254589 * Sat Jul 11 2015 Michael Scherer 0.12.0-1 - new version 0.12.0 * Wed Jun 17 2015 Fedora Release Engineering - 0.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 10 2015 Michael Scherer 0.11.0-1 - new version 0.11.0 * Fri May 01 2015 Michael Scherer 0.10.1-1 - Initial package