From 951ed0b0d242b99bec360c4a7391d6c76c4dbdc3 Mon Sep 17 00:00:00 2001 From: Brett Holman Date: Thu, 17 Feb 2022 09:46:01 -0700 Subject: [PATCH 1/2] Clean up artifacts from pytest, packaging, release with make clean --- Makefile | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4ead786f867..32fb79ddc81 100644 --- a/Makefile +++ b/Makefile @@ -55,8 +55,28 @@ clean_pyc: @find . -type f -name "*.pyc" -delete @find . -type d -name __pycache__ -delete -clean: clean_pyc - rm -rf doc/rtd_html .tox .coverage +clean_pytest: + rm -rf .cache htmlcov + +clean_packaging: + rm -rf debian srpm cloud_init.egg-info/ \ + cloud-init-*.tar.gz \ + cloud-init-*.tar.gz.asc \ + cloud-init.dsc \ + cloud-init_*.build \ + cloud-init_*.buildinfo \ + cloud-init_*.changes \ + cloud-init_*.deb \ + cloud-init_*.dsc \ + cloud-init_*.orig.tar.gz \ + cloud-init_*.tar.xz \ + cloud-init_*.upload + +clean_release: + rm -rf new-upstream-changes.txt commit.msg + +clean: clean_pyc clean_pytest clean_packaging clean_release + rm -rf doc/rtd_html .tox .coverage tags yaml: @$(PYTHON) $(CWD)/tools/validate-yaml.py $(YAML_FILES) @@ -122,4 +142,5 @@ fix_spelling: .PHONY: test flake8 clean rpm srpm deb deb-src yaml .PHONY: check_version pip-test-requirements pip-requirements clean_pyc -.PHONY: unittest style-check doc fix_spelling check_spelling +.PHONY: unittest style-check doc fix_spelling +.PHONY: clean_pytest clean_packaging check_spelling clean_release From 15317dc428450f6b316fd3eef78bde363bb0d969 Mon Sep 17 00:00:00 2001 From: Brett Holman Date: Thu, 17 Feb 2022 12:00:11 -0700 Subject: [PATCH 2/2] don't touch debian/ --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 32fb79ddc81..5f0c5b1bdb8 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ clean_pytest: rm -rf .cache htmlcov clean_packaging: - rm -rf debian srpm cloud_init.egg-info/ \ + rm -rf srpm cloud_init.egg-info/ \ cloud-init-*.tar.gz \ cloud-init-*.tar.gz.asc \ cloud-init.dsc \