Skip to content

Commit 6307b04

Browse files
committed
🐍 hatch to uv
1 parent 16237f5 commit 6307b04

File tree

6 files changed

+644
-119
lines changed

6 files changed

+644
-119
lines changed

.envrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
HATCH_ENV_ACTIVE=docs
2-
layout hatch
1+
export VIRTUAL_ENV=".venv"
2+
layout python
3+
uv sync

.github/workflows/docker.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ jobs:
1717
- linux/amd64
1818
- linux/arm64
1919
steps:
20-
- name: Set up Github Workspace
20+
- name: checkout
2121
uses: actions/checkout@v4
22-
- name: Setup Hatch
23-
uses: juftin/actions/hatch-setup@v1
24-
with:
25-
python_version: "3.12"
2622
- name: Get Version
2723
id: version
2824
run: echo ::set-output name=version::$(make version | sed 's/dotfiles v//')

.github/workflows/docs.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ jobs:
1313
name: github-pages
1414
url: ${{ steps.deployment.outputs.page_url }}
1515
steps:
16-
- name: Set up Github Workspace
16+
- name: checkout
1717
uses: actions/checkout@v4
18-
- name: Setup Hatch
19-
uses: juftin/actions/hatch-setup@v1
18+
- name: setup-uv
19+
uses: astral-sh/setup-uv@v6
2020
with:
2121
python_version: "3.12"
22-
- name: Build Docs
23-
uses: juftin/actions/hatch-docs@v1
22+
- name: install
23+
run: uv sync
24+
- name: build-docs
25+
run: uv run mkdocs build
2426
- name: Publish Docs
2527
uses: juftin/actions/github-pages@v1
2628
id: deployment

docs/requirements.txt

Lines changed: 0 additions & 94 deletions
This file was deleted.

pyproject.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
[build-system]
2-
build-backend = "hatchling.build"
3-
requires = ["hatchling"]
4-
51
[project]
62
name = "dotfiles"
73
version = "0.0.0"
4+
requires-python = ">=3.9,<4"
85

9-
[tool.hatch.env]
10-
requires = ["hatch-pip-compile", "hatch-mkdocs"]
11-
12-
[tool.hatch.env.collectors.mkdocs.docs]
13-
path = "mkdocs.yaml"
6+
[dependency-groups]
7+
docs = [
8+
"markdown-exec",
9+
"mkdocs",
10+
"mkdocs-callouts",
11+
"mkdocs-gen-files",
12+
"mkdocs-material",
13+
"mkdocs-section-index",
14+
"pymdown-extensions"
15+
]
1416

15-
[tool.hatch.envs.docs]
16-
detached = true
17-
type = "pip-compile"
18-
lock-filename = "docs/requirements.txt"
17+
[tool.uv]
18+
default-groups = ["docs"]

0 commit comments

Comments
 (0)