syndicate-py/Makefile

36 lines
730 B
Makefile
Raw Permalink Normal View History

PACKAGEVERSION := $(shell ./print-package-version)
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:
git tag v$(PACKAGEVERSION)
2023-02-10 15:46:46 +00:00
publish: clean build
2018-11-20 19:45:27 +00:00
twine upload dist/*
build: build-only
build-only: dist/syndicate-py-$(PACKAGEVERSION).tar.gz
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
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 > $@