-
Notifications
You must be signed in to change notification settings - Fork 0
Use best-practice pyproject.toml, and uv for managing dependencies #124
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
Changes from all commits
0080ea2
19f26d0
5a96faa
ad51c54
0b683a4
175cd86
7244caa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .venv | ||
| __pycache__ | ||
| *.pyc | ||
| .git* |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,21 @@ | ||
| services: | ||
| app: | ||
| image: python:3.14-slim | ||
| command: python -m mkdocs serve -a 0.0.0.0:8000 --watch-theme --livereload | ||
| entrypoint: /app/docker-entrypoint.sh | ||
| image: ghcr.io/astral-sh/uv:python3.14-trixie-slim | ||
| working_dir: /app | ||
| entrypoint: /app/docker-entrypoint.sh | ||
| command: uv run -- mkdocs serve -a 0.0.0.0:8000 --watch-theme --livereload | ||
|
Comment on lines
+3
to
+6
Contributor
Author
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'd like to do this in a separate PR. @mrbiggred comments?
Member
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. @normanlorrain was this addressed in PR #128 which installs all the dependencies in the requirements file and not just mkdocs? |
||
| ports: | ||
| - 8000:8000 | ||
| - "8000:8000" | ||
| volumes: | ||
| - .:/app | ||
| - pip-cache:/root/.cache/pip | ||
| - uv-cache:/root/.cache/uv | ||
| # Optional: protect .venv if you ever create one locally | ||
|
mrbiggred marked this conversation as resolved.
|
||
| - /app/.venv | ||
| environment: | ||
| - PYTHONUNBUFFERED=1 | ||
| - UV_LINK_MODE=copy # helps with bind mounts | ||
| stdin_open: true | ||
| tty: true | ||
|
|
||
| volumes: | ||
| pip-cache: | ||
| uv-cache: | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,9 @@ | ||
| #!/bin/bash | ||
| #!/bin/sh | ||
| set -e | ||
|
|
||
| pip install -r requirements.txt | ||
| uv sync --frozen --no-dev # or remove --no-dev if you want dev deps | ||
|
|
||
| # Optional: make sure mkdocs is in PATH | ||
| export PATH="/app/.venv/bin:$PATH" | ||
|
|
||
| exec "$@" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| [project] | ||
| name = "weeklydevchat-github-io" | ||
| version = "0.1.0" | ||
| requires-python = ">=3.14" | ||
| dependencies = [ | ||
| "mkdocs-material>=9.7.0", | ||
| "pygments~=2.20.0", | ||
| "urllib3>=2.7.0", | ||
| ] | ||
|
|
||
| # Dependencies are managed from this `pyproject.toml` with `uv`, not `requirements*.txt`. | ||
| # Install the project environment with `uv sync` and run tools/scripts with `uv run <command>`. | ||
| [dependency-groups] | ||
| dev = [ | ||
| "pillow>=12.2.0", | ||
| "PyYAML>=6.0.1" | ||
|
|
||
| # Add dev-only tools here when needed; they will be installed by `uv sync`. | ||
| ] |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.