Bug#937855: python-jsonext: Python2 removal in sid/bullseye (now this is an RC bug...)

2019-10-25 Thread Ben Finney
Control: tags -1 + pending - patch

On 18-Oct-2019, Thomas Goirand wrote:

> Attached is a debdiff fixing this RC bug. There's other clean-up
> necessary for this package (like removing the X-Python{3,}-Version:)
> which I think should be done before the upload.

Thanks for the proposed changes.

(Something in your toolchain – or possibly you, manually? – are
removing valid U+000C white space characters from source files. I
would reject a diff with that error, not sure if it was deliberate
though.)

> Let me know if you're ok for me to NMU this package.

I've packaged a newer upstream release and am dealing with this bug in
with that. Thanks again.

-- 
 \  “One bad programmer can easily create two new jobs a year. |
  `\  Hiring more bad programmers will just increase our perceived |
_o__) need for them.” —David Lorge Parnas, 1999-03 |
Ben Finney 


signature.asc
Description: PGP signature


Processed: Re: Bug#937855: python-jsonext: Python2 removal in sid/bullseye (now this is an RC bug...)

2019-10-25 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 + pending - patch
Bug #937855 {Done: Sandro Tosi } [src:python-jsonext] 
python-jsonext: Python2 removal in sid/bullseye
Added tag(s) pending.
Bug #937855 {Done: Sandro Tosi } [src:python-jsonext] 
python-jsonext: Python2 removal in sid/bullseye
Removed tag(s) patch.

-- 
937855: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=937855
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#937855: python-jsonext: Python2 removal in sid/bullseye (now this is an RC bug...)

2019-10-18 Thread Thomas Goirand
Hi Ben,

Attached is a debdiff fixing this RC bug. There's other clean-up
necessary for this package (like removing the X-Python{3,}-Version:)
which I think should be done before the upload.

Let me know if you're ok for me to NMU this package.

Cheers,

Thomas Goirand (zigo)
diff -Nru python-jsonext-0.4.1/debian/changelog 
python-jsonext-0.4.1/debian/changelog
--- python-jsonext-0.4.1/debian/changelog   2017-08-26 13:11:04.0 
+0200
+++ python-jsonext-0.4.1/debian/changelog   2019-10-18 14:23:09.0 
+0200
@@ -1,3 +1,10 @@
+python-jsonext (0.4.1-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Removed Python 2 support (Closes: #937855).
+
+ -- Thomas Goirand   Fri, 18 Oct 2019 14:23:09 +0200
+
 python-jsonext (0.4.1-1) unstable; urgency=medium
 
   * The “علي محمد باقر النمر‎‎ (Ali Mohammed Baqir al-Nimr)” release.
diff -Nru python-jsonext-0.4.1/debian/control 
python-jsonext-0.4.1/debian/control
--- python-jsonext-0.4.1/debian/control 2017-08-26 13:11:04.0 +0200
+++ python-jsonext-0.4.1/debian/control 2019-10-18 14:23:07.0 +0200
@@ -9,11 +9,6 @@
 python3-six,
 python3-setuptools,
 python3-all,
-python-pytest-runner,
-python-arrow,
-python-six,
-python-setuptools,
-python-all (>= 2.7~),
 dh-python,
 debhelper (>= 10~)
 Homepage: https://pypi.org/project/jsonext/
@@ -32,14 +27,3 @@
  the standard Python built-in-types.
  .
  This package installs the library for Python 3.
-
-Package: python-jsonext
-Architecture: all
-Depends:
-${python:Depends},
-${misc:Depends}
-Description: serialisation to/from JSON for extra types — Python 2
- ‘jsonext’ makes easy JSON serialisation of Python objects outside of
- the standard Python built-in-types.
- .
- This package installs the library for Python 2.
diff -Nru python-jsonext-0.4.1/debian/rules python-jsonext-0.4.1/debian/rules
--- python-jsonext-0.4.1/debian/rules   2017-08-26 13:11:04.0 +0200
+++ python-jsonext-0.4.1/debian/rules   2019-10-18 14:23:09.0 +0200
@@ -14,11 +14,11 @@
 
 export PYBUILD_NAME = jsonext
 
-
+
 %:
-   dh $@ --with python3,python2 --buildsystem=pybuild
+   dh $@ --with python3 --buildsystem=pybuild
+
 
-
 .PHONY: get-packaged-orig-source
 get-packaged-orig-source:
$(uscan-download-source) --download-current-version
@@ -46,12 +46,12 @@
--check-dirname-level=0 ${package_dir}
 endef # uscan-download-source
 
-
+
 override_dh_auto_clean:
dh_auto_clean
$(RM) -r ${GENERATED_FILES}
 
-
+
 # Local variables:
 # mode: makefile
 # coding: utf-8
diff -Nru python-jsonext-0.4.1/debian/tests/control 
python-jsonext-0.4.1/debian/tests/control
--- python-jsonext-0.4.1/debian/tests/control   2017-08-26 13:11:04.0 
+0200
+++ python-jsonext-0.4.1/debian/tests/control   2019-10-18 14:23:09.0 
+0200
@@ -2,17 +2,12 @@
 # Control file for Debian ‘autopkgtests’.
 # Documentation: ‘/usr/share/doc/autopkgtest/README.package-tests.rst.gz’.
 
-Tests: smoke-python2
-Depends:
-python-pkg-resources,
-python-jsonext
-
 Tests: smoke-python3
 Depends:
 python3-pkg-resources,
 python3-jsonext
 
-
+
 # Local variables:
 # coding: utf-8
 # mode: conf
diff -Nru python-jsonext-0.4.1/debian/tests/smoke-python2 
python-jsonext-0.4.1/debian/tests/smoke-python2
--- python-jsonext-0.4.1/debian/tests/smoke-python2 2017-08-26 
13:11:04.0 +0200
+++ python-jsonext-0.4.1/debian/tests/smoke-python2 1970-01-01 
01:00:00.0 +0100
@@ -1,39 +0,0 @@
-#! /bin/bash
-#
-# debian/tests/smoke-python2
-# Part of Debian ‘python-jsonext’ package.
-#
-# Copyright © 2016–2017 Ben Finney 
-# This is free software; you may copy, modify and/or distribute this work
-# under the terms of the GNU General Public License, version 3 or later.
-# No warranty expressed or implied.
-#
-# Smoke test for package in Python 2 environments.
-
-set -o errexit
-set -o errtrace
-set -o nounset
-
-DISTRIBUTION_NAME=jsonext
-MODULE_NAMES=(
-jsonext
-)
-
-test_opts="--distribution=$DISTRIBUTION_NAME"
-for mod in ${MODULE_NAMES[@]} ; do
-# Accumulate the module names.
-test_opts="$test_opts --module=$mod"
-done
-
-for py in $(pyversions -i) ; do
-printf "Python command: %s\n" $py
-$py debian/tests/smoke_test.py $test_opts
-printf "\n"
-done
-
-
-# Local variables:
-# coding: utf-8
-# mode: shell-script
-# End:
-# vim: fileencoding=utf-8 filetype=sh :