Skip to content

Commit bfdd51f

Browse files
committed
Upgrade python + dependencies and switch to UV
1 parent 9b50d19 commit bfdd51f

File tree

12 files changed

+40
-679
lines changed

12 files changed

+40
-679
lines changed

.github/workflows/ci_cd.yml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,21 @@ on:
77

88
jobs:
99
build:
10-
env:
11-
PYVER: "3.10"
1210

13-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
1412

1513
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-python@v1
18-
with:
19-
python-version: ${{ env.PYVER }}
20-
- uses: pdm-project/setup-pdm@main
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-python@v6
2116
with:
22-
python-version: ${{ env.PYVER }}
23-
- uses: actions/cache@v1
17+
python-version-file: "pyproject.toml"
18+
19+
- uses: astral-sh/setup-uv@v6
2420
with:
25-
path: ~/.cache/pip
26-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
27-
restore-keys: |
28-
${{ runner.os }}-pip-
21+
enable-cache: true
2922

3023
- name: Install dependencies
31-
run: pdm sync
24+
run: uv sync --locked
3225

3326
- name: CLI docs
3427
run: |
@@ -40,13 +33,13 @@ jobs:
4033
./apppack docgen --directory src/command-line-reference
4134
- name: Build
4235
run: APPPACK_VERSION=$(./apppack version) make build
43-
- uses: actions/upload-artifact@v2
36+
- uses: actions/upload-artifact@v5
4437
with:
4538
path: public
4639
retention-days: 3
4740
deploy:
4841
needs: [build]
49-
runs-on: ubuntu-20.04
42+
runs-on: ubuntu-24.04
5043
if: github.ref == 'refs/heads/deploy/prod'
5144
environment: production
5245
env:
@@ -56,10 +49,10 @@ jobs:
5649
contents: read
5750
id-token: write
5851
steps:
59-
- uses: actions/checkout@v2
60-
- uses: actions/download-artifact@v2
52+
- uses: actions/checkout@v5
53+
- uses: actions/download-artifact@v5
6154
- name: Configure AWS Credentials
62-
uses: aws-actions/configure-aws-credentials@master
55+
uses: aws-actions/configure-aws-credentials@v5
6356
with:
6457
role-to-assume: ${{ env.AWS_ROLE_ARN }}
6558
aws-region: ${{ env.AWS_DEFAULT_REGION }}

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: build
22
build:
3-
SITE_URL=https://docs.apppack.io/ pdm run mkdocs build
3+
SITE_URL=https://docs.apppack.io/ uv run mkdocs build
44

55
.PHONY: deploy
66
deploy:
@@ -11,3 +11,11 @@ deploy:
1111
.PHONY: clean
1212
clean:
1313
rm -rf ./public/*
14+
15+
.PHONY: cli-docs
16+
cli-docs:
17+
apppack docgen --directory src/command-line-reference
18+
19+
.PHONY: run
20+
run:
21+
uv run mkdocs serve

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
To build locally, you'll need:
44

5-
* Python 3.9
6-
* [PDM](https://pdm.fming.dev/#installation)
5+
* Python 3.14
6+
* [`uv`](https://docs.astral.sh/uv/getting-started/installation/)
77

88
Run:
99

1010
```shell
11-
pdm sync
12-
pdm run mkdocs serve
11+
uv sync
12+
make run
1313
```
1414

1515
## Deployment

mkdocs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ markdown_extensions:
1313
- pymdownx.tabbed:
1414
alternate_style: true
1515
- pymdownx.emoji:
16-
emoji_index: !!python/name:materialx.emoji.twemoji
17-
emoji_generator: !!python/name:materialx.emoji.to_svg
16+
emoji_index: !!python/name:material.extensions.emoji.twemoji
17+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
1818
- tables
1919
plugins:
2020
- search
@@ -25,6 +25,8 @@ repo_url: https://github.com/apppackio/apppack-docs/
2525
edit_uri: edit/main/src/
2626
extra_css:
2727
- stylesheets/extra.css
28+
exclude_docs: |
29+
_navigation.md
2830
theme:
2931
name: material
3032
custom_dir: theme_overrides
@@ -34,3 +36,6 @@ theme:
3436
favicon: assets/favicon.ico
3537
icon:
3638
repo: fontawesome/brands/github
39+
validation:
40+
links:
41+
absolute_links: relative_to_docs

0 commit comments

Comments
 (0)