[PATCH 1/1] dev/validate-python: require >= 3.7 for python 3 matching README

0 views
Skip to first unread message

Rob Browning

unread,
Nov 24, 2021, 1:49:46 PM11/24/21
to bup-...@googlegroups.com
Signed-off-by: Rob Browning <r...@defaultvalue.org>
---

The README already requires 3.7+, though I can't recall offhand the
exact reason. Right now we only enfoce 3.3+ -- is anyone here
depending on a version of 3 < 3.7 right now?

dev/validate-python | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/validate-python b/dev/validate-python
index a64ecfef..6e538c85 100755
--- a/dev/validate-python
+++ b/dev/validate-python
@@ -11,9 +11,9 @@ majver=$("$python" -c 'import sys; print(sys.version_info[0])')
minver=$("$python" -c 'import sys; print(sys.version_info[1])')

# May not be correct yet, i.e. actual requirement may be higher.
-if test "$majver" -gt 2 -a "$minver" -lt 3; then
+if test "$majver" -gt 2 -a "$minver" -lt 7; then
# utime follow_symlinks >= 3.3
bup_version_str=$("$python" --version 2>&1)
- echo "ERROR: found $bup_version_str (must be >= 3.3 if >= 3)" 1>&2
+ echo "ERROR: found $bup_version_str (must be >= 3.7 if >= 3)" 1>&2
exit 2
fi
--
2.30.2

Rob Browning

unread,
Dec 5, 2021, 11:55:36 AM12/5/21
to bup-...@googlegroups.com
Rob Browning <r...@defaultvalue.org> writes:

> Signed-off-by: Rob Browning <r...@defaultvalue.org>
> ---
>
> The README already requires 3.7+, though I can't recall offhand the
> exact reason. Right now we only enfoce 3.3+ -- is anyone here
> depending on a version of 3 < 3.7 right now?

Pushed.

--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
Reply all
Reply to author
Forward
0 new messages