Skip to content

Commit

Permalink
Package name update, remove old setup.py, fix path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Nov 28, 2024
1 parent 7ea4d11 commit d3d10cc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 49 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Enter `tree-sitter`_

.. code:: python
from tree_sitter_languages import get_language, get_parser
from textual_tree_sitter_languages import get_language, get_parser
language = get_language('python')
parser = get_parser('python')
Expand Down
42 changes: 0 additions & 42 deletions _old_setup.py

This file was deleted.

4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
print()

if sys.platform == "win32":
languages_filename = "tree_sitter_languages\\languages.dll"
languages_filename = "textual_tree_sitter_languages\\languages.dll"
else:
languages_filename = "tree_sitter_languages/languages.so"
languages_filename = "textual_tree_sitter_languages/languages.so"

print(f"{sys.argv[0]}: Building", languages_filename)
Language.build_library(
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ requires = [
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["tree_sitter_languages"]
package-data = {"tree_sitter_languages" = ["languages.so", "languages.dll"]}
packages = ["textual_tree_sitter_languages"]
package-data = {"textual_tree_sitter_languages" = ["languages.so", "languages.dll"]}
ext-modules = [
{name = "tree_sitter_languages", sources = ["tree_sitter_languages/core.pyx"]}
{name = "textual_tree_sitter_languages", sources = ["textual_tree_sitter_languages/core.pyx"]}
]

[tool.cython]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tree_sitter_languages.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tree_sitter_languages import get_language, get_parser
from textual_tree_sitter_languages import get_language, get_parser

LANGUAGES = [
"bash",
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit d3d10cc

Please sign in to comment.