Skip to content

Commit 00d5e0b

Browse files
committed
add publishing to the makefile
1 parent 56368a9 commit 00d5e0b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ endif
99
export PATH := $(abspath ${VENVBIN}):${PATH}
1010

1111

12-
.PHONY: init test build benchmark
12+
.PHONY: init test build benchmark publish
1313

1414
# Default target executed when no arguments are given to make.
1515
default_target: build test
@@ -19,9 +19,9 @@ help: ## Show this help
1919

2020
################################
2121

22-
all: depend build test ## Get dependencies, build and test
22+
all: depend build test ## Get dependencies, clean, build and test
2323

24-
build: ${VENV} clean ## Build and clean
24+
build: ${VENV} clean ## Clean and build
2525
python setup.py bdist_wheel
2626
ls -lh dist
2727

@@ -49,3 +49,6 @@ clean: ## Clean build artifacts
4949
rm -rf build/
5050
rm -rf dist/
5151
rm -rf *.egg-info
52+
53+
publish: ## Publish the package built by `make build`
54+
python -m twine upload --verbose dist/objectbox*.whl

0 commit comments

Comments
 (0)