-
Notifications
You must be signed in to change notification settings - Fork 1
chore: migrate from poetry to uv #180
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d5dc851
migrate from poetry to uv for dependency management
petercrocker febe34f
migrate from poetry to uv for dependency management
petercrocker 49651e6
Merge remote-tracking branch 'origin/pmc-20251225-updates' into pmc-2…
petercrocker db5e09e
spelling
petercrocker 3915761
remove duplicate dependencies
petercrocker 4dba230
pin uv versino
petercrocker 99e0ecf
Add Vale style exceptions for documentation headings and terms
petercrocker 279b821
Align repository with OpsMill standards
petercrocker 8e7963b
Fix mypy errors, schema loading, and markdownlint config
petercrocker 7bf3d77
Fix pylint broad-exception and markdownlint CI parity
petercrocker da108c5
Improve markdownlint config and fix documentation formatting
petercrocker c512819
update markdownignore
petercrocker 79dbefa
Fix markdownlint and ruff format CI failures
petercrocker 80506f8
Fix MDX build error in troubleshooting.mdx
petercrocker a6a23ae
Simplify Vale style exceptions and fix documentation links
petercrocker 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -167,6 +167,7 @@ userinfo | |
| uuid | ||
| UUID | ||
| UUIDs | ||
| uv | ||
| validator | ||
| validators | ||
| Version Control | ||
|
|
||
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,35 +1,31 @@ | ||
| # TODO: Make python version an arg | ||
| FROM docker.io/python:3.12-slim | ||
|
|
||
| # Env variable for the build | ||
| # TODO: Review that part (e.g. poetry version ...) | ||
| ENV POETRY_NO_INTERACTION=1 \ | ||
| POETRY_CACHE_DIR=/tmp/poetry_cache \ | ||
| POETRY_VIRTUALENVS_CREATE=false \ | ||
| POETRY_HOME='/usr/local' \ | ||
| POETRY_VERSION=1.8.3 | ||
| # Install uv | ||
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv | ||
|
|
||
| # Env variables for the build | ||
| ENV UV_COMPILE_BYTECODE=1 | ||
| ENV UV_LINK_MODE=copy | ||
|
|
||
| # Install libraries and packages | ||
| RUN apt-get update && \ | ||
| apt-get upgrade -y && \ | ||
| apt-get install --no-install-recommends -y curl git pkg-config build-essential ca-certificates && \ | ||
| curl -sSL https://install.python-poetry.org | python3 - &&\ | ||
| apt-get autoremove -y && \ | ||
| apt-get clean all && \ | ||
| rm -rf /var/lib/apt/lists/* && \ | ||
| pip --no-cache-dir install --no-compile --upgrade pip wheel | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Copy lock and install all dependancies | ||
| # Copy lock and install all dependencies | ||
| WORKDIR /source | ||
| COPY poetry.lock pyproject.toml /source/ | ||
| RUN poetry install --no-ansi --no-root --no-directory --without dev && \ | ||
| rm -rf $POETRY_CACHE_DIR | ||
| COPY pyproject.toml uv.lock ./ | ||
| RUN uv sync --frozen --no-dev --no-install-project | ||
|
|
||
| # Copy application and install it | ||
| COPY . ./ | ||
| RUN poetry install --no-ansi --no-directory --without dev | ||
| RUN uv sync --frozen --no-dev | ||
|
|
||
| # Run streamlite app | ||
| # Run streamlit app | ||
| EXPOSE 8501 | ||
| HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health | ||
| ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"] | ||
| ENTRYPOINT ["uv", "run", "streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"] |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.