forked from jasoncorbett/ordered-startup-supervisord
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
44 lines (35 loc) · 1.46 KB
/
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
##TWINE_REPOSITORY: The pypi repository. Should be a section in the config file ~/.pypirc. (default: pypi)
export TWINE_REPOSITORY?=pypi
default: help
build: ## Build package
python setup.py build
sdist: ## Create source dist file
python setup.py sdist
wheel: ## Create wheel
python setup.py bdist_wheel --universal
upload-sdist: sdist ## Upload sdist
twine upload --verbose dist/*.tar.gz
upload-wheel: wheel ## Upload wheel
twine upload --verbose dist/*.whl
upload-all: ## Upload all
upload-all: upload-sdist upload-wheel
clean: ## Clean
$(RM) -r build/
$(RM) -r dist/
$(RM) -r supervisord_dependent_startup.egg-info
$(RM) -r .tox/
-find . -name "*.pyc" -delete 2>/dev/null; true
-find . -name __pycache__ -delete 2>/dev/null; true
help: ## Show this help
@echo "==================================="
@echo " Available targets"
@echo "==================================="
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -rn "s/(\S+)\s*:.+?\s##\s?\s(.+)/\1 \"\2\"/p" | xargs printf " %-20s : %5s\n"
@echo
@echo "-----------------------------------------------------------------"
@echo " Available environment configurations to set with 'make [VARIABLE=value] <target>'"
@echo "-----------------------------------------------------------------"
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -rn "s/^##\s*(\S+)\s*:\s*(.+)/\1 \"\2\"/p" | xargs printf " %-20s : %5s\n"
@echo
@echo -e "Example:\n make TWINE_REPOSITORY=pypitest"
@echo