Skip to content

Commit 78d8430

Browse files
committed
cedarscript-grammar>=0.0.16;
Add Makefile
1 parent 5fda1cd commit 78d8430

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

Makefile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.PHONY: all version test dist clean
2+
3+
all: test version
4+
5+
version:
6+
python -m setuptools_scm
7+
8+
test:
9+
pytest --cov=src/cedarscript_ast_parser tests/ --cov-report term-missing
10+
11+
dist: test
12+
scripts/check-version.sh
13+
rm -rf dist/
14+
python -m build && twine upload dist/*
15+
16+
clean:
17+
rm -f /dist/

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
]
2727
keywords = ["parser", "ast", "cedarscript", "code-editing", "refactoring", "code-analysis", "sql-like", "ai-assisted-development"]
2828
dependencies = [
29-
"cedarscript-grammar>=0.0.15",
29+
"cedarscript-grammar>=0.0.16",
3030
]
3131
requires-python = ">=3.8"
3232

scripts/check-version.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env sh
2+
version=$(python -m setuptools_scm)
3+
# Check if the version is pure (i.e., it doesn't contain a '+')
4+
echo "$version" | grep -q "+" && {
5+
echo "Error: Version '$version' is not pure. Aborting dist."
6+
exit 1
7+
}
8+
exit 0

0 commit comments

Comments
 (0)