diff --git a/.github/workflows/test_and_deploy.yaml b/.github/workflows/test_and_deploy.yaml index 87c40c6e..fbab4ac9 100644 --- a/.github/workflows/test_and_deploy.yaml +++ b/.github/workflows/test_and_deploy.yaml @@ -27,7 +27,7 @@ jobs: path: .venv key: venv-${{ hashFiles('poetry.lock') }} - - run: poetry install --no-interaction --no-root + - run: poetry install --with prod --no-interaction --no-root - name: Run formatting check run: poetry run black . --check @@ -67,7 +67,7 @@ jobs: path: .venv key: venv-${{ hashFiles('poetry.lock') }} - - run: poetry install --no-interaction --no-root + - run: poetry install --with prod --no-interaction --no-root - name: Unseal secrets uses: jrmcdonald/blackbox-github-actions@v0.2.0 diff --git a/fabfile.py b/fabfile.py index 99f3ce4e..84dfdb88 100644 --- a/fabfile.py +++ b/fabfile.py @@ -103,7 +103,7 @@ def update(c: Connection): print("-- Skipping decrypting secrets") print("-- Updating dependencies") - c.run("poetry install") + c.run("poetry install --with prod") # Can't figure out how to properly set an env var with fabric # so leaving them at the starts of the commands for now diff --git a/poetry.lock b/poetry.lock index d285e0d2..f7dfe39d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1257,4 +1257,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "~3.9" -content-hash = "67ddc6676c18af14bbea8d1f29c89694a6470a689f12e402302591da81f71ec5" +content-hash = "97fc202265ce2631e4dfff957dbf0e5bb325823aa9d44aa8561c912c4ffbd415" diff --git a/pyproject.toml b/pyproject.toml index fdee1ef4..1fe9d715 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,10 @@ django-autocomplete-light = "^3.9.7" djangorestframework = "^3.14.0" google-api-python-client = "^2.99.0" +[tool.poetry.group.prod] +optional = true + +[tool.poetry.group.prod.dependencies] # These two are specifically pinned on older versions to avoid OCF issues mysqlclient = "~2.1.0" urllib3 = "~1.26.6"