Skip to content
Snippets Groups Projects
Commit 0084eb3c authored by Sandro Tosi's avatar Sandro Tosi
Browse files

Drop python2 support; Closes: #937408

parent b0f9ecf2
No related branches found
No related tags found
No related merge requests found
pycodestyle (2.5.0-3) UNRELEASED; urgency=medium
* Drop python2 support; Closes: #937408
-- Sandro Tosi <morph@debian.org> Mon, 16 Mar 2020 00:55:11 -0400
pycodestyle (2.5.0-2) unstable; urgency=medium
* Bump Standards-Version to 4.4.1.
......
......@@ -5,8 +5,6 @@ Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.
Uploaders: Ondřej Nový <onovy@debian.org>
Build-Depends: debhelper-compat (= 12),
dh-python,
python-all,
python-setuptools,
python3-all,
python3-setuptools,
Standards-Version: 4.4.1
......@@ -26,19 +24,6 @@ Description: Python style guide checker (formerly called pep8)
Parseable output listing line numbers of the error location. Consists of
just one Python file, and requires only stdlib.
Package: python-pycodestyle
Architecture: all
Depends: ${misc:Depends},
${python:Depends},
Breaks: python-flake8 (<< 3.5.0-2~)
Replaces: pycodestyle (<< 1.6.2-0.1),
Description: Python style guide checker (formerly called pep8) - Python 2.x
Features a plugin architecture allowing for adding new checks is easily.
Parseable output listing line numbers of the error location. Consists of
just one Python file, and requires only stdlib.
.
This package contains the Python 2.x module.
Package: python3-pycodestyle
Architecture: all
Depends: ${misc:Depends},
......
......@@ -3,11 +3,10 @@
export PYBUILD_NAME = pycodestyle
%:
dh $@ --with python2,python3 --buildsystem=pybuild
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_install:
dh_auto_install
rm -rf debian/python-pycodestyle/usr/bin
mkdir -p debian/pycodestyle/usr/bin
mv debian/python3-pycodestyle/usr/bin/* debian/pycodestyle/usr/bin
Test-Command: cd "$AUTOPKGTEST_TMP" ; python2 -c "import pycodestyle; print pycodestyle.__version__"
Test-Command: cd "$AUTOPKGTEST_TMP" ; python3 -c "import pycodestyle; print(pycodestyle.__version__)"
Tests: python2
Depends: python-pycodestyle
Tests: python3
Depends: python3-pycodestyle
......
#!/bin/sh
set -e
cd "$AUTOPKGTEST_TMP"
cat > E40.py <<EOF
import os, sys
EOF
python2 -m pycodestyle E40.py | grep E401
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment