Skip to content

Commit

Permalink
Do not require mysqlclient in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Sep 22, 2023
1 parent e684ce5 commit 2f0dc1e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_and_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2f0dc1e

Please sign in to comment.