From e8ff92b0d24c385075ffb722981e84398868872e Mon Sep 17 00:00:00 2001 From: Jeff Triplett Date: Sun, 8 Dec 2024 08:58:50 -0600 Subject: [PATCH] :pencil: Adds better UV support --- .python-version | 1 + justfile | 12 ++++++------ pyproject.toml | 13 +++++++++++++ 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 .python-version create mode 100644 pyproject.toml diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..e4fba21 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/justfile b/justfile index de8e7a9..c1c10f1 100644 --- a/justfile +++ b/justfile @@ -6,17 +6,20 @@ @bootstrap: python -m pip install --upgrade pip uv - python -m uv pip install --upgrade --requirement requirements.in + python -m uv pip install --upgrade --requirement pyproject.toml @build: - just toc + just doctoc bundle exec jekyll build +@doctoc: + bunx doctoc README.md + @down: docker compose down @lint: - -uv tool run curlylint _layouts/ + -uv --quiet tool run curlylint _layouts/ -bunx awesome-lint README.md @serve: @@ -28,6 +31,3 @@ @up *ARGS: docker compose up {{ ARGS }} - -@toc: - bunx doctoc README.md diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..187e6e2 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,13 @@ +[project] +name = "awesome-django" +version = "0.1.0" +description = "A curated list of awesome things related to Django. Maintained by [Will Vincent](https://github.com/wsvincent) and [Jeff Triplett](https://github.com/jefftriplett)." +readme = "README.md" +requires-python = ">=3.12" +dependencies = [ + "mkdocs", + "mkdocs-material", + "requests", + "rich", + "typer", +]