From 9f2eef4b0d6ec926a84f881b879e69978f604dc8 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sat, 25 Jan 2020 21:23:02 +0100 Subject: Be explicit about Python 3 in shebang lines and docs Signed-off-by: Sebastian Pipping --- docs/README | 2 +- metagen/main.py | 2 +- metagen/meta_unittest.py | 2 +- metagen/metagenerator.py | 2 +- setup.py | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/README b/docs/README index 3a40768..81bb6d2 100644 --- a/docs/README +++ b/docs/README @@ -7,7 +7,7 @@ metagen is a command line tool that writes a Gentoo metadata.xml file in the current working directory. The metagen package also has a metagenerator class that can be used -from Python to create metadata.xml files easily: +from Python 3 to create metadata.xml files easily: from metagen.metagenerator import MyMetadata diff --git a/metagen/main.py b/metagen/main.py index c642b12..973822d 100755 --- a/metagen/main.py +++ b/metagen/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """ diff --git a/metagen/meta_unittest.py b/metagen/meta_unittest.py index 73b5072..15caf8b 100644 --- a/metagen/meta_unittest.py +++ b/metagen/meta_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from metagenerator import MyMetadata diff --git a/metagen/metagenerator.py b/metagen/metagenerator.py index b08839b..caecf87 100755 --- a/metagen/metagenerator.py +++ b/metagen/metagenerator.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import sys diff --git a/setup.py b/setup.py index 5149fe2..5bd0e09 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ NAME: setup.py SYNOPSIS: - python setup.py [options] [command] + python3 setup.py [options] [command] DESCRIPTION: Using distutils "setup", build, install, or make tarball of the package. @@ -24,9 +24,9 @@ EXAMPLES: (cp myfile-0.1.tar.gz here) gzip -cd myfile-0.1.tar.gz | tar xvf - cd myfile-0.1 - python setup.py build - python setup.py install - python setup.py sdist + python3 setup.py build + python3 setup.py install + python3 setup.py sdist """ import os,sys,re,string,getopt,shutil,commands,glob -- cgit v1.2.3-65-gdbad