1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
Author: Andreas Tille <tille@debian.org>
Last-Update: Sat, 07 Dec 2019 21:44:15 +0100
Description: Force Python3 in some scripts
--- a/bin/extract-readme-snippets.py
+++ b/bin/extract-readme-snippets.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
"""
Pandoc filter to exact python code blocks and write each snippet out.
--- a/pbcommand/create_bundle_manifest.py
+++ b/pbcommand/create_bundle_manifest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
# Tool to generate the manifest.xml will the correct datetime of bundle
# creation as well as add git sha and bamboo build metadata
--- a/pbcommand/services/resolver.py
+++ b/pbcommand/services/resolver.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
"""
Utility to obtain paths to important analysis files from SMRT Link jobs,
--- a/pbcommand/testkit/nunit.py
+++ b/pbcommand/testkit/nunit.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
"""
Generate an NUnit XML test report annotated with test issue keys, suitable
--- a/tests/test_testkit_xunit.py
+++ b/tests/test_testkit_xunit.py
@@ -101,7 +101,7 @@ class TestXunitOutput:
def test_merge_junit_files_cmdline(self):
x1, x2 = self._get_junit_files()
x_merged = tempfile.NamedTemporaryFile(suffix=".xml").name
- args = ["python", "-m" "pbcommand.testkit.merge_junit_files",
+ args = ["python3", "-m" "pbcommand.testkit.merge_junit_files",
"-o", x_merged, x1, x2, "--quiet"]
assert subprocess.call(args) == 0
x = ElementTree.ElementTree(file=x_merged)
|