# HG changeset patch # User Franz Glasner # Date 1743786354 -7200 # Node ID f9064130af74769109fdfa9620062613ca0a1685 # Parent b560b6bc421ee26a58483952cdf13d7e86c29c3a Add a Makefile to help with building distribution packages diff -r b560b6bc421e -r f9064130af74 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Fri Apr 04 19:05:54 2025 +0200 @@ -0,0 +1,24 @@ +# dev and build helper +# :- +# SPDX-FileCopyrightText: © 2025 Franz Glasner +# SPDX-License-Identifier: BSD-3-Clause +# :- + +clean: + rm -rf __arch/ + find . -name '*.pyc' -delete + +export-for-dist: clean + hg kwarchive __arch + +build: + python setup.py sdist bdist_wheel + python _postprocess-sdist.py + gzip dist/*tar + +distclean: clean +# package build information + rm -rf build/ dist/ src/*.egg-info + +# Full clean build for sdist, wheel and docs +dist: distclean build