Install repoplone#
This guide shows you how to run repoplone, pin the version a project uses, and run a development checkout.
repoplone needs Python 3.11 or later and uv. uv downloads a suitable Python when your system has none.
Run it with uvx#
Run repoplone without installing it.
uvx repoplone --version
uvx downloads the latest release into a cache and runs it. Run every command the same way, from anywhere inside the repository.
uvx repoplone versions current
Pin the version a project uses#
repoplone 2 is in alpha.
Its repository.toml specification can change between releases.
Pin the version in scripts and CI.
A new release of repoplone then cannot change a release you are about to cut.
uvx repoplone@2.0.0a2 versions current
In a Makefile, keep the version in one variable.
REPOPLONE_VERSION ?= 2.0.0a2
.PHONY: release
release: ## Release the repository
uvx repoplone@$(REPOPLONE_VERSION) release
In a GitHub Actions workflow, install uv first, then run uvx.
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Report versions
run: uvx repoplone@2.0.0a2 versions current
Add it to a project’s development dependencies#
A project that runs repoplone often can keep it in its own lockfile instead.
Add it to a development dependency group of the project’s pyproject.toml.
uv add --dev "repoplone>=2.0.0a2"
The version specifier matters while repoplone 2 is in alpha. Without it, uv picks the latest stable release, repoplone 1.
Then run it through the project’s environment.
uv run repoplone versions current
Run a development checkout#
To try an unreleased change, run repoplone from a local checkout.
uvx --no-cache --from /path/to/repoplone repoplone versions current
--no-cache makes uv build the checkout again.
Without it, uv reuses the build it made earlier from the same path while the version number has not changed, and runs the old code.
See also
Authenticate to PyPI, npm, and GitHub, before you publish a release.
Command line, for every command.