Use Python 3 shebangs and subprocess calls
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Wed, 26 Aug 2020 21:34:50 +0000 (22:34 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Wed, 26 Aug 2020 21:34:50 +0000 (22:34 +0100)
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: accepted for 1.1 https://github.com/pandas-dev/pandas/pull/31147

Gbp-Pq: Name fix_shebangs.patch

12 files changed:
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/plotting/common.py
scripts/download_wheels.py
scripts/find_commits_touching_func.py
scripts/generate_pip_deps_from_conda.py
scripts/validate_docstrings.py
scripts/validate_string_concatenation.py
setup.py

index 72822fa2d3c7ffec7eab7a41d64c5e19c4c1db53..60e2f047235e6b9c060d39196ade3b0cae1caf02 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import os
 import xml.etree.ElementTree as et
 
index 4b08b07a768ebc22da0108b048408b8031a9d861..ba4e5ba8b8b441265d970199f9c9ccc50df15d18 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Python script for building documentation.
 
index 3acc313fe13743c3c138d896e7a4aeb484ea7611..9c175e4e58b4593ef6e56d912eab80bd27cb1579 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 51892b8c02d87a903a70e21c585b7d17b1e3c31f..71e1b6c2a08a9a6ac45dbd9007c4e25207c7fb43 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Top level ``eval`` module.
index 6ef0e0457e2e2e4c4138caa8cc3163ed44873053..67b767a337a8990af8da724d8f92f96417c29feb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 self-contained to write legacy storage pickle files
index 45452526b905a996d9ae309521137d2f6ac22ef3..056413990d33dc9916103be2fbdc8909fa48280a 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # coding: utf-8
 
 import os
index 3d36eed2d888a62182a573c089e1d8944610b365..6ab4b58eb9bb8b7d21fdef40d9471c84755bd3f6 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 5e1a169dbfc3f5d3baf9f89a53c76f1f0339cc27..85675cb6df42bde20576652d8738421010562130 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # copyright 2013, y-p @ github
 """
 Search the git history for all commits touching a named method
index 53a27e8782ad7ed1680b9556514ce3e3fb392577..b64ee4c9f9f7cc3a730fa063c0792d4e23fc66c1 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 bcf3fd5d276f5c1c0b03b172191df2bec6117230..db2e87d56739fec946aeef51b7287ba61c362a95 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Analyze docstrings to detect errors.
 
index 3feeddaabe8d2893cceb76073c21a1c1102c3c0e..fbf3bb5cfccf2b0dfbeb4e3172b1333299aad4e8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 GH #30454
 
index e29f6fcd31bc8638fb84cb12e5ea9fbce500c2cd..13b1f7129e2031c4bad6d75af39b5a2bf9867175 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