diff --git a/README.md b/README.md index 198a2605..d13a9a26 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,11 @@ Grab the build dependencies with: python3-dev build-essential \ node-less node-source-map -Install [install pip](https://pip.pypa.io/en/latest/installing/#get-pip), then install [Tox](http://tox.readthedocs.org/en/latest/). +[Install pip](https://pip.pypa.io/en/latest/installing/#get-pip), then install [Tox](http://tox.readthedocs.org/en/latest/). (I actually recommend installing this in your home directory, but that's outside the scope of this document.) +[Install Just](https://just.systems/man/en/), probaby via Cargo. + Check out the repository: $ git checkout https://github.com/twm/yarrharr.git diff --git a/justfile b/justfile index a6b36722..de729f74 100644 --- a/justfile +++ b/justfile @@ -1,25 +1,29 @@ # Copyright 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2022, 2023 Tom Most ; GPLv3+ -static: +set shell := ["bash", "-euc"] + +default: + just --list + +_static: tox -e static -release: static - set -e +release: _static + #!/usr/bin/env bash + set -exu -o pipefail git diff --quiet HEAD || exit 1 tox -e release --notest - version=$$(grep -oP '(?<=__version__ = ")([^"]+)(?=")' yarrharr/__init__.py) + version=$(grep -oP '(?<=__version__ = ")([^"]+)(?=")' yarrharr/__init__.py) .tox/release/bin/python -m build - .tox/release/bin/python -m twine check "dist/yarrharr-$${version}.tar.gz" "dist/yarrharr-$${version}-py3-none-any.whl" - git tag "v$${version}" + .tox/release/bin/python -m twine check "dist/yarrharr-${version}.tar.gz" "dist/yarrharr-${version}-py3-none-any.whl" + git tag "v${version}" -devserver: static - set -e +devserver: _static tox -e run -- django-admin migrate tox -e run -- django-admin updatehtml YARRHARR_CONF='yarrharr/tests/*.ini' tox -e run -- django-admin runserver 127.0.0.1:8888 -realserver: static - set -e +realserver: _static tox -e run -- django-admin migrate tox -e run -- django-admin collectstatic --noinput tox -e run -- yarrharr