[med-svn] [Git][med-team/python-pauvre][master] 4 commits: syntaxwarning.patch: new: fix SyntaxWarning occurrences.

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Thu Nov 7 22:39:12 GMT 2024



Étienne Mollier pushed to branch master at Debian Med / python-pauvre


Commits:
7cc97557 by Étienne Mollier at 2024-11-07T23:37:03+01:00
syntaxwarning.patch: new: fix SyntaxWarning occurrences.

Closes: #1086899

- - - - -
b02795d5 by Étienne Mollier at 2024-11-07T23:37:39+01:00
2to3.patch: normalize Last-Update timestamp.

- - - - -
cb773a71 by Étienne Mollier at 2024-11-07T23:38:10+01:00
d/control: declare compliance to standards version 4.7.0.

- - - - -
67ec8ad8 by Étienne Mollier at 2024-11-07T23:38:48+01:00
d/changelog: ready for upload to unstable.

- - - - -


5 changed files:

- debian/changelog
- debian/control
- debian/patches/2to3.patch
- debian/patches/series
- + debian/patches/syntaxwarning.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+python-pauvre (0.2.3-4) unstable; urgency=medium
+
+  * syntaxwarning.patch: new: fix SyntaxWarning occurrences. (Closes: #1086899)
+  * 2to3.patch: normalize Last-Update timestamp.
+  * d/control: declare compliance to standards version 4.7.0.
+
+ -- Étienne Mollier <emollier at debian.org>  Thu, 07 Nov 2024 23:38:31 +0100
+
 python-pauvre (0.2.3-3) unstable; urgency=medium
 
   * pandas-2.0.patch: new: fix ftbfs with pandas 2.0. (Closes: #1044070)


=====================================
debian/control
=====================================
@@ -16,7 +16,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-sklearn <!nocheck>,
                python3-tk <!nocheck>,
                python3-progressbar <!nocheck>
-Standards-Version: 4.6.2
+Standards-Version: 4.7.0
 Vcs-Browser: https://salsa.debian.org/med-team/python-pauvre
 Vcs-Git: https://salsa.debian.org/med-team/python-pauvre.git
 Homepage: https://github.com/conchoecia/pauvre


=====================================
debian/patches/2to3.patch
=====================================
@@ -1,5 +1,5 @@
 Author: Andreas Tille <tille at debian.org>
-Last-Update: Fri, 24 Apr 2020 12:49:17 +0200
+Last-Update: 2020-04-24
 Description: Test script somehow remained at Python2 -> fix this using 2to3
 
 --- a/pauvre/lsi/test.py


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@
 lsi-test-args.patch
 biopython-1.80.patch
 pandas-2.0.patch
+syntaxwarning.patch


=====================================
debian/patches/syntaxwarning.patch
=====================================
@@ -0,0 +1,50 @@
+Description: fix SyntaxWarning.
+ This patch converts a couple of strings to raw strings in order to fix:
+ .
+    /usr/lib/python3/dist-packages/pauvre/gfftools.py:178:
+  SyntaxWarning: invalid escape sequence '\ '
+      """ plots a lff patch
+    /usr/lib/python3/dist-packages/pauvre/gfftools.py:259:
+  SyntaxWarning: invalid escape sequence '\ '
+      """ plots a rff patch
+    /usr/lib/python3/dist-packages/pauvre/synplot.py:531: SyntaxWarning:
+  invalid escape sequence '\i'
+      seq_name = "$\it{{{0}}}$".format(gff.species)
+
+Author: Étienne Mollier <emollier at debian.org>
+Bug-Debian: https://bugs.debian.org/1086899
+Forwarded: https://github.com/conchoecia/pauvre/pull/49
+Last-Update: 2024-11-07
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- python-pauvre.orig/pauvre/gfftools.py
++++ python-pauvre/pauvre/gfftools.py
+@@ -175,7 +175,7 @@
+     return panel
+ 
+ def _plot_lff(panel, left_df, right_df, colorMap, y_pos, bar_thickness, text):
+-    """ plots a lff patch
++    r""" plots a lff patch
+       1__________2      ____________
+       | #lff      \     \ #rff      \
+       | left for   \3     \ right for \
+@@ -256,7 +256,7 @@
+     return panel
+ 
+ def _plot_rff(panel, left_df, right_df, colorMap, y_pos, bar_thickness, text):
+-    """ plots a rff patch
++    r""" plots a rff patch
+       ____________      1__________2
+       | #lff      \     \ #rff      \
+       | left for   \    6\ right for \3
+--- python-pauvre.orig/pauvre/synplot.py
++++ python-pauvre/pauvre/synplot.py
+@@ -528,7 +528,7 @@
+         #print("{} patches came out of gffplot_horizontal()".format(len(patches)))
+         seq_name = gff.features['sequence'].unique()[0]
+         if args.gff_labels:
+-            seq_name = "$\it{{{0}}}$".format(gff.species)
++            seq_name = r"$\it{{{0}}}$".format(gff.species)
+         panel0.text(0 + x_offset, len(optGFFs) - i - 1 + (0.18/2),
+                     seq_name, fontsize = 12,
+                     ha='left', va='bottom',



View it on GitLab: https://salsa.debian.org/med-team/python-pauvre/-/compare/988b0a75cda29054a0d33d75a96613b0d64c6bd2...67ec8ad88f03da3e56c3ba44dbbb271167b8b195

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-pauvre/-/compare/988b0a75cda29054a0d33d75a96613b0d64c6bd2...67ec8ad88f03da3e56c3ba44dbbb271167b8b195
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/20241107/17a117e8/attachment-0001.htm>


More information about the debian-med-commit mailing list