-
Notifications
You must be signed in to change notification settings - Fork 171
Updates UI: removes elkjs, updates backend deps #1403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
skrawcz
wants to merge
5
commits into
main
Choose a base branch
from
stefan/remove_elkjs_update_backend
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
cb2cba7
Removes reference to contrib -- that will go in contrib LICENSE file
skrawcz 04d467a
Adds license header to template files
skrawcz 5921124
Removes elkjs and adds dagre
skrawcz 23b955d
Updates backend to use UV and updates to use 3.9
skrawcz 942ed94
Makes backend-prod also use UV and locked file
skrawcz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,24 @@ | ||
| FROM python:3.8-slim | ||
| FROM python:3.9-slim | ||
|
|
||
| ENV PYTHONDONTWRITEBYTECODE 1 | ||
| ENV PYTHONUNBUFFERED 1 | ||
|
|
||
| WORKDIR /code | ||
|
|
||
| # Install system dependencies | ||
| # Install system dependencies and uv | ||
| RUN apt-get update && apt-get install -y \ | ||
| gcc \ | ||
| libc-dev \ | ||
| libffi-dev \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
| curl \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && curl -LsSf https://astral.sh/uv/install.sh | sh | ||
|
|
||
| ENV PATH="/root/.local/bin:$PATH" | ||
|
|
||
| COPY . /code/ | ||
| COPY server/requirements.txt /code/ | ||
| COPY server/requirements-locked.txt /code/ | ||
|
|
||
| RUN pip install -r /code/requirements.txt | ||
| RUN uv pip install --system -r /code/requirements-locked.txt | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see that I have a few questions:
|
||
|
|
||
| COPY . /code/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| [project] | ||
| name = "hamilton-ui-backend" | ||
| version = "0.1.0" | ||
| description = "Hamilton UI Backend Server" | ||
| requires-python = ">=3.9" | ||
| dependencies = [ | ||
| "aioboto3", | ||
| "aiobotocore", | ||
| "aiofiles", | ||
| "aiohttp", | ||
| "colorlog", | ||
| "ddtrace", | ||
| "django", | ||
| "django-extensions", | ||
| "django-ninja>=1.1.0", | ||
| "passlib", | ||
| "propelauth-py", | ||
| "psycopg2-binary", | ||
| "pydantic", | ||
| "sf-hamilton", | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| test = [ | ||
| "pytest", | ||
| ] | ||
|
|
||
| [build-system] | ||
| requires = ["hatchling"] | ||
| build-backend = "hatchling.build" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,205 @@ | ||
| # This file was autogenerated by uv via the following command: | ||
| # uv export --no-hashes --no-emit-package hamilton-ui-backend | ||
| aioboto3==15.2.0 | ||
| # via hamilton-ui-backend | ||
| aiobotocore==2.24.2 | ||
| # via | ||
| # aioboto3 | ||
| # hamilton-ui-backend | ||
| aiofiles==24.1.0 | ||
| # via | ||
| # aioboto3 | ||
| # hamilton-ui-backend | ||
| aiohappyeyeballs==2.6.1 | ||
| # via aiohttp | ||
| aiohttp==3.12.15 | ||
| # via | ||
| # aiobotocore | ||
| # hamilton-ui-backend | ||
| aioitertools==0.12.0 | ||
| # via aiobotocore | ||
| aiosignal==1.4.0 | ||
| # via aiohttp | ||
| annotated-types==0.7.0 | ||
| # via pydantic | ||
| anyio==4.11.0 | ||
| # via httpx | ||
| asgiref==3.10.0 | ||
| # via django | ||
| async-timeout==5.0.1 ; python_full_version < '3.11' | ||
| # via aiohttp | ||
| attrs==25.3.0 | ||
| # via aiohttp | ||
| boto3==1.40.18 | ||
| # via aiobotocore | ||
| botocore==1.40.18 | ||
| # via | ||
| # aiobotocore | ||
| # boto3 | ||
| # s3transfer | ||
| bytecode==0.17.0 | ||
| # via ddtrace | ||
| certifi==2025.10.5 | ||
| # via | ||
| # httpcore | ||
| # httpx | ||
| # requests | ||
| cffi==2.0.0 ; platform_python_implementation != 'PyPy' | ||
| # via cryptography | ||
| charset-normalizer==3.4.3 | ||
| # via requests | ||
| colorama==0.4.6 ; sys_platform == 'win32' | ||
| # via colorlog | ||
| colorlog==6.9.0 | ||
| # via hamilton-ui-backend | ||
| cryptography==46.0.2 | ||
| # via pyjwt | ||
| ddtrace==3.15.0 | ||
| # via hamilton-ui-backend | ||
| django==4.2.25 ; python_full_version < '3.10' | ||
| # via | ||
| # django-extensions | ||
| # django-ninja | ||
| # hamilton-ui-backend | ||
| django==5.2.7 ; python_full_version >= '3.10' | ||
| # via | ||
| # django-extensions | ||
| # django-ninja | ||
| # hamilton-ui-backend | ||
| django-extensions==4.1 | ||
| # via hamilton-ui-backend | ||
| django-ninja==1.4.3 | ||
| # via hamilton-ui-backend | ||
| envier==0.6.1 | ||
| # via ddtrace | ||
| exceptiongroup==1.3.0 ; python_full_version < '3.11' | ||
| # via anyio | ||
| frozenlist==1.7.0 | ||
| # via | ||
| # aiohttp | ||
| # aiosignal | ||
| h11==0.16.0 | ||
| # via httpcore | ||
| httpcore==1.0.9 | ||
| # via httpx | ||
| httpx==0.28.1 | ||
| # via propelauth-py | ||
| idna==3.10 | ||
| # via | ||
| # anyio | ||
| # httpx | ||
| # requests | ||
| # yarl | ||
| importlib-metadata==8.7.0 | ||
| # via opentelemetry-api | ||
| jmespath==1.0.1 | ||
| # via | ||
| # aiobotocore | ||
| # boto3 | ||
| # botocore | ||
| legacy-cgi==2.6.3 ; python_full_version >= '3.13' | ||
| # via ddtrace | ||
| multidict==6.6.4 | ||
| # via | ||
| # aiobotocore | ||
| # aiohttp | ||
| # yarl | ||
| mypy-extensions==1.1.0 | ||
| # via typing-inspect | ||
| numpy==2.0.2 ; python_full_version < '3.10' | ||
| # via | ||
| # pandas | ||
| # sf-hamilton | ||
| numpy==2.2.6 ; python_full_version == '3.10.*' | ||
| # via | ||
| # pandas | ||
| # sf-hamilton | ||
| numpy==2.3.3 ; python_full_version >= '3.11' | ||
| # via | ||
| # pandas | ||
| # sf-hamilton | ||
| opentelemetry-api==1.37.0 | ||
| # via ddtrace | ||
| pandas==2.3.3 | ||
| # via sf-hamilton | ||
| passlib==1.7.4 | ||
| # via hamilton-ui-backend | ||
| propcache==0.4.0 | ||
| # via | ||
| # aiohttp | ||
| # yarl | ||
| propelauth-py==4.2.8 | ||
| # via hamilton-ui-backend | ||
| protobuf==6.32.1 | ||
| # via ddtrace | ||
| psycopg2-binary==2.9.10 | ||
| # via hamilton-ui-backend | ||
| pycparser==2.23 ; implementation_name != 'PyPy' and platform_python_implementation != 'PyPy' | ||
| # via cffi | ||
| pydantic==2.11.10 | ||
| # via | ||
| # django-ninja | ||
| # hamilton-ui-backend | ||
| pydantic-core==2.33.2 | ||
| # via pydantic | ||
| pyjwt==2.10.1 | ||
| # via propelauth-py | ||
| python-dateutil==2.9.0.post0 | ||
| # via | ||
| # aiobotocore | ||
| # botocore | ||
| # pandas | ||
| pytz==2025.2 | ||
| # via pandas | ||
| requests==2.32.5 | ||
| # via propelauth-py | ||
| s3transfer==0.13.1 | ||
| # via boto3 | ||
| sf-hamilton==1.88.0 | ||
| # via hamilton-ui-backend | ||
| six==1.17.0 | ||
| # via python-dateutil | ||
| sniffio==1.3.1 | ||
| # via anyio | ||
| sqlparse==0.5.3 | ||
| # via django | ||
| typing-extensions==4.15.0 | ||
| # via | ||
| # aioitertools | ||
| # aiosignal | ||
| # anyio | ||
| # asgiref | ||
| # bytecode | ||
| # cryptography | ||
| # exceptiongroup | ||
| # multidict | ||
| # opentelemetry-api | ||
| # pydantic | ||
| # pydantic-core | ||
| # sf-hamilton | ||
| # typing-inspect | ||
| # typing-inspection | ||
| typing-inspect==0.9.0 | ||
| # via sf-hamilton | ||
| typing-inspection==0.4.2 | ||
| # via pydantic | ||
| tzdata==2025.2 | ||
| # via | ||
| # django | ||
| # pandas | ||
| urllib3==1.26.20 ; python_full_version < '3.10' | ||
| # via | ||
| # botocore | ||
| # requests | ||
| urllib3==2.5.0 ; python_full_version >= '3.10' | ||
| # via | ||
| # botocore | ||
| # requests | ||
| wrapt==1.17.3 | ||
| # via | ||
| # aiobotocore | ||
| # ddtrace | ||
| yarl==1.20.1 | ||
| # via aiohttp | ||
| zipp==3.23.0 | ||
| # via importlib-metadata |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference, there are ways to optimize the Docker build process such that it uses the host's local
uvcache when building Python dependencies inside the container. This can lead to significant speed improvement in devexample: https://github.com/astral-sh/uv-docker-example/blob/main/multistage.Dockerfile