Debian Codegraph @

debian/patches/python3.patch

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