mirror of
https://github.com/arcctgx/ARver
synced 2025-08-28 04:54:15 +02:00
Direct usage of "python3 setup.py sdist" is deprecated in favor of
"python3 -m build".
Remove the .PHONY ext target that should've been removed in c0b151c
.
26 lines
533 B
Makefile
26 lines
533 B
Makefile
.PHONY: release image wheels test sdist clean gitclean
|
|
|
|
CWD = $(shell pwd -P)
|
|
USER = $(shell id -u)
|
|
GROUP = $(shell id -g)
|
|
VERSION = $(shell cat utils/IMAGE_VERSION)
|
|
|
|
release: sdist wheels
|
|
|
|
image:
|
|
docker build --tag arcctgx/arver-builder:$(VERSION) .
|
|
|
|
wheels:
|
|
docker run --rm -u "$(USER):$(GROUP)" -v "$(CWD):/package" arcctgx/arver-builder:$(VERSION)
|
|
|
|
test:
|
|
python3 -m unittest discover -v -s tests/ -p "*_test.py"
|
|
|
|
sdist:
|
|
python3 -m build --sdist
|
|
|
|
clean:
|
|
$(RM) -vrf build dist wheelhouse
|
|
|
|
gitclean:
|
|
git clean -e .vscode -fdx
|