-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 802 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (21 loc) · 802 Bytes
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
include Makefile.mk
NAME=binx-og-image-generator
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | grep -v fgrep | sed -e 's/\([^:]*\):[^#]*##\(.*\)/printf '"'%-20s - %s\\\\n' '\1' '\2'"'/' |bash
pre-build:
rm -rf build/*
find src -type d -name \*.egg-info | xargs rm -rf
.PHONY: upload-dist dist pre-build clean test
dist: pre-build ## create package for upload
rm -rf dist/*
pipenv run python -m build
upload-dist: dist ## to pypi
pipenv run twine upload dist/*
clean: ## all intermediate files
rm -rf target build/* dist/*
find . -name \*.pyc | xargs rm
find src -type d -name \*.egg-info | xargs rm -rf
test: ## run unit tests
PYTHONPATH=$(PWD)/src pipenv run pytest tests/test*.py
fmt: ## sources using black
black $(find src -name *.py) tests/*.py