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

Migration to Python3 #3616

Open
wants to merge 211 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 200 commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
c6bdf4d
Add Python 3 to Github Actions
willgearty Sep 8, 2021
72bcb56
Django 1.11 only supports python 3.7
willgearty Sep 8, 2021
522ffa4
add Ted's changes to test config & update pip
milescalabresi Feb 17, 2023
31ef34b
add new library versions for Python 3
milescalabresi Feb 17, 2023
3fb5f8b
run python-modernize
milescalabresi Feb 17, 2023
0be6fd9
encode strings for hashlib
milescalabresi Feb 22, 2023
fe98fe4
Revert some encodings
willgearty Sep 10, 2021
858d35b
Fix StringIO imports
willgearty Sep 10, 2021
0d9ad64
change byte strings to unicode in migrations
milescalabresi Feb 22, 2023
5276d14
replace force_unicode with force_text
willgearty Sep 11, 2021
afa680b
letters to ascii_letters
willgearty Sep 12, 2021
0c345a0
Fix some tests
willgearty Sep 12, 2021
8584cb4
Fix more tests
willgearty Sep 12, 2021
b8fd8f8
bump Twilio version and change imports accordingly
milescalabresi Feb 22, 2023
9b2fce4
change roomslot function
milescalabresi Feb 22, 2023
6f6525b
move ESPUser import
milescalabresi Feb 22, 2023
1aa727a
exclude __pycache__ when listing directories with os.listdir
hwatheod Sep 12, 2021
c7c87e8
Bump versions for flake8, stripe, pygments, pillow
hwatheod Sep 13, 2021
67cb96d
fix flush function to copy dictionary keys before iterating
hwatheod Sep 12, 2021
8750bec
a few small fixes
hwatheod Sep 18, 2021
ceb02bd
use six.text_type for Python 2/3 compatibility
hwatheod Sep 19, 2021
57f3805
fix dictionary key ordering in test
hwatheod Sep 12, 2021
45111d8
add Django reCAPTCHA to requirements
milescalabresi Feb 24, 2023
f4e295c
fix variable name -- this is why you shouldn't clobber keywords with …
milescalabresi Feb 25, 2023
71b7bad
add back b chars at the end of strings
milescalabresi Mar 1, 2023
613745a
more fixes to binary strings in migrations adding back b chars; in ge…
milescalabresi Mar 1, 2023
c3fecf5
change a couple unicode decodes
milescalabresi Mar 3, 2023
6d9c09b
more unicode fixes
milescalabresi Mar 8, 2023
3b3b113
decode context for JSON plus a few small whitespace fixes
milescalabresi Mar 8, 2023
c859c7d
try encoding not decoding
milescalabresi Mar 8, 2023
e200e76
try just raw string
milescalabresi Mar 8, 2023
b2b4e58
try just raw string
milescalabresi Mar 8, 2023
f16d137
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi Mar 10, 2023
2fab6ff
Convert all cmp parameters to key for sort() calls
hwatheod Sep 14, 2021
530acb9
define __lt__, etc. everywhere __cmp__ is defined
hwatheod Sep 14, 2021
97b357a
add cmp function to utils and import everywhere cmp is used
hwatheod Sep 14, 2021
cf830b6
add cmp function to utils and import everywhere cmp is used
hwatheod Sep 14, 2021
3cd14b2
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi Mar 10, 2023
ae51c71
use six.text_type for Python 2/3 compatibility
hwatheod Sep 19, 2021
764fba9
fix another unicode-string issue
milescalabresi Mar 10, 2023
90cae23
Replace __unicode__() with __str__()
willgearty Sep 18, 2021
40a4857
add wheel for building packages with pip3
milescalabresi Mar 10, 2023
bea7785
fix // division (in 27 this was operating on floats)
milescalabresi Mar 17, 2023
c854ad3
don't care anymore about 2.7 tests; doing some breaking changes
milescalabresi Mar 17, 2023
59e01fa
Decode response.content in tests; use decode over str for consistency
willgearty Sep 13, 2021
a56977f
Decode more response.content
willgearty Sep 13, 2021
d6974b3
Don't decode strings
willgearty Sep 13, 2021
f71fe27
Remove outdated code
willgearty Sep 20, 2021
44f4578
Merge branch 'main' into migration-to-python3
milescalabresi Mar 17, 2023
08a08a3
Fix some tests
willgearty Sep 14, 2021
7c92f65
remove makefile in favor of version in lu-scripts repo
milescalabresi Mar 22, 2023
a49752f
transition infrastructure to Python 3 as default
milescalabresi Mar 22, 2023
eecde59
transition infrastructure to Python 3 as default
milescalabresi Mar 22, 2023
f161ac1
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi Mar 25, 2023
cf35791
fix two lines that got out of order
milescalabresi Mar 25, 2023
118e019
add deadsnakes ppa until we upgrade to current Python
milescalabresi Mar 25, 2023
589ab76
fix typo in packages and add instructions for pip in special case
milescalabresi Mar 31, 2023
99fc744
update VM URL
milescalabresi Mar 31, 2023
dc75eca
can't use comments when feeding this file with pipe
milescalabresi Apr 19, 2023
7c66e9d
configure for new vagrant and jammy box
milescalabresi Apr 26, 2023
35da209
fix print statements in fabfile for python3
milescalabresi Apr 28, 2023
e79f283
tweaks to make setup on new VM work
milescalabresi May 3, 2023
40ebabb
change partition name (new Ubuntu seems to add prefix)
milescalabresi May 5, 2023
652b4dc
update documentation for new servers and Python 3
milescalabresi May 5, 2023
bbec2b8
two more small fabfile tweaks
milescalabresi May 5, 2023
eb80d00
Merge branch 'main' into migration-to-python3
milescalabresi May 5, 2023
60d216e
clean up some formatting
milescalabresi Jun 9, 2023
0deb0a7
clean up rst formatting
kkbrum Jun 14, 2023
f5ed091
Fix fabfile
willgearty Jul 21, 2023
f92c948
install repo for older python version in update_deps.sh if necessary
milescalabresi Aug 16, 2023
2c011dd
update to 22.04.2 with new partition name
milescalabresi Sep 28, 2023
c0afd8e
fix Vagrantfile and instructions for 22.04 VM
milescalabresi Oct 4, 2023
7595d5e
fix string type error in theme compiling
milescalabresi Oct 4, 2023
3503012
remove unnecessary (and deprecated) node installation script
milescalabresi Oct 4, 2023
f3cb6d7
Merge branch 'main' into migration-to-python3
milescalabresi Oct 6, 2023
7baed0f
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi Oct 6, 2023
8177c60
fix stray sudo typo
milescalabresi Oct 6, 2023
70f4a22
don't need requirements3 anymore
milescalabresi Oct 6, 2023
5e8cd54
fix whitespace from merge
milescalabresi Oct 6, 2023
a031f61
fix partition name in one more spot
milescalabresi Oct 6, 2023
2b3ad3a
give all users permissions; remove redundant block; don't use machine…
milescalabresi Oct 11, 2023
dc93a91
apply six to css string
milescalabresi Oct 11, 2023
892d744
make jsondatamodule grades test more robust (not based on string cont…
milescalabresi Oct 11, 2023
fd98585
silence utility commands
milescalabresi Oct 13, 2023
7d41208
access JSON with built-in method
milescalabresi Oct 13, 2023
13ff631
fix divide for float
milescalabresi Oct 13, 2023
2c8d8ee
load response.content with six instead of decode
milescalabresi Oct 13, 2023
7f3c6a4
try to reduce echo messages
milescalabresi Oct 18, 2023
9161b17
add more detailed errors and avoid keyword collision
milescalabresi Oct 25, 2023
cbcca2b
use non-integer division where python2 used floats
milescalabresi Oct 25, 2023
fb0e208
Merge branch 'main' into migration-to-python3
milescalabresi Oct 27, 2023
17b7ff1
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi Oct 27, 2023
b758601
use float division where Python 2 would have
milescalabresi Oct 27, 2023
795098e
no longer should encode ascii; everything is utf8
milescalabresi Oct 27, 2023
1757628
use tuples to future-proof slicing
milescalabresi Nov 3, 2023
6eb9f63
use list, not generator to check length and get item for testing
milescalabresi Nov 3, 2023
b823696
use newer assertContains test to avoid str/bytes and status errors
milescalabresi Nov 3, 2023
974339c
reponse content should be string not bytes
milescalabresi Nov 4, 2023
9d81e39
use assertContains for testing content, not assertTrue with in
milescalabresi Nov 4, 2023
130bcc6
use lists not generators like Python2
milescalabresi Nov 4, 2023
b1c4116
another case of assertContains for response content
milescalabresi Nov 8, 2023
59fb6b7
use functools for complicated cmp in Python3
milescalabresi Nov 8, 2023
67e95fd
use querystring in current django
milescalabresi Nov 8, 2023
e37d51c
use 'is' for comparison to 'None'
milescalabresi Nov 8, 2023
444d837
fix typo in variable name
milescalabresi Nov 8, 2023
fac8914
decode response content
milescalabresi Nov 15, 2023
c3472c0
add more detailed test output
milescalabresi Nov 15, 2023
63dcd51
fix whitespace
milescalabresi Nov 15, 2023
0565154
use when comparing to None (fixes schedule test)
milescalabresi Nov 15, 2023
ca0702f
use 'is' with None throughout
milescalabresi Nov 15, 2023
a59c8de
fix missing kwarg
milescalabresi Nov 15, 2023
17d5776
refactor text extraction and tests a little
milescalabresi Nov 15, 2023
aa3399a
don't need to decode string in python3
milescalabresi Nov 15, 2023
faebf41
make error messages more informative for debugging
milescalabresi Nov 15, 2023
5a8efa1
must decode bytestring to use 'in'
milescalabresi Nov 15, 2023
f7dc7f4
simplify another assertContains test
milescalabresi Nov 17, 2023
761cfaf
more decoding response.content bytes
milescalabresi Nov 17, 2023
5dc0b51
add a little more debug info to error
milescalabresi Nov 17, 2023
cdfaf17
Add version numbers and fix whitespace
milescalabresi Jan 5, 2024
edadab1
install npm as a base package
milescalabresi Jan 26, 2024
872909c
fix permissions for fabric
milescalabresi Jan 28, 2024
7727dc5
update documentation for Vagrant upgrades
milescalabresi Jan 28, 2024
555c6cb
use two (2) CPUs by default for VM; it helps with running commands an…
milescalabresi Jan 31, 2024
5dc1cab
remove new program review page to avoid serializing in sessions and s…
milescalabresi Jan 31, 2024
ef78337
Remove clear theme form option (#3603)
kkbrum Feb 3, 2023
853c805
use explicit list comprehension for Python 3
milescalabresi Feb 2, 2024
06671b3
Python 3 uses ascii_lowercase not just lowercase
milescalabresi Feb 2, 2024
7011215
fix whitespace
milescalabresi Feb 3, 2024
3679c47
another float division edge case
milescalabresi Feb 3, 2024
e7f6e14
decode CSS from binary
milescalabresi Feb 3, 2024
96f8ae6
Make contact info more editable/hidable (#3697)
willgearty Dec 15, 2023
77773a8
Reset and remove optional fruitsalad variables (#3696)
willgearty Dec 22, 2023
c8f42d7
use iteritems with latest update
milescalabresi Feb 7, 2024
08adc8d
decode CSS data right after lessc
milescalabresi Feb 7, 2024
a8e78e0
move class_size_max choices to widget
milescalabresi Feb 21, 2024
bbfdc7f
specify to read binary (and use non-keyword variable name)
milescalabresi Feb 23, 2024
0e13278
print all errors at the end of testallviews
milescalabresi Feb 28, 2024
dc923de
slightly better error message
milescalabresi Mar 1, 2024
6d58c23
change user q_filter to binary, introduce reasonable dictionary sorti…
milescalabresi Mar 7, 2024
4cd1bd4
migrate dbmail fields to json and new pickle
milescalabresi Mar 9, 2024
c783f98
clean up whitespace and comments
milescalabresi Mar 9, 2024
794414e
let's just use strings for all answers
milescalabresi Mar 10, 2024
5bc8e08
serialize resource attributes with JSON instead of pickle
milescalabresi Mar 10, 2024
aded7eb
add some migrations I missed
milescalabresi Mar 10, 2024
02bdf99
remove unnecessary import
milescalabresi Mar 17, 2024
3d1a10f
add Python 3 utility to unpack Python 2 pickles
milescalabresi Mar 24, 2024
cea2d64
delete some migrations that don't have to do with Python 3; we will a…
milescalabresi Mar 27, 2024
36849b4
add migrations for Python 3 pickled model changes
milescalabresi Mar 27, 2024
e006546
small fixes to migrations
milescalabresi Mar 29, 2024
ccd088e
allow newer versions of python on host machine
milescalabresi Apr 3, 2024
9417395
add reverse migration functions
milescalabresi Apr 3, 2024
c2f7e81
add reverse migration functions
milescalabresi Apr 3, 2024
0592724
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi Apr 3, 2024
8149be3
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi Apr 3, 2024
7066f78
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi Apr 3, 2024
1dba109
a few fixes to the unpickling
milescalabresi Apr 27, 2024
ea47cc1
use latin1 encoding for compatibility
milescalabresi Apr 27, 2024
2603d10
just create new blank fields; we don't need these old pickles
milescalabresi Apr 27, 2024
7c677a3
for just strings and simple pickles, we don't need cucumber
milescalabresi Apr 27, 2024
b606d54
survey answers don't seem to be actually pickled
milescalabresi May 5, 2024
5310c90
Merge branch 'main' into migration-to-python3
milescalabresi May 10, 2024
7a25d3b
fix migrations from merging main into python3
milescalabresi May 10, 2024
347073a
move to python 3 iterator
milescalabresi May 10, 2024
35f45ca
use six for 'basestring' compatibility
milescalabresi May 11, 2024
3120d12
fix merge error
milescalabresi May 11, 2024
996a3fb
encode and decode bytes theme data
milescalabresi May 11, 2024
25e05b6
add auto-generated migrations for merge compatibility
milescalabresi May 11, 2024
7c56b64
decode binary theme data
milescalabresi May 15, 2024
d03eab5
Merge branch 'main' into migration-to-python3
milescalabresi May 16, 2024
c21f881
additional modernize imports
milescalabresi May 16, 2024
f074ff9
more modernize tweaks (whitespace fixes, avoiding filter iterators, l…
milescalabresi May 16, 2024
c9e46c6
add missing imports
milescalabresi May 16, 2024
80b03fe
undo where modernize misunderstood a keyword override
milescalabresi May 16, 2024
8aad5c1
undo where modernize misunderstood a keyword override
milescalabresi May 16, 2024
767d53f
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi May 16, 2024
0364736
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi May 16, 2024
82dde85
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi May 16, 2024
4adb4f3
remove last couple references to Python 2
milescalabresi May 19, 2024
2db8263
remove last couple references to Python 2
milescalabresi May 19, 2024
40df3cb
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi May 19, 2024
8d001ae
fix typo
milescalabresi May 20, 2024
4ef0dbc
Fix typo in review
milescalabresi May 25, 2024
2d8b6e7
improvements to doc for review
milescalabresi May 25, 2024
a5d06fd
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi May 25, 2024
b7e538e
upgrade for Ubuntu 24.04
milescalabresi Jun 26, 2024
246506d
Merge branch 'main' into migration-to-python3
milescalabresi Jun 26, 2024
78e05d7
add back scheduling checks that were accidentally deleted
milescalabresi Jul 19, 2024
01f6e8c
missing six usage
milescalabresi Jul 19, 2024
7573a61
add missing cmp-to-key conversion
milescalabresi Jul 19, 2024
5ce45f2
one more iteritems fix
milescalabresi Jul 24, 2024
00f3f15
catch attempts to pickle memoryview objects
milescalabresi Jul 26, 2024
d432d24
use copyreg to serialize memoryview objects
milescalabresi Jul 26, 2024
11a3c97
Fix attendance barcode scanning
willgearty Jul 31, 2024
3dfea2e
Fix attendance dropdown
willgearty Jul 31, 2024
61d6a07
Put rapid check-in messages in nice box
willgearty Jul 31, 2024
03e5b13
Add label tags to confirm text
willgearty Jul 31, 2024
2a006a8
do regex substitution before encoding
milescalabresi Jul 31, 2024
8fb1dd9
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi Jul 31, 2024
5a51f44
Prettify usersearch warning/message
willgearty Jul 31, 2024
fb6aa86
Student schedule fixes
willgearty Jul 31, 2024
86d0c62
write bytes to BytesIO now; don't need to encode ASCII
milescalabresi Aug 2, 2024
dd29518
Merge branch 'migration-to-python3' of github.com:learning-unlimited/…
milescalabresi Aug 2, 2024
9afbb0f
use django encoder to serialize Decimal
milescalabresi Aug 2, 2024
6b677a6
Disable adding linked model fields to existing custom forms
willgearty Aug 2, 2024
8b44c26
turn zip generator into list
milescalabresi Aug 7, 2024
0d90ea0
bump IPython version
milescalabresi Aug 14, 2024
9d7661e
properly hide unmorph button
willgearty Aug 14, 2024
87bbd33
Fix status field in class management form
willgearty Aug 16, 2024
353a9f8
Disable scheduler until changelog is applied
willgearty Aug 23, 2024
6d7214f
Fix resetting optional variables
willgearty Aug 23, 2024
70e852c
Fix credit card module
willgearty Sep 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
build:
name: ${{ matrix.travis_job }}
name: ${{ matrix.travis_job }} (Python ${{ matrix.python-version }})
runs-on: ubuntu-20.04
services:
postgres:
Expand All @@ -23,8 +23,9 @@ jobs:
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
fail-fast: false
matrix:
python-version: ['pypy2.7']
python-version: [3.7]
travis_job: ["lint", "test"]
env:
DJANGO_SETTINGS_MODULE: esp.settings
Expand All @@ -38,17 +39,22 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Prepare for Installing Dependencies
run: deploy/travis/before_install
env:
PYTHON_VERSION: ${{ matrix.python-version }}
- name: Install Dependencies for ${{ matrix.travis_job }}
env:
TRAVIS_JOB: ${{ matrix.travis_job }}
PYTHON_VERSION: ${{ matrix.python-version }}
run: deploy/travis/install
- name: Prepare for ${{ matrix.travis_job }}
env:
TRAVIS_JOB: ${{ matrix.travis_job }}
PYTHON_VERSION: ${{ matrix.python-version }}
run: deploy/travis/before_script
- name: Run ${{ matrix.travis_job }}
env:
TRAVIS_JOB: ${{ matrix.travis_job }}
PYTHON_VERSION: ${{ matrix.python-version }}
run: deploy/travis/script
- name: Upload Coverage to Codecov
if: ${{ matrix.travis_job == 'test' }}
Expand Down
38 changes: 0 additions & 38 deletions Makefile

This file was deleted.

8 changes: 5 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ VAGRANTFILE_API_VERSION = '2'

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

# Build off the basic Ubuntu 20.04 64-bit VM.
config.vm.box = 'ubuntu-20.04'
config.vm.box_url = 'https://s3.amazonaws.com/learningu-static/ubuntu-20.04.box'
# Build off the basic Ubuntu 64-bit VM.
config.vm.box = 'ubuntu-24.04'
config.vm.box_url = 'https://learningu-static.s3.amazonaws.com/ubuntu-24.04.box'
config.vm.hostname = 'ludev'
config.ssh.forward_agent = true
config.ssh.forward_x11 = true
config.ssh.insert_key = false

# Forward port for Django dev server
config.vm.network :forwarded_port, guest: 8000, host: 8000
Expand All @@ -28,6 +29,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider :virtualbox do |vb|
# vb.gui = true
vb.customize ['modifyvm', :id, '--memory', '2048']
vb.customize ["modifyvm", :id, "--cpus", "2"]
end

end
1 change: 1 addition & 0 deletions deploy/config_templates/local_settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Local system-specific settings. """

from __future__ import absolute_import
import os

SITE_INFO = (1, 'devsite.learningu.org', 'LU Dev Site')
Expand Down
18 changes: 4 additions & 14 deletions deploy/travis/before_install
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
#!/bin/bash
set -euf -o pipefail

if [ $(echo "$(lsb_release -rs) > 20" | bc) -eq 1 ]; then
sudo apt update
else
sudo apt-get update
fi
sudo add-apt-repository ppa:deadsnakes/ppa

sudo apt update

# install pip
sudo add-apt-repository universe
if [ $(echo "$(lsb_release -rs) > 20" | bc) -eq 1 ]; then
sudo apt install -y curl
else
sudo apt-get install -y curl
fi
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
sudo python2 -m pip install --upgrade pip==20.1
sudo apt -y install python3-pip
7 changes: 5 additions & 2 deletions deploy/travis/before_script
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ set -euf -o pipefail

if [ "$TRAVIS_JOB" = "test" ]; then
cp esp/esp/local_settings.py.travis esp/esp/local_settings.py
ln -s `pwd`/esp/public/media/default_images esp/public/media/images
ln -s `pwd`/esp/public/media/default_styles esp/public/media/styles
ln -f -s `pwd`/esp/public/media/default_images esp/public/media/images
ln -f -s `pwd`/esp/public/media/default_styles esp/public/media/styles
# the postgres service in Github Actions sets up the database for us
if [ "$GITHUB_ACTIONS" != true ]; then
psql -c "DROP DATABASE IF EXISTS test_test_django;" -U postgres
psql -c "DROP DATABASE IF EXISTS test_django;" -U postgres
psql -c "DROP ROLE IF EXISTS testuser;" -U postgres
psql -c "CREATE ROLE testuser PASSWORD 'testpassword' LOGIN CREATEDB;" -U postgres
psql -c "CREATE DATABASE test_django OWNER testuser;" -U postgres
fi
Expand Down
6 changes: 3 additions & 3 deletions deploy/travis/install
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ if [ "$TRAVIS_JOB" = "test" ]; then
sudo apt-get remove -y libhashkit2
sudo apt-get install -y $(cat esp/packages_base.txt | grep -v ^memcached | grep -v ^postgres | grep -v ^libpq-dev | grep -v ^.*pip)
esp/packages_base_manual_install.sh
pip2 install -r esp/requirements.txt -q --log pip.log || (tail pip.log && exit 1)
pip2 install coverage
pip3 install -r esp/requirements.txt -q --log pip.log || (tail pip.log && exit 1)
pip3 install coverage
elif [ "$TRAVIS_JOB" = "lint" ]; then
pip2 install flake8
pip3 install flake8
else
echo "Unknown TRAVIS_JOB: $TRAVIS_JOB"
exit 1
Expand Down
3 changes: 1 addition & 2 deletions docs/dev/deploying.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ To deploy a new site, first make sure you know:
#. the group's name (e.g. "MIT ESP" or "Yale Splash")
#. the chapter's preferred `theme <../admin/available_themes.rst>`_

Then ssh to ``diogenes``, grab the latest version of
``deploy/server_setup/new_site.sh``, ``cd`` to ``/lu/sites``, and
Then ssh to the production server, ``cd`` to ``/lu/sites``, and
run ``sudo new_site.sh --all``. If the directory already exists for the
chapter, you may wish to delete it to get a clean start. (You may instead
clone the repository yourself, ``cd`` into it, and run the script from there.)
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/email.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ESP Email Setup
===============

This document describes how email, both incoming and outgoing, makes its way where it's going on the ESP website. The code will serve as a more specific reference for the details, but this is an overview of the high-level setup. Note: this document describes the setup on diogenes; the parts of the setup outside the ESP-Website codebase may vary slightly on sites hosted elsewhere (i.e. esp.mit.edu).
This document describes how email, both incoming and outgoing, makes its way where it's going on the ESP website. The code will serve as a more specific reference for the details, but this is an overview of the high-level setup. Note: this document describes the setup on the LU production server; the parts of the setup outside the ESP-Website codebase may vary slightly on sites hosted elsewhere (in particular, esp.mit.edu).

.. contents:: :local:

Expand Down
Loading
Loading