-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
39 lines (26 loc) · 871 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
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(dir $(mkfile_path))
build:
docker build . --tag emoji_writer:writer -f dockerfiles/Dockerfile
build_debug:
docker build . --tag emoji_writer:writer --build-arg debug=true -f dockerfiles/Dockerfile
test: build
docker run --rm emoji_writer:writer pytest test
itest: build_debug
docker run --rm -it emoji_writer:writer pytest test -s -v
ipy: build
docker run --rm -it emoji_writer:writer python
bash: build
docker run --rm -it emoji_writer:writer bash
examples: build
docker run --rm emoji_writer:writer python main.py examples
fmt:
black emoji_writer/ scripts/
isort emoji_writer/
buildpkg:
python3 -m build
pushpkg: buildpkg
twine upload dist/*
testpkg:
docker build -f dockerfiles/Dockerfile.test_package --tag emoji_writer:pkg-test .
docker run --rm emoji_writer:pkg-test