Skip to content

Commit 1a08c31

Browse files
frozencemeterysimo5
authored andcommitted
Move to python3 by default
When moving 2 -> 3, python elected to keep "python" as the name of the python2 interpreter. As a result, python3-only machines have no /usr/bin/python. Since python2 is EOL, it should be safe to make our scripting default to python3. Signed-off-by: Robbie Harwood <rharwood@redhat.com>
1 parent b4b43c2 commit 1a08c31

21 files changed

+22
-22
lines changed

README

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ To run tests, you also need:
2626

2727
* The Kerberos 5 Key-Distribution-Center (`krb5-kdc` package on Debian,
2828
`krb5-server` on Fedora)
29-
* Packages `mod_session`, `krb5-workstation`, `python-requests-gssapi`,
30-
and `python-gssapi` on Fedora
29+
* Packages `mod_session`, `krb5-workstation`, `python3-requests-gssapi`,
30+
and `python3-gssapi` on Fedora
3131
* Some tests require `krb5-pkinit` package on fedora and krb5 >= 1.15.
3232
* [nss_wrapper](https://cwrap.org/nss_wrapper.html), packaged in Fedora
3333
* [socket_wrapper](https://cwrap.org/socket_wrapper.html), packaged in Fedora

contrib/session_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Works with both python2 and python3; please preserve this property
33

44
# Copyright (C) 2016 mod_auth_gssapi contributors - See COPYING for (C) terms

contrib/sweeper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Works with both python2 and python3; please preserve this property
33

44
# Copyright (C) 2016 mod_auth_gssapi contributors - See COPYING for (C) terms

tests/magtests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import argparse

tests/t_bad_acceptor_name.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_basic_k5.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_basic_k5_fail_second.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_basic_k5_two_users.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_basic_proxy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_basic_timeout.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2020 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_file_check.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2020 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_hostname_acceptor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2017 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import sys

tests/t_localname.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2020 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_mech_name.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_nonego.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_required_name_attr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_spnego.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_spnego_negotiate_once.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_spnego_no_auth.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_spnego_proxy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

tests/t_spnego_rewrite.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license.
33

44
import os

0 commit comments

Comments
 (0)