-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (53 loc) · 1.74 KB
/
Copy pathMakefile
File metadata and controls
64 lines (53 loc) · 1.74 KB
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
55
56
57
58
59
60
61
62
63
64
#PYTHONEXE=trainscanner_gui.py pass1_gui.py stitch_gui.py shakereduction.py rect.py helix.py hans_style.py film.py add_instruction.py
#PYTHONLIB=canvas.py imagebar.py pass1.py imageselector2.py qrangeslider.py trainscanner.py stitch.py
PIP=pip3
PYTHON=python3
# バージョン番号を取得
VERSION := $(shell poetry version -s)
all: #macapp install #macapp-personally
echo There is no 'all' to be built for now.
%.md: temp_%.md Makefile pyproject.toml replacer.py
python replacer.py < $< > $@
##############################
# Git Hooks
##############################
setup-hooks:
@echo "Git hooksを設定中..."
@cp hooks/pre-commit .git/hooks/pre-commit
@chmod +x .git/hooks/pre-commit
@cp hooks/post-commit .git/hooks/post-commit
@chmod +x .git/hooks/post-commit
@echo "Git hooksの設定が完了しました"
counter.mp4: test/create_frame_test_video.py Makefile
python test/create_frame_test_video.py -W 480 -H 270 -d 30 -o $@
##############################
# PyPI
##############################
test-deploy: build
poetry publish -r testpypi
test-install:
$(PIP) install --index-url https://test.pypi.org/simple/ trainscanner
uninstall:
-$(PIP) uninstall -y trainscanner
build: README.md $(wildcard trainscanner/*.py)
poetry build -f wheel
tag:
-git tag -a v$(VERSION) -m "Release version $(VERSION)"
deploy: build tag
poetry publish
git push origin v$(VERSION)
check:
poetry check
clean:
-rm $(ALL) *~ */*~
-rm -rf build dist *.egg-info
-find . -name __pycache__ | xargs rm -rf
# # old stuff
# test1: test1.png
# test1.png: test1.tsconf
# $(PYTHON) ./stitch_gui.py @$<
# test1.tsconf:
# $(PYTHON) ./pass1_gui.py examples/sample.mov --log test1
distclean:
-rm -rf dist build *.egg-info __pycache__ *.pyc
make -C examples distclean