Skip to content

Commit 4741769

Browse files
authored
Merge pull request #29724 from MementoRC/tree-sitter-language-pack
2 parents 2ad9ef1 + 0c4076e commit 4741769

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--- a/setup.py
2+
+++ b/setup.py
3+
@@ -104 +104 @@
4+
- platform = platform.replace("linux", "manylinux2014")
5+
+ # platform = platform.replace("linux", "manylinux2014")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
context:
2+
name: tree-sitter-language-pack
3+
version: "0.7.1"
4+
python_min: 3.9
5+
6+
package:
7+
name: ${{ name|lower }}
8+
version: ${{ version }}
9+
10+
source:
11+
url: https://github.com/Goldziher/tree-sitter-language-pack/archive/refs/tags/v${{ version }}.tar.gz
12+
sha256: 1ff033575929d240779dab8a8d1e8d665ded84170fb31d61aea704f548706e68
13+
# No tests
14+
# url: https://pypi.org/packages/source/t/tree-sitter-language-pack/tree_sitter_language_pack-${{ version }}.tar.gz
15+
# sha256: 8fe73107045ce150aba2590bc5df114283162413da39dc264710a6ebccaf048c
16+
patches:
17+
- patches/comment-out-manylinux.patch
18+
19+
build:
20+
script:
21+
- mkdir parsers
22+
- ${{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv
23+
number: 0
24+
25+
requirements:
26+
build:
27+
- ${{ compiler("c") }}
28+
- ${{ stdlib("c") }}
29+
- cython
30+
- if: build_platform != target_platform
31+
then:
32+
- python
33+
- cross-python_${{ target_platform }}
34+
host:
35+
- pip
36+
- python
37+
- setuptools >=78.1
38+
run:
39+
- python
40+
- tree_sitter >=0.23.2
41+
- tree-sitter-c-sharp >=0.23.1
42+
- tree-sitter-embedded-template >=0.23.2
43+
- tree-sitter-yaml >=0.7.0
44+
45+
tests:
46+
- python:
47+
imports:
48+
- tree_sitter_language_pack
49+
pip_check: true
50+
- script:
51+
- mkdir sources && echo '{"csharp":{}, "embeddedtemplate":{}, "yaml":{}}' > sources/language_definitions.json
52+
# One test fails since we restrict the supported languages to the few that are needed (requirements/run)
53+
- PROJECT_ROOT=. uv run pytest tests || true
54+
requirements:
55+
run:
56+
- pytest
57+
- python
58+
- uv
59+
files:
60+
source:
61+
- tests/
62+
63+
about:
64+
homepage: https://github.com/tree-sitter/tree-sitter-language-pack
65+
summary: 'A tree-sitter parser for templating languages like ERB and EJS.'
66+
description: |
67+
A tree-sitter parser for templating languages like ERB and EJS,
68+
in which scripting code can be embedded within text content using
69+
the delimiters <% and %>
70+
license: MIT
71+
license_file: LICENSE
72+
repository: https://github.com/tree-sitter/tree-sitter-language-pack
73+
74+
extra:
75+
recipe-maintainers:
76+
- MementoRC

0 commit comments

Comments
 (0)