Skip to content

Commit 21b10d5

Browse files
committed
Makefile
1 parent e107bf0 commit 21b10d5

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Makefile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
.PHONY: all version v test t dist d clean c
1+
.PHONY: all version v test t install i build b dist d clean c
22

3-
all: test version
3+
all: clean test install build version
44

55
version v:
6-
git describe --tags
6+
git describe --tags ||:
77
python -m setuptools_scm
88

99
test t:
1010
pytest --cov=src/cedarscript_ast_parser tests/ --cov-report term-missing
1111

12-
dist d: test
12+
install i:
13+
pip install -e .
14+
15+
build b:
16+
# SETUPTOOLS_SCM_PRETEND_VERSION=0.0.1
17+
python -m build
18+
19+
dist d: clean test build
1320
scripts/check-version.sh
14-
rm -rf dist/cedarscript_*.whl dist/cedarscript_*.tar.gz
15-
python -m build && twine upload dist/*
21+
twine upload dist/*
1622

1723
clean c:
18-
rm -rfv out dist/cedarscript_*.whl dist/cedarscript_*.tar.gz build/bdist.* build/lib/cedarscript*
24+
rm -rfv out dist build/bdist.* build/lib/cedarscript*

0 commit comments

Comments
 (0)