Skip to content

Commit

Permalink
Merge pull request #1115 from twm/juuuuuuuuust
Browse files Browse the repository at this point in the history
More Juuuuuuuuuuust
  • Loading branch information
twm authored Dec 4, 2023
2 parents 5fbfd1b + 83b734c commit 376f2c7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 14 additions & 10 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
# Copyright 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2022, 2023 Tom Most <[email protected]>; 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
Expand Down

0 comments on commit 376f2c7

Please sign in to comment.