Skip to content

Commit dfecc9e

Browse files
committed
cedarscript-ast-parser>=0.2.10
Add Makefile
1 parent 4eaa794 commit dfecc9e

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

Makefile

Lines changed: 17 additions & 0 deletions
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_editor --cov=src/text_manipulation 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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ classifiers = [
2222
]
2323
keywords = ["cedarscript", "code-editing", "refactoring", "code-analysis", "sql-like", "ai-assisted-development"]
2424
dependencies = [
25-
"cedarscript-ast-parser>=0.2.9",
25+
"cedarscript-ast-parser>=0.2.10",
2626
"grep-ast==0.3.3",
2727
"tree-sitter-languages==1.10.2",
2828
]

scripts/check-version.sh

Lines changed: 8 additions & 0 deletions
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)