Your message dated Sun, 11 Aug 2019 19:35:53 +0000
with message-id <[email protected]>
and subject line Bug#934271: fixed in python-tablib 0.13.0-1
has caused the Debian Bug report #934271,
regarding python-tablib: newer pyyaml changes default_flow_style
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
934271: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=934271
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-tablib
Version: 0.12.1-3
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu eoan ubuntu-patch
Dear Maintainer,
default_flow_style=None changed to default_flow_style=False by default
in pyyaml 5.1 [1].
I wrote the following pretty heavy-handed patch to address the situation
and maintain previous behavior, though you might want to change the tests
instead and follow the changes made upstream.
[1] https://github.com/yaml/pyyaml/issues/265
*** /tmp/tmpU9xam4/bug_body
In Ubuntu, the attached patch was applied to achieve the following:
* debian/patches/fix_pyyaml_default_flow_style.patch: Make sure all calls
to yaml.dump() include default_flow_style=None, to retain previous behavior
that is checked for in tests, unless it's already otherwise specified.
Thanks for considering the patch.
-- System Information:
Debian Release: buster/sid
APT prefers eoan
APT policy: (500, 'eoan')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.2.0-8-generic (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru
python-tablib-0.12.1/debian/patches/fix_pyyaml_default_flow_style.patch
python-tablib-0.12.1/debian/patches/fix_pyyaml_default_flow_style.patch
--- python-tablib-0.12.1/debian/patches/fix_pyyaml_default_flow_style.patch
1969-12-31 19:00:00.000000000 -0500
+++ python-tablib-0.12.1/debian/patches/fix_pyyaml_default_flow_style.patch
2019-08-08 18:06:41.000000000 -0400
@@ -0,0 +1,30 @@
+From: Mathieu Trudel-Lapierre <[email protected]>
+Subject: Force yaml.dump() calls to specify default_flow_style=None
+
+default_flow_style changed to False by default, which actually changes
+the output format. Make sure we retain the previous behavior expected
+by the tests.
+
+cf. https://github.com/yaml/pyyaml/issues/265
+
+Index: python-tablib-0.12.1/tablib/formats/_yaml.py
+===================================================================
+--- python-tablib-0.12.1.orig/tablib/formats/_yaml.py
++++ python-tablib-0.12.1/tablib/formats/_yaml.py
+@@ -13,12 +13,14 @@ extensions = ('yaml', 'yml')
+ def export_set(dataset):
+ """Returns YAML representation of Dataset."""
+
+- return yaml.safe_dump(dataset._package(ordered=False))
++ return yaml.safe_dump(dataset._package(ordered=False),
++ default_flow_style=None)
+
+
+ def export_book(databook):
+ """Returns YAML representation of Databook."""
+- return yaml.safe_dump(databook._package(ordered=False))
++ return yaml.safe_dump(databook._package(ordered=False),
++ default_flow_style=None)
+
+
+ def import_set(dset, in_stream):
diff -Nru python-tablib-0.12.1/debian/patches/series
python-tablib-0.12.1/debian/patches/series
--- python-tablib-0.12.1/debian/patches/series 1969-12-31 19:00:00.000000000
-0500
+++ python-tablib-0.12.1/debian/patches/series 2019-08-08 18:05:44.000000000
-0400
@@ -0,0 +1 @@
+fix_pyyaml_default_flow_style.patch
--- End Message ---
--- Begin Message ---
Source: python-tablib
Source-Version: 0.13.0-1
We believe that the bug you reported is fixed in the latest version of
python-tablib, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Joseph Herlant <[email protected]> (supplier of updated python-tablib
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 11 Aug 2019 12:05:19 -0700
Source: python-tablib
Architecture: source
Version: 0.13.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team
<[email protected]>
Changed-By: Joseph Herlant <[email protected]>
Closes: 934271
Changes:
python-tablib (0.13.0-1) unstable; urgency=medium
.
* New upstream version 0.13.0
* Integrating Ubuntu patch for fixing new default_flow_style (Closes:
#934271)
* d/control:
* Bump standards to 4.4.0.1
* Bump debhelper-compat to 12
* wrap-and-sort
* d/copyright: remove copyright for missing file
Checksums-Sha1:
99353e92345f5ada0c7bf8941ff7c9d53840475f 2328 python-tablib_0.13.0-1.dsc
9561c55eea22a29127decfdcf77e75f44c607096 86898 python-tablib_0.13.0.orig.tar.gz
a2694d0724c5aaf2b766f84c419192c241e0e12e 5488
python-tablib_0.13.0-1.debian.tar.xz
e373124b8e81e43b084aba34bbb2ff59a7dc8a21 6112
python-tablib_0.13.0-1_source.buildinfo
Checksums-Sha256:
f073cd8bfeddc5bd75700bd02424a7173062b50324787002972487ab179eac8b 2328
python-tablib_0.13.0-1.dsc
3b2425afd6c758254be37bf8027d65d4aff744405ea98ed3dd7fa38f7ab4e667 86898
python-tablib_0.13.0.orig.tar.gz
c4a64cb0938a4947139f736e43b72de08c2f9aaed269dc933470cac792788226 5488
python-tablib_0.13.0-1.debian.tar.xz
f45deaf4382a2f67094e0f4b5e6228ac8e0e10615f0001b1a4b43beadeeee247 6112
python-tablib_0.13.0-1_source.buildinfo
Files:
bd5f41fe67f1e3f1853a3c8f58818c64 2328 python optional
python-tablib_0.13.0-1.dsc
5fbed00354a77cfd296ca6e2b44addb8 86898 python optional
python-tablib_0.13.0.orig.tar.gz
593cfa71f3113e23844d9c8b66d2c079 5488 python optional
python-tablib_0.13.0-1.debian.tar.xz
95b89d5e7dcb2feeb1af670b4c5ed605 6112 python optional
python-tablib_0.13.0-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJKBAEBCAA0FiEE6CPaER4i14V+HYZYY/eACiPXslIFAl1QZ+AWHGFlcm9zdGl0
Y2hAZGViaWFuLm9yZwAKCRBj94AKI9eyUmz3D/9Aem9mB6OaqwMr0AZrdDazoCwR
W7LMdv7sh8SUFUopz4gh0rU6yW/LE+Mq6RpQU9/cmdi7XhnWXhWynoKd0u1dnkPo
AGtXs3/BVk8Ic31FRT5wIEIsN3/cQLJz3pchw3QKIUNwCaeqFJlo6yc80vBN+62z
Uc+rjQWRlhquLCjYjFq1OCWGf0V7v9P+96zLbvoXM5pGVF+F4auzM1nOZINij/3b
+R4+NJsaYk8xQV2z8tmh9h3n3O6QiHyPWgNnkL4JUBQDXLkCW/2feMO9+OeA+tfv
Fltw17NERYlIrghZYSPEDfEQmpl1Cjej4UvMx5a78fje3xMtE9HRUDfCzrYYoKVc
s77KQXU2Z4FAh89xP9qzXLsAXEf/pgH5DgQkWuEP4ezR5s5RtPlEzRmufe6AT/g9
kRxvu5fhZympJqwOQFsGDbYKXL6637sdJEN4XFhpuDFJPS2PZZGW4ZcZCV596EvU
6+mpmrOMJlIIdoLw4w31/edETk3O8LRFm4BuROZMMazE4C0MLq/IbHwZYgxE6WUV
16PgKP+Pd1lnA7UNIqjGdCm2aplP/neZYhULyrloJGWcY1A3ZS2fBHhNoVmFM8ua
WkLs9wQvPgtWcJGfChvQncHHJhGS5egKJM28SX2fTxNCSK3J1/m95JrUzktbrdNu
zRoYrzbyHKQ/JFp1OA==
=Hdpd
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team