| 1 |
Author: Michael R. Crusoe <[email protected]> |
| 2 |
Last-Update: 2019-12-15 |
| 3 |
Bug-Debian: https://bugs.debian.org/937145 |
| 4 |
Description: Python3 fixes |
| 5 |
|
| 6 |
--- a/tools/build_modref_templates.py |
| 7 |
+++ b/tools/build_modref_templates.py |
| 8 |
@@ -1,4 +1,4 @@ |
| 9 |
-#!/usr/bin/env python |
| 10 |
+#!/usr/bin/env python3 |
| 11 |
"""Script to auto-generate our API docs. |
| 12 |
""" |
| 13 |
# stdlib imports |
| 14 |
--- a/tools/github_stats.py |
| 15 |
+++ b/tools/github_stats.py |
| 16 |
@@ -1,11 +1,11 @@ |
| 17 |
-#!/usr/bin/env python |
| 18 |
+#!/usr/bin/env python3 |
| 19 |
"""Simple tools to query github.com and gather stats about issues. |
| 20 |
""" |
| 21 |
#----------------------------------------------------------------------------- |
| 22 |
# Imports |
| 23 |
#----------------------------------------------------------------------------- |
| 24 |
|
| 25 |
-from __future__ import print_function |
| 26 |
+ |
| 27 |
|
| 28 |
import json |
| 29 |
import re |
| 30 |
--- a/tools/gitwash_dumper.py |
| 31 |
+++ b/tools/gitwash_dumper.py |
| 32 |
@@ -1,4 +1,4 @@ |
| 33 |
-#!/usr/bin/env python |
| 34 |
+#!/usr/bin/env python3 |
| 35 |
''' Checkout gitwash repo into directory and do search replace on name ''' |
| 36 |
|
| 37 |
import os |
| 38 |
@@ -84,7 +84,7 @@ def copy_replace(replace_pairs, |
| 39 |
for rep_glob in rep_globs: |
| 40 |
fnames += fnmatch.filter(out_fnames, rep_glob) |
| 41 |
if verbose: |
| 42 |
- print '\n'.join(fnames) |
| 43 |
+ print('\n'.join(fnames)) |
| 44 |
for fname in fnames: |
| 45 |
filename_search_replace(replace_pairs, fname, False) |
| 46 |
for in_exp, out_exp in renames: |
| 47 |
--- a/tools/build_release |
| 48 |
+++ b/tools/build_release |
| 49 |
@@ -1,4 +1,4 @@ |
| 50 |
-#!/usr/bin/env python |
| 51 |
+#!/usr/bin/env python3 |
| 52 |
"""Nitime release build script. |
| 53 |
""" |
| 54 |
from toollib import * |
| 55 |
--- a/tools/ex2rst |
| 56 |
+++ b/tools/ex2rst |
| 57 |
@@ -1,4 +1,4 @@ |
| 58 |
-#!/usr/bin/env python |
| 59 |
+#!/usr/bin/env python3 |
| 60 |
# |
| 61 |
# Note: this file is copied (possibly with minor modifications) from the |
| 62 |
# sources of the PyMVPA project - http://pymvpa.org. It remains licensed as |
| 63 |
--- a/tools/make_examples.py |
| 64 |
+++ b/tools/make_examples.py |
| 65 |
@@ -1,4 +1,4 @@ |
| 66 |
-#!/usr/bin/env python |
| 67 |
+#!/usr/bin/env python3 |
| 68 |
"""Run the py->rst conversion and run all examples. |
| 69 |
|
| 70 |
This also creates the index.rst file appropriately, makes figures, etc. |
| 71 |
--- a/tools/release |
| 72 |
+++ b/tools/release |
| 73 |
@@ -1,4 +1,4 @@ |
| 74 |
-#!/usr/bin/env python |
| 75 |
+#!/usr/bin/env python3 |
| 76 |
"""Nitime release script. |
| 77 |
|
| 78 |
This should only be run at real release time. |
| 79 |
--- a/setup.py |
| 80 |
+++ b/setup.py |
| 81 |
@@ -1,4 +1,4 @@ |
| 82 |
-#!/usr/bin/env python |
| 83 |
+#!/usr/bin/env python3 |
| 84 |
"""Setup file for the Python nitime package. |
| 85 |
|
| 86 |
This file only contains cython components. |
| 87 |
--- a/doc/Makefile |
| 88 |
+++ b/doc/Makefile |
| 89 |
@@ -37,7 +37,7 @@ htmlonly: |
| 90 |
@echo "Build finished. The HTML pages are in _build/html." |
| 91 |
|
| 92 |
api: |
| 93 |
- python ../tools/build_modref_templates.py |
| 94 |
+ python3 ../tools/build_modref_templates.py |
| 95 |
@echo "Build API docs finished." |
| 96 |
|
| 97 |
html: rstexamples api htmlonly |