[med-svn] [Git][med-team/ctdopts][master] 2 commits: 2to3 removal, release

Alexandre Detiste (@detiste-guest) gitlab at salsa.debian.org
Fri Jun 14 16:53:54 BST 2024



Alexandre Detiste pushed to branch master at Debian Med / ctdopts


Commits:
10889381 by Alexandre Detiste at 2024-06-14T17:51:48+02:00
2to3 removal, release

- - - - -
6b15f8ee by Alexandre Detiste at 2024-06-14T17:53:24+02:00
test-leaves-python-version-untested

- - - - -


4 changed files:

- debian/changelog
- debian/control
- debian/rules
- debian/tests/run-example


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+ctdopts (1.5-3) unstable; urgency=medium
+
+  * Team upload.
+  * Drop remaining need for deprecated 2to3
+  * Run autopkgtest on all Python versions
+
+ -- Alexandre Detiste <tchet at debian.org>  Fri, 14 Jun 2024 17:50:57 +0200
+
 ctdopts (1.5-2) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/control
=====================================
@@ -7,7 +7,6 @@ Build-Depends: debhelper-compat (= 13),
                dh-python,
                python3,
                python3-setuptools,
-               2to3,
                python3-tz
 Standards-Version: 4.6.1
 Vcs-Browser: https://salsa.debian.org/med-team/ctdopts


=====================================
debian/rules
=====================================
@@ -24,7 +24,7 @@ override_dh_auto_build:
 	dh_auto_build
 	# an override, not a PYBUILD directive, as we only need to do this once
 	# not for every Python version
-	2to3 --write --nobackups --no-diffs --output-dir=debian example.py
+	sed '#print$#print()#' example.py > debian/example.py
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))


=====================================
debian/tests/run-example
=====================================
@@ -1,5 +1,5 @@
 #!/bin/sh -ex
-for py in $(py3versions -r 2>/dev/null)
+for py in $(py3versions -s 2>/dev/null)
 	do echo "Testing with $py:"
 	${py} -c "import CTDopts; print(CTDopts)"
 	${py} /usr/share/doc/python3-ctdopts/examples/example.py



View it on GitLab: https://salsa.debian.org/med-team/ctdopts/-/compare/df14aaccf940e8a66745a6eecc2bf11c3c73589c...6b15f8eeb60dcd9410d761932035ae6af427f13a

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/med-team/ctdopts/-/compare/df14aaccf940e8a66745a6eecc2bf11c3c73589c...6b15f8eeb60dcd9410d761932035ae6af427f13a
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240614/bd21dd58/attachment-0001.htm>


More information about the debian-med-commit mailing list