From 6bfc88d0b0613dab1b25de913311cbeedfff3132 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Tue, 12 Dec 2023 21:26:41 +0100 Subject: Update README and demo project to python3 Update py2->py3 in README Not strictly necessary, but use python3 directly + remove py2 compatibility line Use python3 explicity. Debian (CI) does not have a python->python3 link? --- README | 2 +- demo-project/configure | 4 +--- test-everything.sh | 3 ++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README b/README index c76a0ce..41c08b5 100644 --- a/README +++ b/README @@ -4,5 +4,5 @@ Principles: * Assume most build environments are sane, and ignore the rest. * In the face of ambiguity, refuse the temptation to guess. * Never automatically toggle features based on the build environment. -* Written in python2 for easy editing and wide portability. +* Written in python3 for easy editing and wide portability. * GPL, but this does not apply to the program being built. diff --git a/demo-project/configure b/demo-project/configure index 47022c2..61a2c2e 100755 --- a/demo-project/configure +++ b/demo-project/configure @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2013 Ben Longbons # @@ -17,8 +17,6 @@ # You should have received a copy of the GNU General Public License # along with attoconf. If not, see . -from __future__ import print_function, division, absolute_import - import os import sys diff --git a/test-everything.sh b/test-everything.sh index 64fc89d..c45ad00 100755 --- a/test-everything.sh +++ b/test-everything.sh @@ -1,5 +1,6 @@ #!/bin/sh -e -python -m unittest discover "$@" +python3 -m unittest discover "$@" + mkdir -p demo-build cd demo-build ../demo-project/configure -- cgit v1.2.3-60-g2f50