Use Python 3 shebangs and subprocess calls
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 16 Aug 2020 19:09:14 +0000 (20:09 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 16 Aug 2020 19:09:14 +0000 (20:09 +0100)
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name fix_shebangs.patch

ci/print_skipped.py
doc/make.py
doc/sphinxext/announce.py
pandas/core/computation/eval.py
pandas/tests/io/generate_legacy_storage_files.py
pandas/tests/io/test_compression.py
pandas/tests/plotting/common.py
scripts/download_wheels.py
scripts/generate_pip_deps_from_conda.py
scripts/validate_docstrings.py
setup.py

index a44281044e11d0d652a4c0104ec7cb21bba8ca04..0ef66a8456decd67a3f3aac6873b86885f2084a4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os
 import sys
index 7dbc5efc610dffb6d1ff2fc6e4b2f0113e2d54e3..72e4204f405c9fe0848de9f38d6000816b22d41e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Python script for building documentation.
 
index 1a5ab99b5a94f96e83773ce88863ee03873f6cd9..c78f72cd50c2337d151bbdc8ffe3bfb19e7f042d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- encoding:utf-8 -*-
 """
 Script to generate contributor and pull request lists
index 456ecf4b2594f4d04056378198ed31898b857839..9e5b37dd8208df391313f65a0c4fd4002b7a2c87 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Top level ``eval`` module.
index 2d2938697bd80001ceb085d25ed41c209a7c3a4b..6fde2c604978959aa8e5fa818ab60e288568c7ed 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 self-contained to write legacy storage (pickle/msgpack) files
index 16ca1109f266cc5e8e5f8d26aca592ec77768f55..ebcc0c28f12e79e4c1e6e03ae20737207f440696 100644 (file)
@@ -139,7 +139,7 @@ def test_with_missing_lzma():
         import pandas
         """
     )
-    subprocess.check_output(["python", "-c", code])
+    subprocess.check_output(["python3", "-c", code])
 
 
 def test_with_missing_lzma_runtime():
@@ -156,4 +156,4 @@ def test_with_missing_lzma_runtime():
             df.to_csv('foo.csv', compression='xz')
         """
     )
-    subprocess.check_output(["python", "-c", code])
+    subprocess.check_output(["python3", "-c", code])
index 4929422d20e8a38ffed232f1f5795b63338fc7d4..d1ea3ed5bbf719c7fdc69be74ced5f9ae13c371a 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # coding: utf-8
 
 import os
index 4ca1354321134969ee898f2a6f8134ac21f8e6e0..b7c5c27aa0e3c17fc79dfd7221a18d065e0da2c2 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Fetch wheels from wheels.scipy.org for a pandas version."""
 import argparse
 import pathlib
index ac73859b22598d053175a776bb2b300193b79615..997ea8010749b4b9ba30a0dfa6ebc6d1084fcbc0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Convert the conda environment.yml to the pip requirements-dev.txt,
 or check that they have the same packages (for the CI)
index 37623d32db685921942e6391e2e68a956c2777f3..c33565ff17772648c20d80f4263e71b902accec1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Analyze docstrings to detect errors.
 
index 8cc60ba6352c285aa49a8d13aff617571a11557d..0e2e330f87d18f8d3aebb5029566b61e3ed25a8f 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Parts of this file were taken from the pyzmq project