Adding helper functions for dependency management

master
Drew Bednar 1 year ago
parent 8a3117f964
commit af854f448b

@ -1,5 +1,6 @@
alembic
flask
pydantic
pydantic-settings
sqlalchemy
alembic>=1.12.0,<2.0
flask>=2.3.3,<3.0
flask-login>=0.6.2,<1.0
pydantic>=2.3.0,<3.0
pydantic-settings>=2.0.3,<3.0
sqlalchemy>=2.0.20<3.0

@ -13,6 +13,10 @@ blinker==1.6.2
click==8.1.7
# via flask
flask==2.3.3
# via
# -r requirements.in
# flask-login
flask-login==0.6.2
# via -r requirements.in
greenlet==2.0.2
# via sqlalchemy
@ -48,4 +52,6 @@ typing-extensions==4.7.1
# pydantic-core
# sqlalchemy
werkzeug==2.3.7
# via flask
# via
# flask
# flask-login

@ -4,6 +4,18 @@ from invoke import Failure
from invoke import task
@task
def update_deps(c):
"""Resolves production requirements."""
c.run("pip-compile requirements.in", pty=True)
@task
def install_deps(c):
"""Installs dev and production requirements."""
c.run("pip-sync requirements.txt dev-requirements.txt", pty=True)
@task
def serve_dev(c, debugger=True, reload=True, threads=True, port=8888, host="0.0.0.0"):
"""Serves the htmx_contact.app locally"""

Loading…
Cancel
Save