Skip to content

Commit 85b5a0f

Browse files
committed
update makefile and remove pip warning
1 parent 14c0dd1 commit 85b5a0f

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

Makefile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,16 @@ help: ## Display this message
1717
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-38s\033[0m %s\n", $$1, $$2}'
1818

1919

20-
2120
.venv: ## Create venv
2221
python3 -m venv .venv
2322
$(pip) install -U pip setuptools
23+
@$(pip) install -U wheel build twine black mypy ruff pytest
24+
@$(pip) install -U --force-reinstall --use-pep517 -e .
2425
touch .venv
2526

2627

27-
28-
.init: .venv
29-
@$(pip) install -U wheel build twine black mypy ruff pytest
30-
@$(pip) install -U --force-reinstall -e .
31-
touch .init
32-
3328
.PHONY: install
34-
install: .init ## Create .venv and install basic packages
29+
install: .venv ## Create .venv and install basic packages
3530

3631
dist: ## Build package for distribution
3732
$(py) -m build --sdist --wheel --outdir dist/ .
@@ -48,13 +43,13 @@ fix: ## Run ruff and black
4843

4944

5045
.PHONY: test
51-
test: .venv .init ## Run tests
46+
test: .venv ## Run tests
5247
$(py) -m pytest test.py
5348

5449

5550
.PHONY: publish
5651
publish: TWINE_USERNAME = __token__
57-
publish: .init dist ## Publish to PyPi
52+
publish: .venv dist ## Publish to PyPi
5853
$(venv_bin)/twine check dist/*
5954
$(venv_bin)/twine upload --non-interactive dist/*
6055

0 commit comments

Comments
 (0)