Skip to content

Commit 2dc83bc

Browse files
committed
Switch to uv
Also switch to just, modd, and devd
1 parent 856913f commit 2dc83bc

File tree

9 files changed

+252
-340
lines changed

9 files changed

+252
-340
lines changed

Makefile

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

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,44 @@
33

44
This is the source repo for [SoCalPython.org], the official SoCal Python website. 🐍
55

6-
It's built using [corvid] and below instructions rely on [Poetry].
6+
It's built using [corvid] and below instructions rely on [just], [uv], [modd], and [devd].
77

88

99
## Setup
1010

11-
1. Install [Poetry]
12-
2. Run `poetry install`
11+
1. Install [just], [uv], [modd], and [devd]
12+
2. Run `uv sync`
1313

1414

1515
## Developing
1616

17-
1. Run `make serve` in a terminal window continuously
18-
2. Go to [http://localhost:8765]
17+
You can run `just --list` to see all available options. Anything requiring uv should be run “inside” it, e.g., `uv run just dev`. You can run all commands like so if you don’t want to have to actively think about it.
18+
19+
1. Run `uv run just dev` to start the automa-build-and-serve process
20+
2. Go to [http://localhost:8000]
1921
3. Make changes
20-
4. Run `make build` in another terminal window
21-
5. Refresh to see changes
22-
6. Repeat steps 3, 4, and 5 as needed
22+
4. Refresh to see changes
23+
5. Repeat steps 3 and 4 as needed
2324

2425

2526
## Infrastructure
2627

27-
The site is deployed on [Netlify] from the `main` branch of this repository.
28-
The domain is registered by [@nkantar] through [Hover], and SSL is provided by [Let's Encrypt].
28+
The site is deployed on [Netlify] from the `main` branch of this repository. The domain is registered by [@nkantar] through [Porkbun], and SSL is provided by [Let's Encrypt].
2929

3030

3131
## Code of Conduct
3232

33-
The SoCal Python community has a [Code of Conduct], which covers contributing to this codebase as well as participating in the community in any way.
34-
Doing so implies you agree to abide by its terms.
33+
The SoCal Python community has a [Code of Conduct], which covers contributing to this codebase as well as participating in the community in any way. Doing so implies you agree to abide by its terms.
3534

3635

3736
[SoCalPython.org]: https://socalpython.org/ "SoCalPython.org | The official site of the Los Angeles Python programming language community."
3837
[corvid]: https://github.com/di/corvid/ "GitHub - di/corvid: An opinionated simple static site generator"
39-
[Poetry]: https://python-poetry.org/ "Poetry - Python dependency management and packaging made easy"
40-
[http://localhost:8765]: http://localhost:8765
38+
[just]: https://github.com/casey/just "casey/just: 🤖 Just a command runner"
39+
[modd]: https://github.com/cortesi/modd "cortesi/modd: A flexible developer tool that runs processes and responds to filesystem changes"
40+
[devd]: https://github.com/cortesi/devd "cortesi/devd: A local webserver for developers"
41+
[http://localhost:8000]: http://localhost:8000
4142
[Netlify]: https://netlify.com "Netlify: Develop & deploy the best web experiences in record time"
4243
[@nkantar]: https://github.com/nkantar "nkantar (Nik Kantar) · GitHub"
43-
[Hover]: https://hover.com "Domain Names | Buy Domains & Email At Hover.com"
44+
[Porkbun]: https://porkbun.com/ "porkbun.com | An oddly satisfying experience."
4445
[Let's Encrypt]: https://letsencrypt.org/ " Let's Encrypt"
4546
[Code of Conduct]: https://socalpython.org/conduct/ "SoCalPython.org | Code of Conduct"

justfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# run dev modd config (requires uv and modd)
2+
dev:
3+
modd
4+
5+
# build HTML with corvid (requires uv)
6+
html:
7+
corvid
8+
9+
# compile CSS from Sass (requires uv)
10+
css:
11+
pysass input/assets/style/style.scss output/assets/style/style.css
12+
13+
# build site in output/ (requires uv)
14+
build:
15+
just html && just css
16+
17+
# clean output/
18+
clean:
19+
rm -r output/
20+
21+
# generate fresh site (clean + build) (requires uv)
22+
fresh:
23+
just clean && just build
24+
25+
# serve site from output via devd (requires devd)
26+
serve:
27+
devd output/

modd.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
input/**/* templates/**/* {
2+
prep: just fresh
3+
daemon: just serve
4+
}

netlify.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[build]
22
publish = "output/"
3-
command = "make netlify"
4-
environment = { PYTHON_VERSION = "3.8" }
3+
command = "bash scripts/netlify_deploy.sh"
4+
environment = { PYTHON_VERSION = "3.13" }

0 commit comments

Comments
 (0)