Skip to content

Commit 7d436bf

Browse files
Merge pull request #26 from SPARC-FAIR-Codeathon/PyPi
Update makefile to clean before build
2 parents f614a4b + 0fe0a81 commit 7d436bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ watch: ## Run tests on every change.
4848
ls **/**.py | entr $(ENV_PREFIX)pytest -s -vvv -l --tb=long --maxfail=1 tests/
4949

5050
.PHONY: clean
51-
clean: ## Clean unused files.
51+
clean:
52+
@echo "* Cleaning unused files..."
5253
@find ./ -name '*.pyc' -exec rm -f {} \;
5354
@find ./ -name '__pycache__' -exec rm -rf {} \;
5455
@find ./ -name 'Thumbs.db' -exec rm -f {} \;
@@ -116,7 +117,7 @@ init: ## Initialize the project based on an application template.
116117
@./.github/init.sh
117118

118119
.PHONY: build
119-
build:
120+
build: clean
120121
@python3 -m build
121122

122123
# This project has been generated from rochacbruno/python-project-template

0 commit comments

Comments
 (0)