Skip to content
Snippets Groups Projects
Commit 8a257939 authored by Gunnar Schaefer's avatar Gunnar Schaefer
Browse files

Clean up requirements, update infra

parent 90a5b8b4
No related branches found
No related tags found
No related merge requests found
...@@ -13,3 +13,16 @@ or ...@@ -13,3 +13,16 @@ or
``` ```
PYTHONPATH=. uwsgi --http :8443 --virtualenv ./runtime --master --wsgi-file bin/api.wsgi PYTHONPATH=. uwsgi --http :8443 --virtualenv ./runtime --master --wsgi-file bin/api.wsgi
``` ```
### Maintenance
#### Upgrading Python Packages
List outdated packages
```
pip list --local --outdated
```
Then review and decide what upgrades to make, if any.<br>
Changes to `requirements.txt` should always be a pull request.
...@@ -54,7 +54,7 @@ class RequestHandler(webapp2.RequestHandler): ...@@ -54,7 +54,7 @@ class RequestHandler(webapp2.RequestHandler):
log.debug('looked up remote token in %dms' % ((datetime.datetime.utcnow() - request_start).total_seconds() * 1000.)) log.debug('looked up remote token in %dms' % ((datetime.datetime.utcnow() - request_start).total_seconds() * 1000.))
# Set user's auth provider avatar # Set user's auth provider avatar
# TODO: after api starts reading toml config, switch on auth.provider rather than manually comparing endpoint URL. # TODO: switch on auth.provider rather than manually comparing endpoint URL.
if config.get_item('auth', 'id_endpoint') == 'https://www.googleapis.com/plus/v1/people/me/openIdConnect': if config.get_item('auth', 'id_endpoint') == 'https://www.googleapis.com/plus/v1/people/me/openIdConnect':
provider_avatar = identity.get('picture', '') provider_avatar = identity.get('picture', '')
# Remove attached size param from URL. # Remove attached size param from URL.
......
#!/bin/bash #!/usr/bin/env bash
( set -e
unset CDPATH
cd "$( dirname "${BASH_SOURCE[0]}" )/.." cd "$( dirname "${BASH_SOURCE[0]}" )/.."
pip install -r requirements.txt pip install -r requirements.txt
pip install -r dev.requirements.txt pip install -r requirements_dev.txt
)
...@@ -102,7 +102,7 @@ echo "Activating Virtualenv" ...@@ -102,7 +102,7 @@ echo "Activating Virtualenv"
source $SCITRAN_RUNTIME_PATH/bin/activate source $SCITRAN_RUNTIME_PATH/bin/activate
echo "Installing Python requirements" echo "Installing Python requirements"
pip install -U -r requirements.txt bin/install.sh
# Launch mongod # Launch mongod
......
# Production packages # Production packages
Markdown==2.6.5
WebOb==1.5.1
functools32==3.2.3-1
jsonschema==2.5.1 jsonschema==2.5.1
Markdown==2.6.5
pymongo==3.2 pymongo==3.2
pyOpenSSL==0.15.1
python-dateutil==2.4.2 python-dateutil==2.4.2
pytz==2015.4 pytz==2015.7
requests==2.7.0 requests==2.9.1
toml==0.9.1 rfc3987==1.3.4
webapp2==2.5.2 webapp2==2.5.2
nose==1.3.7 WebOb==1.5.1
PasteScript==2.0.2
pyOpenSSL==0.15.1
#Development packages # Development packages
pylint==1.5.1 coverage==4.0.3
coveralls==1.1
nose==1.3.7
PasteScript==2.0.2
pylint==1.5.3
pytest==2.8.5 pytest==2.8.5
pytest-cov==2.2.0 pytest-cov==2.2.0
pytest-watch==3.8.0 pytest-watch==3.8.0
coverage==4.0.3
coveralls==1.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment