summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2023-12-12 21:26:41 +0100
committerFedja Beader <fedja@protonmail.ch>2023-12-12 22:25:37 +0100
commit6bfc88d0b0613dab1b25de913311cbeedfff3132 (patch)
treeecee142136ca410299fa6b3f39c77fc11f286dc9
parent635a136ec06c00efadc46a9d364f15d771f4036e (diff)
downloadattobuild-6bfc88d0b0613dab1b25de913311cbeedfff3132.tar.gz
attobuild-6bfc88d0b0613dab1b25de913311cbeedfff3132.tar.bz2
attobuild-6bfc88d0b0613dab1b25de913311cbeedfff3132.tar.xz
attobuild-6bfc88d0b0613dab1b25de913311cbeedfff3132.zip
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?
-rw-r--r--README2
-rwxr-xr-xdemo-project/configure4
-rwxr-xr-xtest-everything.sh3
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 <b.r.longbons@gmail.com>
#
@@ -17,8 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with attoconf. If not, see <http://www.gnu.org/licenses/>.
-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