Mercurial > hgrepos > Python > apps > py-cutils
comparison Makefile @ 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 | |
| children | bbfcdbd75bfe |
comparison
equal
deleted
inserted
replaced
| 362:b560b6bc421e | 363:f9064130af74 |
|---|---|
| 1 # dev and build helper | |
| 2 # :- | |
| 3 # SPDX-FileCopyrightText: © 2025 Franz Glasner | |
| 4 # SPDX-License-Identifier: BSD-3-Clause | |
| 5 # :- | |
| 6 | |
| 7 clean: | |
| 8 rm -rf __arch/ | |
| 9 find . -name '*.pyc' -delete | |
| 10 | |
| 11 export-for-dist: clean | |
| 12 hg kwarchive __arch | |
| 13 | |
| 14 build: | |
| 15 python setup.py sdist bdist_wheel | |
| 16 python _postprocess-sdist.py | |
| 17 gzip dist/*tar | |
| 18 | |
| 19 distclean: clean | |
| 20 # package build information | |
| 21 rm -rf build/ dist/ src/*.egg-info | |
| 22 | |
| 23 # Full clean build for sdist, wheel and docs | |
| 24 dist: distclean build |
