Skip to content

Commit 0be0da2

Browse files
committed
Renaming
1 parent f946c4d commit 0be0da2

File tree

8 files changed

+13
-11
lines changed

8 files changed

+13
-11
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ build/
1010
dist/
1111
*.egg-info/
1212

13-
.venv/
13+
.venv/
14+
15+
.vscode/

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Usage
4747

4848
.. code:: python
4949
50-
from textual_tree_sitter_languages import get_language, get_parser
50+
from tree_sitter_languages import get_language, get_parser
5151
5252
language = get_language('python')
5353
parser = get_parser('python')
@@ -140,7 +140,7 @@ Enter `tree-sitter`_
140140

141141
.. code:: python
142142
143-
from textual_tree_sitter_languages import get_language, get_parser
143+
from tree_sitter_languages import get_language, get_parser
144144
145145
language = get_language('python')
146146
parser = get_parser('python')

build.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
print()
4040

4141
if sys.platform == "win32":
42-
languages_filename = "textual_tree_sitter_languages\\languages.dll"
42+
languages_filename = "tree_sitter_languages\\languages.dll"
4343
else:
44-
languages_filename = "textual_tree_sitter_languages/languages.so"
44+
languages_filename = "tree_sitter_languages/languages.so"
4545

4646
print(f"{sys.argv[0]}: Building", languages_filename)
4747
Language.build_library(
@@ -79,7 +79,6 @@
7979
"vendor/tree-sitter-markdown",
8080
"vendor/tree-sitter-objc",
8181
"vendor/tree-sitter-ocaml/ocaml",
82-
"vendor/tree-sitter-perl",
8382
"vendor/tree-sitter-php",
8483
"vendor/tree-sitter-python",
8584
"vendor/tree-sitter-ql",

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ requires = [
3232
build-backend = "setuptools.build_meta"
3333

3434
[tool.setuptools]
35-
packages = ["textual_tree_sitter_languages"]
36-
package-data = {"textual_tree_sitter_languages" = ["languages.so", "languages.dll"]}
35+
packages = ["tree_sitter_languages"]
36+
package-data = {"tree_sitter_languages" = ["languages.so", "languages.dll"]}
3737
ext-modules = [
38-
{name = "textual_tree_sitter_languages", sources = ["textual_tree_sitter_languages/core.pyx"]}
38+
{name = "tree_sitter_languages", sources = ["tree_sitter_languages/core.pyx"]}
3939
]
4040

4141
[tool.cython]

repos.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ https://github.com/dhcmrlchtdj/tree-sitter-sqlite 993be0a91c0c90b0cc7799e6ff6592
99
https://github.com/elixir-lang/tree-sitter-elixir 11426c5fd20eef360d5ecaf10729191f6bc5d715
1010
https://github.com/elm-tooling/tree-sitter-elm c26afd7f2316f689410a1622f1780eff054994b1
1111
https://github.com/fwcd/tree-sitter-kotlin 0ef87892401bb01c84b40916e1f150197bc134b1
12-
https://github.com/ganezdragon/tree-sitter-perl 15a6914b9b891974c888ba7bf6c432665b920a3f
1312
https://github.com/ikatyang/tree-sitter-markdown 8b8b77af0493e26d378135a3e7f5ae25b555b375
1413
https://github.com/ikatyang/tree-sitter-yaml 0e36bed171768908f331ff7dff9d956bae016efb
1514
https://github.com/jiyee/tree-sitter-objc afec0de5a32d5894070b67932d6ff09e4f7c5879

tests/test_tree_sitter_languages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from textual_tree_sitter_languages import get_language, get_parser
1+
from tree_sitter_languages import get_language, get_parser
22

33
LANGUAGES = [
44
"bash",

textual_tree_sitter_languages/__init__.py renamed to tree_sitter_languages/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
Binary wheels for tree-sitter for several common languages.
33
Does not support tree-sitter v0.22.0 and above.
44
"""
5+
6+
from .core import get_language, get_parser

0 commit comments

Comments
 (0)