[28904] in Source-Commits
python-discuss commit [debian]: Update Debian packaging for Python 3
daemon@ATHENA.MIT.EDU (Alex Dehnert)
Sat Mar 8 14:25:58 2025
Date: Sat, 8 Mar 2025 14:18:05 -0500
From: "Alex Dehnert" <adehnert@mit.edu>
Message-Id: <202503081918.528JI5Mv020689@drugstore.mit.edu>
To: source-commits@mit.edu
MIME-Version: 1.0
Content-Type: text/plain
https://github.com/mit-athena/python-discuss/commit/f1c2728d6b08e4ba15bcc1ee5b3eefd84e7adbfa
commit f1c2728d6b08e4ba15bcc1ee5b3eefd84e7adbfa
Author: Alex Dehnert <adehnert@mit.edu>
Date: Fri Feb 21 02:54:14 2025 -0500
Update Debian packaging for Python 3
debian/changelog | 10 ++++++++++
debian/compat | 2 +-
debian/control | 9 ++++-----
debian/python3-discuss.install | 2 ++
debian/rules | 4 +++-
5 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 8f307b5..442d417 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+python-discuss (1.3-0debathena1) unstable; urgency=low
+
+ * Release version 1.3.
+ * Add Python 3 support
+ * Update Debian packaging for Python 3 support
+ * Drop Python 2 support
+ * Add additional functionality for pergamon
+
+ -- Alex Dehnert <adehnert@mit.edu> Fri, 21 Feb 2025 02:21:24 -0400
+
python-discuss (1.2-0debathena3) unstable; urgency=low
* Avoid building for Python 2.6 on distributions which support it
diff --git a/debian/compat b/debian/compat
index 7f8f011..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+10
diff --git a/debian/control b/debian/control
index 7002fee..3ba994c 100644
--- a/debian/control
+++ b/debian/control
@@ -1,14 +1,13 @@
Source: python-discuss
Section: python
-Priority: extra
+Priority: optional
Maintainer: Debathena Project <debathena@mit.edu>
-Build-Depends: debhelper (>= 7), python (>= 2.7)
-X-Python-Version: 2.7
+Build-Depends: debhelper (>= 10), dh-python, python3-all
Standards-Version: 3.9.4
-Package: python-discuss
+Package: python3-discuss
Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python (>= 2.7), python-kerberos
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, python3-kerberos
Description: Python client for Project Athena forum system
Pydiscuss provides a pure-Python implementation of discuss -- the forum
protocol developed in late 80's and still used around MIT.
diff --git a/debian/python3-discuss.install b/debian/python3-discuss.install
new file mode 100644
index 0000000..9b58b6f
--- /dev/null
+++ b/debian/python3-discuss.install
@@ -0,0 +1,2 @@
+etc/servers etc/discuss
+etc/meetings.default etc/discuss
diff --git a/debian/rules b/debian/rules
index 2ebce13..4429223 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,5 +9,7 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+export PYBUILD_NAME=discuss
+
%:
- dh $@ --with python2
+ dh $@ --with python3 --buildsystem=pybuild