-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
46 lines (38 loc) · 1.5 KB
/
Makefile
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
42
43
44
45
46
.PHONY: pin release
lint:
ruff check src/fowl
pin:
pip-compile --upgrade --allow-unsafe --generate-hashes --resolver=backtracking --output-file requirements-pinned.txt
git add -u
git commit -m "upgrade pins"
utest:
python -m pytest --cov= --cov-report= -sv -x src/fowl/test
cuv graph
test:
coverage erase
coverage run --source src/fowl --parallel -m pytest -x --disable-warnings -sv src/fowl
coverage run --source src/fowl --parallel -m pytest -x -v integration/
coverage combine --append
cuv graph
#release: pin
release:
python update-version.py
hatch version `git tag --sort -v:refname | head -1`
git add -u
git commit -m "update version"
hatchling build
twine check dist/fowl-`git describe --abbrev=0`-py3-none-any.whl
twine check dist/fowl-`git describe --abbrev=0`.tar.gz
gpg --pinentry=loopback -u meejah@meejah.ca --armor --detach-sign dist/fowl-`git describe --abbrev=0`-py3-none-any.whl
gpg --pinentry=loopback -u meejah@meejah.ca --armor --detach-sign dist/fowl-`git describe --abbrev=0`.tar.gz
undo-release:
-ls dist/fowl-`git describe --abbrev=0`*
-rm dist/fowl-`git describe --abbrev=0`*
git tag -d `git describe --abbrev=0`
release-upload:
@ls dist/fowl-`git describe --abbrev=0`*
twine upload --username __token__ --password `cat PRIVATE-release-token` dist/fowl-`git describe --abbrev=0`*
git push github `git describe --abbrev=0`
wg.png: wizard-garden-app-interaction.seq
# pip install seqdiag 'pillow<10'
seqdiag -T png --no-transparency -o wg.png wizard-garden-app-interaction.seq