I just moved the git repo of this blog from an old conda+pip based setup to using uv
. On Mac, start by
brew install uv
Then, I initialized the uv project and just imported the dependencies specified in the requirements.txt
file.
uv init --python 3.13
uv add --requirements requirements.txt
And that is basically it. From now on, to run pelican commands, just prefix them with uv run
, e.g.,
uv run pelican content
The transition was smooth and fast. Highly recommended!