-
-
Notifications
You must be signed in to change notification settings - Fork 208
/
justfile
41 lines (28 loc) · 822 Bytes
/
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
41
# coverage related
cov := "--cov=alive_progress --cov-branch --cov-report=term-missing"
all:
@just --list
install:
pip install -r requirements/dev.txt -r requirements/test.txt -e .
clean: clean-build clean-pyc
clean-build:
rm -rf build dist alive_progress.egg-info
clean-pyc:
find . -type f -name *.pyc -delete
lint:
ruff check alive_progress --line-length 100
build: lint clean
python setup.py sdist bdist_wheel
release: build && tag
twine upload dist/*
tag:
#!/usr/bin/env zsh
tag=$(python -c 'import alive_progress; print("v" + alive_progress.__version__)')
git tag -a $tag -m "Details: https://github.com/rsalmei/alive-progress/blob/main/CHANGELOG.md"
git push origin $tag
test:
pytest {{ cov }}
ptw:
ptw -- {{ cov }}
cov-report:
coverage report -m