[med-svn] [Git][med-team/megahit][master] 2to3 to ensure python wrapper is python3
Shayan Doust
gitlab at salsa.debian.org
Mon Oct 14 23:53:48 BST 2019
Shayan Doust pushed to branch master at Debian Med / megahit
Commits:
9bfa748d by Shayan Doust at 2019-10-11T16:14:46Z
2to3 to ensure python wrapper is python3
- - - - -
4 changed files:
- debian/control
- + debian/patches/2to3.patch
- debian/patches/fix_src_packed_field.patch
- debian/patches/series
Changes:
=====================================
debian/control
=====================================
@@ -15,7 +15,8 @@ Package: megahit
Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
- bzip2
+ bzip2,
+ python3-all
Description: ultra-fast and memory-efficient meta-genome assembler
Megahit is an ultra-fast and memory-efficient NGS assembler. It is
optimized for metagenomes, but also works well on generic single genome
=====================================
debian/patches/2to3.patch
=====================================
@@ -0,0 +1,33 @@
+Description: 2to3 to port python2 files to python3
+Author: Shayan Doust <hello at shayandoust.me>
+Last-Update: 2019-10-11
+---
+
+Index: megahit/src/megahit
+===================================================================
+--- megahit.orig/src/megahit 2019-10-11 17:11:14.912761645 +0100
++++ megahit/src/megahit 2019-10-11 17:11:14.908761605 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ # -------------------------------------------------------------------------
+ # MEGAHIT
+@@ -19,7 +19,7 @@
+ # -------------------------------------------------------------------------
+
+
+-from __future__ import print_function
++
+
+ import getopt
+ import json
+@@ -373,7 +373,7 @@
+ elif option == '--max-tip-len':
+ opt.max_tip_len = int(value)
+ elif option == '--merge-level':
+- (opt.merge_len, opt.merge_similar) = map(float, value.split(','))
++ (opt.merge_len, opt.merge_similar) = list(map(float, value.split(',')))
+ opt.merge_len = int(opt.merge_len)
+ elif option == '--prune-level':
+ opt.prune_level = int(value)
=====================================
debian/patches/fix_src_packed_field.patch
=====================================
@@ -6,8 +6,8 @@ Last-Update: 2019-10-11
Index: megahit/src/sequence/kmer.h
===================================================================
---- megahit.orig/src/sequence/kmer.h 2019-10-11 08:40:04.526867946 +0100
-+++ megahit/src/sequence/kmer.h 2019-10-11 08:40:04.522867907 +0100
+--- megahit.orig/src/sequence/kmer.h 2019-10-11 17:00:20.754408247 +0100
++++ megahit/src/sequence/kmer.h 2019-10-11 17:00:20.750408208 +0100
@@ -113,7 +113,9 @@
}
=====================================
debian/patches/series
=====================================
@@ -1,2 +1,2 @@
-
+2to3.patch
fix_src_packed_field.patch
View it on GitLab: https://salsa.debian.org/med-team/megahit/commit/9bfa748d42ea907f0ce283dbfdc32b95048f96e5
--
View it on GitLab: https://salsa.debian.org/med-team/megahit/commit/9bfa748d42ea907f0ce283dbfdc32b95048f96e5
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/20191014/c47ba8f7/attachment-0001.html>
More information about the debian-med-commit
mailing list