Bug#937552: pysvn: Python2 removal in sid/bullseye

2019-12-28 Thread peter green

tags 937552 +pending
thanks

svn-workbench has now been kicked out of testing, so I have decided to go ahead 
with NMUing pysvn. During prep for the NMU I noticed the clean target was 
broken, so I fixed that too.

debdiff is attatched, NMU is in delayed/5


diff -Nru pysvn-1.9.9/debian/changelog pysvn-1.9.9/debian/changelog
--- pysvn-1.9.9/debian/changelog2019-10-31 01:10:08.0 +
+++ pysvn-1.9.9/debian/changelog2019-12-28 11:03:00.0 +
@@ -1,3 +1,12 @@
+pysvn (1.9.9-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Fix clean target
+  [Gianfranco Costamagna]
+  * Drop python2 package (Closes: #937552)
+
+ -- Peter Michael Green   Sat, 28 Dec 2019 11:03:00 +
+
 pysvn (1.9.9-2) unstable; urgency=medium
 
   [ Ondřej Nový ]
diff -Nru pysvn-1.9.9/debian/control pysvn-1.9.9/debian/control
--- pysvn-1.9.9/debian/control  2019-10-31 01:10:08.0 +
+++ pysvn-1.9.9/debian/control  2019-12-28 11:02:36.0 +
@@ -10,10 +10,6 @@
  libaprutil1-dev,
  libneon27-gnutls-dev,
  libsvn-dev (>= 1.8.10),
- python-all-dbg,
- python-all-dev (>= 2.7.8),
- python-cxx-dev (>= 7.0.1),
- python-setuptools,
  python3-all (>= 3.4.2),
  python3-all-dev (>= 3.4.2),
  python3-setuptools (>= 5.5.1),
@@ -26,15 +22,6 @@
 Vcs-Git: https://salsa.debian.org/python-team/modules/pysvn.git
 Vcs-Browser: https://salsa.debian.org/python-team/modules/pysvn
 
-Package: python-svn
-Architecture: any
-Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
-Provides: python-pysvn
-Description: A(nother) Python interface to Subversion
- The pysvn module is a Python interface to the Subversion version
- control system.  This API exposes client interfaces for managing a
- working copy, querying a repository, and synchronizing the two.
-
 Package: python3-svn
 Architecture: any
 Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
diff -Nru pysvn-1.9.9/debian/python-svn.dirs pysvn-1.9.9/debian/python-svn.dirs
--- pysvn-1.9.9/debian/python-svn.dirs  2019-10-31 01:10:08.0 +
+++ pysvn-1.9.9/debian/python-svn.dirs  1970-01-01 00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/python2.7/dist-packages/pysvn
diff -Nru pysvn-1.9.9/debian/python-svn.doc-base 
pysvn-1.9.9/debian/python-svn.doc-base
--- pysvn-1.9.9/debian/python-svn.doc-base  2019-10-31 01:10:08.0 
+
+++ pysvn-1.9.9/debian/python-svn.doc-base  1970-01-01 00:00:00.0 
+
@@ -1,12 +0,0 @@
-Document: pysvn
-Title: pysvn - Python interface to Subversion
-Author: Barry A. Scott
-Abstract: This document contains the pysvn Programmer's Guide (covering the
- use of pysvn in a tutorial style with lots of examples) and the pysvn
- Programmer's Reference (detailed descriptions of all the classes, functions
- and variables of pysvn).
-Section: Programming/Python
-
-Format: HTML
-Index: /usr/share/doc/python-svn/pysvn.html
-Files: /usr/share/doc/python-svn/*.html
diff -Nru pysvn-1.9.9/debian/python-svn.docs pysvn-1.9.9/debian/python-svn.docs
--- pysvn-1.9.9/debian/python-svn.docs  2019-10-31 01:10:08.0 +
+++ pysvn-1.9.9/debian/python-svn.docs  1970-01-01 00:00:00.0 +
@@ -1,2 +0,0 @@
-Docs/*.html
-Docs/*.js
diff -Nru pysvn-1.9.9/debian/python-svn.examples 
pysvn-1.9.9/debian/python-svn.examples
--- pysvn-1.9.9/debian/python-svn.examples  2019-10-31 01:10:08.0 
+
+++ pysvn-1.9.9/debian/python-svn.examples  1970-01-01 00:00:00.0 
+
@@ -1 +0,0 @@
-Examples/*
diff -Nru pysvn-1.9.9/debian/python-svn.install 
pysvn-1.9.9/debian/python-svn.install
--- pysvn-1.9.9/debian/python-svn.install   2019-10-31 01:10:08.0 
+
+++ pysvn-1.9.9/debian/python-svn.install   1970-01-01 00:00:00.0 
+
@@ -1,2 +0,0 @@
-Source/pysvn/python2/__init__.py   usr/lib/python2.7/dist-packages/pysvn/
-Source/pysvn/python2/_pysvn_2_7.so usr/lib/python2.7/dist-packages/pysvn/
diff -Nru pysvn-1.9.9/debian/rules pysvn-1.9.9/debian/rules
--- pysvn-1.9.9/debian/rules2019-10-31 01:10:08.0 +
+++ pysvn-1.9.9/debian/rules2019-12-28 11:03:00.0 +
@@ -8,27 +8,13 @@
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
-PYVERS := $(shell pyversions -vr debian/control)
 PY3VERS := $(shell py3versions -vr debian/control)
 APR_INC= $(strip $(shell apr-config --includes | sed 's/-I//'))
 
-
-CONFIG_OPTS = --pycxx-src-dir=/usr/share/python${PYVERS}/CXX \
- --pycxx-dir=/usr/include/python${PYVERS} \
- --svn-lib-dir=/usr/lib/$(DEB_HOST_MULTIARCH) \
-  --apr-inc-dir=$(APR_INC) \
-  --apu-inc-dir=$(APR_INC) \
- --apr-lib-dir=/usr/lib/$(DEB_HOST_MULTIARCH) \
-  --norpath \
-  --platform=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
-
-
 %:
-   dh $@ --with=python2,python3 --buildsystem=pybuild
+   dh $@ --with=python3 --buildsystem=pybuild
 
 override_dh_auto_configure:
-   cd $(CURDIR)/Source

Bug#937552: pysvn: Python2 removal in sid/bullseye

2019-11-02 Thread Peter Green

Severity 937552 serious
Thanks

pysvn build-depends on the python-cxx-dev binary package, which is no longer 
built by the the python-cxx-dev source package.