Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn into optional extension json-stream can depend on #23

Merged
merged 7 commits into from
Oct 3, 2022

Conversation

smheidrich
Copy link
Owner

@smheidrich smheidrich commented Oct 2, 2022

This PR aims to turn the Rust tokenizer into an optional extension, meaning that building it from the sdist is allowed to fail. The purpose of this is to allow json-stream to have this package as a dependency but be able to fall back to the pure Python tokenizer if no wheels are available and the sdist build fails.

Maturin doesn't support optional extensions and the recommendation from their side is to use setuptools-rust instead (PyO3/maturin#1081), so that's what we do here as well.

Also gets rid of the dependency on json-stream.

@smheidrich smheidrich changed the title Switch to setuptools-rust Build optional extension instead Oct 2, 2022
@smheidrich smheidrich changed the title Build optional extension instead Turn into optional extension Oct 2, 2022
@smheidrich smheidrich changed the title Turn into optional extension Turn into optional extension json-stream can depend on Oct 2, 2022
@smheidrich smheidrich force-pushed the switch-to-setuptools-rust branch 12 times, most recently from 6dce81e to e97d179 Compare October 3, 2022 04:17
@smheidrich smheidrich merged commit 1b4abb9 into main Oct 3, 2022
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.

1 participant