Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Make sure test can be called also from somewhere else than mapdamage dir
· f2d42c25
Andreas Tille
authored
Sep 03, 2019
f2d42c25
Fix two remaining python instances
· 92d20272
Andreas Tille
authored
Sep 03, 2019
92d20272
Show whitespace changes
Inline
Side-by-side
debian/patches/2to3.patch
View file @
92d20272
...
...
@@ -254,11 +254,14 @@ Last-Update: Tue, 03 Sep 2019 11:02:34 +0200
if ((nt_seq == "T" and nt_ref =="C") or (nt_seq == "A" and nt_ref =="G")):
--- a/mapdamage/rescale_test.py
+++ b/mapdamage/rescale_test.py
@@ -1,6 +1,
6
@@
@@ -1,6 +1,
9
@@
import unittest
import optparse
-import rescale
+try:
+ from . import rescale
+except:
+ from mapdamage import rescale
import pysam
import filecmp
...
...
@@ -406,9 +409,12 @@ Last-Update: Tue, 03 Sep 2019 11:02:34 +0200
# -*- coding: utf-8 -*-
from distutils.core import setup
@@ -16,7 +16,7 @@
def setup_version():
@@ -14,9 +14,9 @@
def setup_version():
try:
version = subprocess.check_output(("git", "describe", "--always", "--tags", "--dirty"))
with open(os.path.join("mapdamage", "_version.py"), "w") as handle:
handle.write("#!/usr/bin/env python\n")
- handle.write("#!/usr/bin/env python\n")
+ handle.write("#!/usr/bin/python3\n")
handle.write("__version__ = %r\n" % (version.strip(),))
- except (subprocess.CalledProcessError, OSError), error:
+ except (subprocess.CalledProcessError, OSError) as error:
...
...
debian/tests/run-unit-test
View file @
92d20272
...
...
@@ -12,7 +12,7 @@ cd $ADTTMP
cp
-a
/usr/share/doc/
${
pkg
}
/tests/
*
.
cp
-a
/usr/share/doc/
${
pkg
}
/ref_T.fa
.
gunzip
-r
*
python rescale_test.py
python
3
rescale_test.py
mapDamage
-i
rescale_test/pe_test/pe.sam
-r
ref_T.fa
...
...