Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ You will need some knowledge of git, github, and Python/Django development. Usin

This package uses [uv](https://github.com/astral-sh/uv) and [just](https://github.com/casey/just).

After installing both, check out this repository and type `just bootstrap` to bootstrap a development environment.
After installing both, check out this repository and type `just upgrade` to bootstrap a development environment.

```console
git clone git://github.com/zostera/django-bootstrap3.git
cd django-bootstrap3
just bootstrap
just upgrade
```

### Running the tests
Expand Down
24 changes: 8 additions & 16 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ set export := true
set dotenv-load := true

EXAMPLE_DIRNAME := "example"
VENV_DIRNAME := ".venv"
VERSION := `sed -n 's/^ *version.*=.*"\([^"]*\)".*/\1/p' pyproject.toml`

# default recipe
Expand All @@ -16,38 +15,31 @@ default:
exit 1; \
fi

# Set up development environment
@bootstrap: uv
if test ! -e {{ VENV_DIRNAME }}; then \
uv python install; \
fi
just update

# Install and/or update all dependencies defined in pyproject.toml
@update: uv
# Install and/or upgrade all dependencies defined in pyproject.toml
@upgrade: uv
uv sync --all-extras --all-groups --upgrade

# Format
@format: bootstrap
@format: upgrade
ruff format
ruff check --fix

# Lint
@lint: bootstrap
@lint: upgrade
ruff format --check
ruff check

# Test
@test: bootstrap
@test: upgrade
coverage run manage.py test
coverage report

# Test
@tests: bootstrap
@tests: upgrade
tox

# Build
@build: bootstrap
@build: upgrade
uv build
uvx twine check dist/*
uvx check-manifest
Expand Down Expand Up @@ -76,7 +68,7 @@ default:
exit 1; \
fi

@docs: bootstrap clean
@docs: upgrade clean
uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs docs/_build/html

@example:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
build-backend = "uv_build"
requires = ["uv_build>=0.9.2,<0.10.0"]
requires = ["uv_build>=0.9.6,<0.10.0"]

[project]
authors = [
Expand Down