Skip to content

Add support for multiple input lines#118

Open
yotamN wants to merge 11 commits intomainfrom
feature/multiple
Open

Add support for multiple input lines#118
yotamN wants to merge 11 commits intomainfrom
feature/multiple

Conversation

@yotamN
Copy link
Member

@yotamN yotamN commented Sep 24, 2022

Kooha-2022-09-24-20-17-49.webm

@yotamN yotamN force-pushed the feature/multiple branch 3 times, most recently from 70442d9 to ece6ff0 Compare September 27, 2022 09:20
@yotamN
Copy link
Member Author

yotamN commented Sep 28, 2022

I just need to test the build process on Windows and it will be done

@yotamN yotamN force-pushed the feature/multiple branch 26 times, most recently from 0e97e15 to e20e896 Compare October 21, 2022 14:02
@yotamN yotamN requested a review from oleavr October 21, 2022 16:58
Copy link
Member

@oleavr oleavr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

w00t!

@yotamN yotamN force-pushed the feature/multiple branch 3 times, most recently from cbe2e79 to 9a22fc1 Compare October 21, 2022 17:29
@yotamN yotamN requested a review from oleavr October 21, 2022 19:19
Copy link
Member

@oleavr oleavr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I guess the only missing piece of the puzzle now is CI for publishing to PyPI. Other than that, just some nitpicks:

setup.py Outdated
agents = glob.glob(os.path.join(pkg_dir, "*_agent.*"))
assert len(agents) > 0, "Agents not compiled; run “npm install && npm run build” in agents/*/"
os.system("python ./build_aux/build_treesitter.py")
package_data = agents + ["treesitter.so"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should tie into the build system so we don't do this when just running setup.py to query for something.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the only way that a source distribution would build correctly?

@yotamN yotamN force-pushed the feature/multiple branch 3 times, most recently from 48e8dba to d724268 Compare October 29, 2022 16:56
@yotamN yotamN force-pushed the feature/multiple branch 8 times, most recently from dacf269 to b060ef6 Compare December 24, 2022 11:32
@yotamN
Copy link
Member Author

yotamN commented Dec 25, 2022

The cross compilation fix was a bit dirty but it seems this is what crossenv is doing as well.

yotamN added 11 commits August 22, 2025 21:45
We need to drop version 3.7 because py-tree-sitter doesn't support it.
Luckily, Python 3.7 is EOL for over 2 years so there really should not
be anything using it anymore.
The wheels building can be simplified, there is another PR open for it
We don't compile it outselves anymore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants