ARver/Makefile
arcctgx fd862c0676
Some checks failed
Sync mirrors / sync-gitlab (push) Has been cancelled
Sync mirrors / sync-codeberg (push) Has been cancelled
fix release scripting
PyPI now requires correctly normalized distribution names, which the
stack based on Python 3.7 simply doesn't provide, so my latest uploads
were getting rejected.

Move building both source and built distributions to the PyPA container.
Adapt the build script to use a more recent Python version and remove
unneeded targets from the Makefile. Create new arcctgx/arver-builder
container version.

The build script uses Python 3.8 because it's new enough to produce
correctly normalized distribution names, but still old enough not to
cause problems with other elements of my outdated Python 3.7 stack.

At this point trying to still support Python versions older than 3.10
is just fighting obsolete tooling. It's just not feasible anymore.
2025-11-11 21:42:01 +01:00

21 lines
464 B
Makefile

.PHONY: release image test clean gitclean
CWD = $(shell pwd -P)
USER = $(shell id -u)
GROUP = $(shell id -g)
VERSION = $(shell cat utils/IMAGE_VERSION)
image:
docker build --tag arcctgx/arver-builder:$(VERSION) .
release:
docker run --rm -u "$(USER):$(GROUP)" -v "$(CWD):/package" arcctgx/arver-builder:$(VERSION)
test:
python3 -m unittest discover -v -s tests/ -p "*_test.py"
clean:
$(RM) -vrf build dist wheelhouse
gitclean:
git clean -e .vscode -fdx