Skip to content

Commit 708107f

Browse files
committed
feat: support platform linux/amd64
1 parent 62b61ae commit 708107f

File tree

3 files changed

+36
-7
lines changed

3 files changed

+36
-7
lines changed

Makefile

+12-6
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_editor --cov=src/text_manipulation tests/ --cov-report term-missing
1111

12-
dist d: test
12+
install i:
13+
pip install --upgrade --force-reinstall -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/
15-
python -m build && twine upload dist/*
21+
twine upload dist/*
1622

1723
clean c:
1824
rm -rfv out dist build/bdist.*

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ classifiers = [
2222
]
2323
keywords = ["cedarscript", "code-editing", "refactoring", "code-analysis", "sql-like", "ai-assisted-development"]
2424
dependencies = [
25-
"cedarscript-ast-parser>=0.5.2",
25+
"cedarscript-ast-parser>=0.5.3",
2626
"grep-ast==0.3.3",
27+
# https://github.com/tree-sitter/py-tree-sitter/issues/303
28+
# https://github.com/grantjenks/py-tree-sitter-languages/issues/64
29+
"tree-sitter<0.22", # 0.22 breaks tree-sitter-languages
2730
"tree-sitter-languages==1.10.2",
2831
]
2932
requires-python = ">=3.11"

tests/corpus/.day-to-day/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
UPDATE FUNCTION "my_func"
3+
FROM FILE "1.py"
4+
REPLACE WHOLE WITH CASE
5+
WHEN REGEX r'''# Some comment''' THEN SUB
6+
r'''# Some comment\n.*?something = find\[search\["col1"\]\.isna\(\)\]'''
7+
r'''# Some comment (and then some)
8+
elements_type_2 = search[search["something"].isna()]
9+
elements_type_1 = elements_type_2[elements_type_2["req"].isna()]'''
10+
END;
11+
12+
instead,:
13+
14+
UPDATE FUNCTION "my_func"
15+
FROM FILE "1.py"
16+
REPLACE LINE REGEX r'''# Some comment''' WITH CONTENTS '''
17+
# Some comment (and then some)
18+
elements_type_2 = search[search["something"].isna()]
19+
elements_type_1 = elements_type_2[elements_type_2["req"].isna()]'''
20+
''';

0 commit comments

Comments
 (0)