-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
32 lines (27 loc) · 1.06 KB
/
justfile
File metadata and controls
32 lines (27 loc) · 1.06 KB
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
set export
export VIRTUAL_ENV := justfile_directory() + "/build/venv"
export PATH := justfile_directory() + "/build/venv/bin:" + env('PATH')
all: test docs build
test:
@just mkenv 'test' 'clg>=3.3 PyYAML>=6.0.2 pytest>=8.2.2 pytest-cov>=6.2.1 pytest-ruff>=0.5'
pytest
coverage html
@rm -rf build/venv .ruff_cache .pytest_cache .coverage birds.yml libpath.cfg
docs:
@just mkenv 'docs' 'clg>=3.3 PyYAML>=6.0.2 mkdocs>=1.6.1 mkdocs-codeinclude-plugin>=0.2.1'
@rm -rf build/site
mkdocs build
@rm -rf build/venv
build:
@just mkenv 'build' 'twine'
@rm -rf build/wheel
pip wheel -w build/wheel .
twine check --strict build/wheel/loadconfig*
python -c "from tomllib import load; c=load(open('ChangeLog','rb')); v=next(iter(c)); print(c[v]['notes'])" > build/notes.md
@rm -rf build/venv build/lib build/bdist.linux-aarch64 build/scripts-3.12 loadconfig.egg-info
mkenv name wheels:
@echo -e '\n'
@rm -rf build/venv
echo "Building $name"
python -m venv build/venv
[ "$wheels" != "" ] && pip install $wheels || true