DerekStride / tree-sitter-sql

SQL grammar for tree-sitter
http://derek.stride.host/tree-sitter-sql/
MIT License
159 stars 54 forks source link

Publish on PyPI? #269

Closed prurph closed 3 months ago

prurph commented 3 months ago

This grammar isn't available for installation in Python projects via pip. The tree-sitter team has a workflow here; what do you think about adding this to the project to publish to PyPi? Thanks for considering!

DerekStride commented 3 months ago

Done! It's available here: https://pypi.org/project/tree-sitter-sql/0.3.5/

prurph commented 3 months ago

Wow what a fast response! Thank you so much!

matthias-Q commented 3 months ago

I just tried it out and

tree_sitter_sql.language()

returns an integer for me and not a Language

not sure if that is correct

Nevermind. This Id has to be consumed by the Parser object. Then it works as expected