forked from pyodide/pyodide
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tree-sitter package (pyodide#5099)
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package: | ||
name: tree-sitter | ||
version: 0.23.0 | ||
top-level: | ||
- tree_sitter | ||
source: | ||
url: https://files.pythonhosted.org/packages/61/87/8b37aebd12e386533fad099bcc33f9fff73fb2104b7ab79f91da57fee9e2/tree-sitter-0.23.0.tar.gz | ||
sha256: 4c0d186f262a6b186e155a327150064abbf02b5659f7bc580eb965374025f2c2 | ||
about: | ||
home: https://tree-sitter.github.io/tree-sitter | ||
PyPI: https://pypi.org/project/tree-sitter | ||
summary: Python bindings to the Tree-sitter parsing library | ||
license: MIT | ||
extra: | ||
recipe-maintainers: | ||
- ericwb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from pytest_pyodide import run_in_pyodide | ||
|
||
|
||
@run_in_pyodide(packages=["tree-sitter"]) | ||
def test_tree_sitter(selenium): | ||
import tree_sitter | ||
|
||
assert hasattr(tree_sitter, "Language") | ||
assert hasattr(tree_sitter, "Node") |