2024-03-29 11:32:48 +00:00
|
|
|
PACKAGEVERSION := $(shell ./print-package-version)
|
2024-03-01 16:00:46 +00:00
|
|
|
|
2019-06-23 12:15:36 +00:00
|
|
|
all:
|
2018-11-20 19:45:27 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf htmlcov
|
|
|
|
find . -iname __pycache__ -o -iname '*.pyc' | xargs rm -rf
|
|
|
|
rm -f .coverage
|
2019-06-23 12:15:36 +00:00
|
|
|
rm -rf *.egg-info build dist
|
2018-11-20 19:45:27 +00:00
|
|
|
|
2023-02-10 15:46:46 +00:00
|
|
|
tag:
|
2024-03-01 16:00:46 +00:00
|
|
|
git tag v$(PACKAGEVERSION)
|
2023-02-10 15:46:46 +00:00
|
|
|
|
2024-03-01 16:00:46 +00:00
|
|
|
publish: clean build
|
2018-11-20 19:45:27 +00:00
|
|
|
twine upload dist/*
|
|
|
|
|
2024-03-29 11:32:48 +00:00
|
|
|
build: build-only
|
|
|
|
|
|
|
|
build-only: dist/syndicate-py-$(PACKAGEVERSION).tar.gz
|
2024-03-01 16:00:46 +00:00
|
|
|
|
|
|
|
dist/syndicate-py-$(PACKAGEVERSION).tar.gz:
|
|
|
|
python3 -m build
|
2019-06-23 12:15:36 +00:00
|
|
|
|
2018-11-20 19:45:27 +00:00
|
|
|
veryclean: clean
|
2024-03-01 16:00:46 +00:00
|
|
|
rm -rf .venv
|
2021-11-30 17:45:49 +00:00
|
|
|
|
2023-02-08 18:39:30 +00:00
|
|
|
PROTOCOLS_BRANCH=main
|
2021-11-30 17:45:49 +00:00
|
|
|
pull-protocols:
|
|
|
|
git subtree pull -P syndicate/protocols \
|
|
|
|
-m 'Merge latest changes from the syndicate-protocols repository' \
|
|
|
|
git@git.syndicate-lang.org:syndicate-lang/syndicate-protocols \
|
2023-02-08 18:39:30 +00:00
|
|
|
$(PROTOCOLS_BRANCH)
|
2023-02-04 15:27:31 +00:00
|
|
|
|
|
|
|
chat.bin: chat.prs
|
|
|
|
preserves-schemac .:chat.prs > $@
|