Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch various commands to python3 #339

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pip install -r requirements.txt
* start server

```
python manage.py runserver
python3 manage.py runserver
```

* to get Google Auth working:
Expand Down
2 changes: 1 addition & 1 deletion extract-passwords-for-email.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# extract voter_id and passwords for a particular email address
# may return many rows, if they all have the same email address
#
# python extract-passwords-for-email.py <election_uuid> <email_address>
# python3 extract-passwords-for-email.py <election_uuid> <email_address>
#

import sys
Expand Down
2 changes: 1 addition & 1 deletion helios_auth/auth_systems/oauthclient/oauth/rsa.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3

"""
requires tlslite - http://trevp.net/tlslite/
Expand Down
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import sys

Expand Down
4 changes: 2 additions & 2 deletions migrate-to-3.5.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ migrate-to-3.5.sql

- fake a migration

heroku run python manage.py migrate helios_auth --fake
heroku run python3 manage.py migrate helios_auth --fake

- do the rest of the migrations

heroku run python manage.py migrate
heroku run python3 manage.py migrate
6 changes: 3 additions & 3 deletions reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
set -e # Exit immediately if a command exits with a non-zero status.
dropdb helios
createdb helios
python manage.py makemigrations
python manage.py migrate
echo "from helios_auth.models import User; User.objects.create(user_type='google',user_id='[email protected]', info={'name':'Ben Adida'})" | python manage.py shell
python3 manage.py makemigrations
python3 manage.py migrate
echo "from helios_auth.models import User; User.objects.create(user_type='google',user_id='[email protected]', info={'name':'Ben Adida'})" | python3 manage.py shell