File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -17,21 +17,16 @@ help: ## Display this message
17
17
awk ' BEGIN {FS = ":.*?## "}; {printf "\033[36m%-38s\033[0m %s\n", $$1, $$2}'
18
18
19
19
20
-
21
20
.venv : # # Create venv
22
21
python3 -m venv .venv
23
22
$(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 .
24
25
touch .venv
25
26
26
27
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
-
33
28
.PHONY : install
34
- install : .init # # Create .venv and install basic packages
29
+ install : .venv # # Create .venv and install basic packages
35
30
36
31
dist : # # Build package for distribution
37
32
$(py ) -m build --sdist --wheel --outdir dist/ .
@@ -48,13 +43,13 @@ fix: ## Run ruff and black
48
43
49
44
50
45
.PHONY : test
51
- test : .venv .init # # Run tests
46
+ test : .venv # # Run tests
52
47
$(py ) -m pytest test.py
53
48
54
49
55
50
.PHONY : publish
56
51
publish : TWINE_USERNAME = __token__
57
- publish : .init dist # # Publish to PyPi
52
+ publish : .venv dist # # Publish to PyPi
58
53
$(venv_bin ) /twine check dist/*
59
54
$(venv_bin ) /twine upload --non-interactive dist/*
60
55
You can’t perform that action at this time.
0 commit comments