changeset 363:f9064130af74

Add a Makefile to help with building distribution packages
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 04 Apr 2025 19:05:54 +0200
parents b560b6bc421e
children bbfcdbd75bfe
files Makefile
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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