From b333a8d955f4bb8321ebff8c1f07abca007ab532 Mon Sep 17 00:00:00 2001
From: Andrey Rahmatullin <wrar@debian.org>
Date: Thu, 5 Sep 2019 11:07:41 +0500
Subject: [PATCH] Drop Python 2 support.

---
 debian/changelog | 10 ++++++++--
 debian/control   | 18 ------------------
 debian/rules     |  2 +-
 3 files changed, 9 insertions(+), 21 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 53f3412..59dec51 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,16 @@
-python-pymysql (0.9.3-2) UNRELEASED; urgency=medium
+python-pymysql (0.9.3-2) unstable; urgency=medium
 
+  * Team upload.
+
+  [ Ondřej Nový ]
   * d/copyright: Bump my copyright year.
   * Use debhelper-compat instead of debian/compat.
   * Bump Standards-Version to 4.4.0.
 
- -- Ondřej Nový <onovy@debian.org>  Sat, 20 Jul 2019 00:02:37 +0200
+  [ Andrey Rahmatullin ]
+  * Drop Python 2 support.
+
+ -- Andrey Rahmatullin <wrar@debian.org>  Thu, 05 Sep 2019 11:07:35 +0500
 
 python-pymysql (0.9.3-1) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index 85cd76a..174ae57 100644
--- a/debian/control
+++ b/debian/control
@@ -6,17 +6,12 @@ Uploaders: Thomas Goirand <zigo@debian.org>,
            Ondřej Nový <onovy@debian.org>,
 Build-Depends: debhelper-compat (= 11),
                dh-python,
-               python-all,
-               python-cryptography,
-               python-pytest,
-               python-setuptools,
                python3-all,
                python3-cryptography,
                python3-pytest,
                python3-setuptools,
                python3-sphinx,
 Build-Depends-Indep: default-mysql-server,
-                     python-unittest2,
                      python3-unittest2,
 Standards-Version: 4.4.0
 Vcs-Browser: https://salsa.debian.org/python-team/modules/python-pymysql
@@ -24,19 +19,6 @@ Vcs-Git: https://salsa.debian.org/python-team/modules/python-pymysql.git
 Homepage: https://github.com/PyMySQL/PyMySQL/
 Testsuite: autopkgtest-pkg-python
 
-Package: python-pymysql
-Architecture: all
-Depends: ${misc:Depends},
-         ${python:Depends},
-Recommends: python-cryptography,
-Suggests: python-pymysql-doc,
-Description: Pure-Python MySQL driver - Python 2.x
- This package contains a pure-Python MySQL client library. The goal of PyMySQL
- is to be a drop-in replacement for MySQLdb and work on CPython, PyPy,
- IronPython and Jython.
- .
- This package contains the Python 2.x module.
-
 Package: python3-pymysql
 Architecture: all
 Depends: ${misc:Depends},
diff --git a/debian/rules b/debian/rules
index 25b2b44..bde1763 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
 export PYBUILD_NAME=pymysql
 
 %:
-	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_sphinxdoc:
 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
-- 
GitLab