-
Notifications
You must be signed in to change notification settings - Fork 166
/
Makefile
54 lines (38 loc) · 972 Bytes
/
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
47
48
49
50
51
52
53
54
project_dir := $(patsubst %/,%,$(dir $(realpath $(lastword $(MAKEFILE_LIST)))))
PATH := $(project_dir)/venv/bin:$(PATH)
all:
format:
python -m black mingus mingus_examples tests
dev:
pip install -e '.[fft,fluidsynth]' -r requirements-dev.in
install:
pip install .
test: test-unit
test-unit:
python -m unittest discover tests.unit
test-fluidsynth:
python -m unittest tests.integration.test_fluidsynth
test-lilypond:
python -m unittest tests.integration.test_lilypond
test-all: test test-fluidsynth test-lilypond
clean:
rm -rf build/ dist/
build:
python setup.py sdist bdist_wheel
sign-build: build
(\
cd dist; \
rm -f *.asc; \
for a in *.whl *.gz; do \
gpg --armor --detach-sign "$$a"; \
done)
upload:
twine upload dist/*
tag:
git tag -s $$(python setup.py --version)
release: clean build sign-build upload tag
.PHONY: format \
dev install \
test test-unit test-fluidsynth test-lilypond test-all \
clean build \
upload tag release