tree-sitter-grammars / tree-sitter-requirements

pip requirements grammar for tree-sitter
MIT License
5 stars 0 forks source link

bug: miss header files #5

Open Freed-Wu opened 3 months ago

Freed-Wu commented 3 months ago

Did you check existing issues?

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

No response

Describe the bug

❯ tar vxaf tree-sitter-requirements-0.4.0.tar.gz
tree-sitter-requirements-0.4.0/
tree-sitter-requirements-0.4.0/LICENSE
tree-sitter-requirements-0.4.0/PKG-INFO
tree-sitter-requirements-0.4.0/README.rst
tree-sitter-requirements-0.4.0/bindings/
tree-sitter-requirements-0.4.0/bindings/python/
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements/
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements/__init__.py
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements/__init__.pyi
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements/binding.c
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements/py.typed
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements.egg-info/
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements.egg-info/PKG-INFO
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements.egg-info/SOURCES.txt
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements.egg-info/dependency_links.txt
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements.egg-info/not-zip-safe
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements.egg-info/requires.txt
tree-sitter-requirements-0.4.0/bindings/python/tree_sitter_requirements.egg-info/top_level.txt
tree-sitter-requirements-0.4.0/pyproject.toml
tree-sitter-requirements-0.4.0/setup.cfg
tree-sitter-requirements-0.4.0/setup.py
tree-sitter-requirements-0.4.0/src/
tree-sitter-requirements-0.4.0/src/parser.c

miss src/tree-sitter/*.h, which result in failure when building.

Steps To Reproduce/Bad Parse Tree

pyproject-build

Expected Behavior/Parse Tree

/

Repro

No response

Freed-Wu commented 3 months ago

And wheel file shouldn't contain binding.c ...

Freed-Wu commented 3 months ago

Should add *.h to depends of setup().