diff --git a/README.md b/README.md index 92f83e1..c284edd 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,22 @@ Built with Flask, Python 3.6, with Postgres and Google OAuth. ## Local development +## Prereq (Mac/M1) + +Must install the Postgres development libraries in order to properly build a +Virtual Environment for Python with Pyscopg2: + +```bash +% brew install postgresql + +==> Downloading https://formulae.brew.sh/api/formula.jws.json +... +% make venv +... +``` + +## Database Setup + Uses docker. Run `make db` to initialize the database first. diff --git a/resources/requirements.txt b/resources/requirements.txt index 0d286c2..5d10b02 100644 --- a/resources/requirements.txt +++ b/resources/requirements.txt @@ -1,29 +1,29 @@ boto3==1.35.45 botocore==1.35.45 certifi==2024.8.30 -chardet==3.0.4 -click==6.7 +chardet==5.2.0 +click==8.1.7 docutils==0.21.2 -Flask==1.1.2 -Flask-SQLAlchemy==2.5.1 -google-api-python-client==1.12.11 +Flask==2.2.5 +Flask-SQLAlchemy==3.1.1 +google-api-python-client==2.149.0 httplib2==0.22.0 idna==3.10 -itsdangerous==0.24 -Jinja2==2.11.3 -jmespath==0.10.0 -MarkupSafe==1.1.1 +itsdangerous==2.2.0 +Jinja2==3.1.4 +jmespath==1.0.1 +MarkupSafe==3.0.2 oauth2client==4.1.3 psycopg2==2.9.10 pyasn1==0.6.1 pyasn1-modules==0.4.1 -pyparsing==2.4.7 +pyparsing==3.2.0 python-dateutil==2.9.0.post0 requests==2.32.3 rsa==4.9 s3transfer==0.10.3 six==1.16.0 -SQLAlchemy==1.4.54 -uritemplate==3.0.1 -urllib3==1.26.20 -Werkzeug==0.15.3 +SQLAlchemy==2.0.36 +uritemplate==4.1.1 +urllib3==2.2.3 +Werkzeug==3.0.3 diff --git a/src/app.py b/src/app.py index 26c1040..8d92544 100644 --- a/src/app.py +++ b/src/app.py @@ -1,7 +1,7 @@ import os from flask import Flask, g -from werkzeug.contrib.fixers import ProxyFix +from werkzeug.middleware.proxy_fix import ProxyFix from werkzeug.routing import BaseConverter import auth @@ -63,6 +63,5 @@ def __init__(self, url_map, *items): db.init_app(app) if __name__ == "__main__": - db.init_app(app) auth.init_app(app) app.run()