-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
40 lines (31 loc) · 1.08 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2022, 2023 Tom Most <twm@freecog.net>; GPLv3+
set shell := ["bash", "-euc"]
default:
just --list
_static:
tox -e static
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)
.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}"
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
tox -e run -- django-admin migrate
tox -e run -- django-admin collectstatic --noinput
tox -e run -- yarrharr
poll-feeds:
tox -e run -- django-admin pollfeeds
force-poll:
tox -e run -- django-admin forcepoll
clean:
-rm -rf yarrharr/static
-rm -rf .tox
-find -name '*.pyc' -delete