-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathMakefile
31 lines (24 loc) · 789 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
SHELL := /bin/bash
.DEFAULT_GOAL := help
.PHONY: help
help:
@mh -f $(MAKEFILE_LIST) $(target) || echo "Please install mh from https://github.com/oz123/mh/releases/latest"
ifndef target
@(which mh > /dev/null 2>&1 && echo -e "\nUse \`make help target=foo\` to learn more about foo.")
endif
.PHONY: build-sdist
build-sdist: ## Build source distribution
python3 -m build -s
.PHONY: build-wheel
build-wheel: ## Build wheel distribution (and source distribution)
python3 -m build -w
.PHONY: build-clean
build-clean: ## Clean build artifacts
rm -rf dist
rm -rf log4mongo_python.egg-info/
.PHONY: build-check
build-check: ## Check build artifacts
twine check dist/*
.PHONY: build-pypi-publish
build-pypi-publish: build-check ## Publish to PyPI
python3 -m twine upload dist/*