[med-svn] [Git][med-team/python-biopython][master] Fix compatibility with ReportLab 3.5
Graham Inggs
gitlab at salsa.debian.org
Wed Dec 5 11:09:33 GMT 2018
Graham Inggs pushed to branch master at Debian Med / python-biopython
Commits:
a5a7c263 by Graham Inggs at 2018-12-05T11:09:22Z
Fix compatibility with ReportLab 3.5
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/reportlab3.5.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,8 +1,12 @@
python-biopython (1.72+dfsg-2) UNRELEASED; urgency=medium
+ [ Andreas Tille ]
* Remove unneeded comment about samtools - which is not found by biopython
anyway
+ [ Graham Inggs ]
+ * Fix compatibility with ReportLab 3.5 (Closes: #913064)
+
-- Andreas Tille <tille at debian.org> Sat, 28 Jul 2018 05:06:54 +0200
python-biopython (1.72+dfsg-1) unstable; urgency=medium
=====================================
debian/patches/reportlab3.5.patch
=====================================
@@ -0,0 +1,30 @@
+Description: Fix compatibility with ReportLab 3.5
+Bug: https://github.com/biopython/biopython/issues/1737
+Bug-Debian: https://bugs.debian.org/913064
+Origin: upstream, https://github.com/biopython/biopython/commit/c7b909e842139f82d87639f3080bc45ff9613cca
+Origin: upstream, https://github.com/biopython/biopython/commit/a5fe524925f42370349ceb50aa57aa1129d384d8
+Author: Peter Cock <p.j.a.cock at googlemail.com>
+Last-Update: 2018-08-13
+
+--- a/Tests/test_GenomeDiagram.py
++++ b/Tests/test_GenomeDiagram.py
+@@ -47,6 +47,8 @@
+ from Bio.Graphics.GenomeDiagram._Graph import GraphData
+ from Bio.Graphics.GenomeDiagram._Colors import ColorTranslator
+
++from reportlab import rl_config
++rl_config.invariant = True
+
+ def fill_and_border(base_color, alpha=0.5):
+ try:
+@@ -765,9 +767,7 @@
+ gdd.write(output_filename, 'PDF')
+
+ # Also check the write_to_string (bytes string) method matches,
+- # (Note the possible confusion over new lines on Windows)
+- assert open(output_filename, "rb").read().replace(b"\r\n", b"\n") \
+- == gdd.write_to_string('PDF').replace(b"\r\n", b"\n")
++ assert open(output_filename, "rb").read() == gdd.write_to_string('PDF')
+
+ output_filename = os.path.join('Graphics', 'GD_region_linear.svg')
+ gdd.write(output_filename, 'SVG')
=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
remove_mathml-qname.patch
privacy_breach.patch
+reportlab3.5.patch
View it on GitLab: https://salsa.debian.org/med-team/python-biopython/commit/a5a7c263a604ecb6004a9112954cba79749f7358
--
View it on GitLab: https://salsa.debian.org/med-team/python-biopython/commit/a5a7c263a604ecb6004a9112954cba79749f7358
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/20181205/70c894e3/attachment-0001.html>
More information about the debian-med-commit
mailing list