diff --git a/pyproject.toml b/pyproject.toml index b6d5b97..a8f53b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ build-backend = "setuptools.build_meta" packages = ["tree_sitter_languages"] package-data = {"tree_sitter_languages" = ["languages.so", "languages.dll"]} ext-modules = [ - {name = "tree_sitter_languages", sources = ["tree_sitter_languages/core.pyx"]} + {name = "tree_sitter_languages.core", sources = ["tree_sitter_languages/core.pyx"]} ] [tool.cython] diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_tree_sitter_languages.py b/tests/test_tree_sitter_languages.py index 5486abb..fb6c483 100644 --- a/tests/test_tree_sitter_languages.py +++ b/tests/test_tree_sitter_languages.py @@ -33,7 +33,6 @@ "markdown", "objc", "ocaml", - "perl", "php", "python", "ql", diff --git a/tree_sitter_languages/__init__.py b/tree_sitter_languages/__init__.py index 8e7379d..c72be45 100644 --- a/tree_sitter_languages/__init__.py +++ b/tree_sitter_languages/__init__.py @@ -3,4 +3,6 @@ Does not support tree-sitter v0.22.0 and above. """ -from .core import get_language, get_parser +from tree_sitter_languages.core import get_language, get_parser + +__all__ = ["get_language", "get_parser"]