Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Entity Relationship Diagrams #560

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ jobs:
python-version: 3.11
cache: 'poetry'
- name: Install Python dependencies
run: poetry install
run: |
sudo apt-get install --yes --quiet --no-install-recommends graphviz libgraphviz-dev
poetry install
- name: System checks
run: poetry run ./manage.py check
- name: Check for missing migrations
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ ENV PATH=$VIRTUAL_ENV/bin:$PATH \
ARG BUILD_ENV
ENV BUILD_ENV=${BUILD_ENV}

# install graphviz only in dev environment
RUN if [ "$BUILD_ENV" = "dev" ] ; then \
apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-recommends \
graphviz libgraphviz-dev \
&& apt-get autoremove && rm -rf /var/lib/apt/lists/* ; \
fi

# Port exposed by this container. Should default to the port used by your WSGI
# server (Gunicorn). This is read by Dokku only. Heroku will ignore this.
Expand Down
46 changes: 42 additions & 4 deletions poetry.lock

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

7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ python = "^3.11"
Django = "~4.2"
wagtail = "~5.2"
psycopg2 = "^2.9.3"
gunicorn = {version = "^20.1.0", optional = true}
gunicorn = { version = "^20.1.0", optional = true }
django-pattern-library = "^1.1.0"
whitenoise = "^6.1.0"
dj-database-url = "^0.5.0"
Expand Down Expand Up @@ -37,11 +37,14 @@ gunicorn = ["gunicorn"]
[tool.poetry.dev-dependencies]
Werkzeug = "^2.1.2"
django-debug-toolbar = "^4.1.0"
django-extensions = "^3.2.1"
django-extensions = "^3.2.3"
fabric = "~2.5"
stellar = "^0.4.5"
pudb = "^2020.1"
honcho = "^1.1.0"
pygraphviz = "^1.11"
pyparsing = "^3.1.1"
pydot = "^1.4.2"

# Linters etc.
black = "^22.3.0"
Expand Down
2 changes: 2 additions & 0 deletions tbx/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"SHOW_COLLAPSED": True,
}

INSTALLED_APPS += ["django_extensions"] # noqa

try:
from .local import * # noqa
except ImportError:
Expand Down