forked from grantjenks/py-tree-sitter-languages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a636602
commit d3e1d2e
Showing
6 changed files
with
82 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
- name: Build wheels | ||
run: uvx [email protected] --output-dir dist | ||
env: | ||
CIBW_BEFORE_BUILD: pip install --upgrade Cython==3.0.11 && pip install -e . && python build.py | ||
CIBW_BEFORE_BUILD: pip install -e . && python build.py | ||
CIBW_TEST_REQUIRES: pytest | ||
CIBW_TEST_COMMAND: pytest --showlocals {package}/tests | ||
CIBW_SKIP: "{pp*}" | ||
|
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,42 @@ | ||
# import pathlib | ||
# import re | ||
# import setuptools | ||
|
||
# from Cython.Build import cythonize | ||
|
||
# init = (pathlib.Path("tree_sitter_languages") / "__init__.py").read_text() | ||
# match = re.search(r"^__version__ = \"(.+)\"$", init, re.MULTILINE) | ||
# version = match.group(1) | ||
|
||
# with open("README.rst") as reader: | ||
# readme = reader.read() | ||
|
||
# setuptools.setup( | ||
# name="textual_tree_sitter_languages", | ||
# version=version, | ||
# description="Binary Python wheels for all tree sitter languages.", | ||
# long_description=readme, | ||
# author="Textualize", | ||
# author_email="[email protected]", | ||
# url="https://github.com/Textualize/py-tree-sitter-languages", | ||
# license="Apache 2.0", | ||
# ext_modules=cythonize("tree_sitter_languages/core.pyx", language_level="3"), | ||
# packages=["tree_sitter_languages"], | ||
# package_data={"tree_sitter_languages": ["languages.so", "languages.dll"]}, | ||
# install_requires=["tree-sitter<0.22.0"], | ||
# python_requires=">=3.8", | ||
# project_urls={ | ||
# "Documentation": "https://github.com/Textualize/py-tree-sitter-languages", | ||
# "Source": "https://github.com/Textualize/py-tree-sitter-languages", | ||
# "Tracker": "https://github.com/Textualize/py-tree-sitter-languages/issues", | ||
# }, | ||
# classifiers=[ | ||
# "Development Status :: 5 - Production/Stable", | ||
# "Intended Audience :: Developers", | ||
# "License :: OSI Approved :: Apache Software License", | ||
# "Natural Language :: English", | ||
# "Programming Language :: Python", | ||
# "Programming Language :: Python :: 3", | ||
# "Programming Language :: Python :: Implementation :: CPython", | ||
# ], | ||
# ) |
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 |
---|---|---|
@@ -1,10 +1,42 @@ | ||
[project] | ||
name = "textual_tree_sitter_languages" | ||
version = "1.11.0" | ||
description = "Binary Python wheels for popular tree sitter languages." | ||
authors = [ | ||
{name = "Textualize", email = "[email protected]"}, | ||
] | ||
requires-python = ">= 3.8" | ||
readme = "README.rst" | ||
license = {text = "Apache 2.0"} | ||
dependencies = ["tree-sitter<0.22.0"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://github.com/Textualize/py-tree-sitter-languages" | ||
Source = "https://github.com/Textualize/py-tree-sitter-languages" | ||
Tracker = "https://github.com/Textualize/py-tree-sitter-languages/issues" | ||
|
||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"Cython", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
packages = ["tree_sitter_languages"] | ||
package-data = {"tree_sitter_languages" = ["languages.so", "languages.dll"]} | ||
|
||
[tool.setuptools.ext_modules] | ||
tree_sitter_languages = {sources = ["tree_sitter_languages/core.pyx"]} | ||
|
||
build-backend = "setuptools.build_meta" | ||
[tool.cython] | ||
language_level = "3" |
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
"""Tree Sitter with Languages""" | ||
|
||
from .core import get_language, get_parser | ||
|
||
__version__ = "1.11.0" | ||
__title__ = "textual_tree_sitter_languages" | ||
__author__ = "Grant Jenks" | ||
__license__ = "Apache 2.0" | ||
__copyright__ = "2022-2024, Grant Jenks" | ||
""" | ||
Binary wheels for tree-sitter for several common languages. | ||
Does not support tree-sitter v0.22.0 and above. | ||
""" |