Package: bandit Version: 0.12.0-2 Severity: normal Tags: patch User: [email protected] Usertags: origin-ubuntu wily ubuntu-patch
Dear Maintainer, In Ubuntu, the attached patch was applied to achieve the following: * Update dependencies to align with upstream * Run tests with output and fail the build if test failure Thanks for considering the patch. -- System Information: Debian Release: jessie/sid APT prefers vivid-updates APT policy: (500, 'vivid-updates'), (500, 'vivid-security'), (500, 'vivid'), (100, 'vivid-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.19.0-25-generic (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
=== removed file '.pc/applied-patches' === modified file 'debian/changelog' === modified file 'debian/control' --- debian/control 2015-07-22 09:01:39 +0000 +++ debian/control 2015-08-21 17:17:06 +0000 @@ -1,17 +1,26 @@ Source: bandit Maintainer: PKG OpenStack <[email protected]> Uploaders: Dave Walker (Daviey) <[email protected]> Section: python Priority: extra -Build-Depends: debhelper (>= 7.4.3), +Build-Depends: debhelper (>= 9), dh-python, openstack-pkg-tools, - python-all (>= 2.6.6-3), + python-all, python-pbr, - python-setuptools (>= 0.6b3), - python-stevedore, - python-yaml, - testrepository + python-setuptools, +Build-Depends-Indep: python-coverage, + python-fixtures, + python-hacking (>= 0.9.2), + python-mock, + python-six (>= 1.9.0), + python-stevedore, + python-testscenarios, + python-testtools (>= 0.9.36), + python-yaml, + subunit, + testrepository, Standards-Version: 3.9.6 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/bandit.git Vcs-Git: git://anonscm.debian.org/openstack/bandit.git @@ -19,7 +28,11 @@ Package: bandit Architecture: all -Depends: ${misc:Depends}, ${python:Depends} +Depends: python-six (>= 1.9.0), + python-stevedore, + python-yaml, + ${misc:Depends}, + ${python:Depends}, Description: Security oriented static analyzer for python code Bandit is a tool designed to find common security issues in Python code. To do this Bandit processes each file, builds an Abstract Syntaxt Tree (AST), === modified file 'debian/rules' --- debian/rules 2015-07-22 09:01:39 +0000 +++ debian/rules 2015-08-21 15:34:29 +0000 @@ -8,9 +8,20 @@ %: dh $@ --with python2 --buildsystem=pybuild +override_dh_auto_test: ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) -override_dh_auto_test: - PYTHONPATH=$(CURDIR) python setup.py testr --testr-args='--subunit ' + @echo "===> Running tests" + set -e ; set -x ; for i in 2.7 $(PYTHON3S) ; do \ + PYMAJOR=`echo $$i | cut -d'.' -f1` ; \ + echo "===> Testing with python$$i (python$$PYMAJOR)" ; \ + rm -rf .testrepository ; \ + testr-python$$PYMAJOR init ; \ + TEMP_REZ=`mktemp -t` ; \ + PYTHONPATH=$(CURDIR) PYTHON=python$$i testr-python$$PYMAJOR run --subunit | tee $$TEMP_REZ | subunit2pyunit ; \ + cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \ + rm -f $$TEMP_REZ ; \ + testr-python$$PYMAJOR slowest ; \ + done endif override_dh_install:

