-
Notifications
You must be signed in to change notification settings - Fork 819
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
Upgrade pyo3 to 0.16 #956
Merged
Merged
Upgrade pyo3 to 0.16 #956
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
98c8786
Upgrade pyo3 to 0.15
messense a532fd6
Upgrade pyo3 to 0.16
messense 0d942cd
Install Python before running cargo clippy
messense 69b1f6b
Fix clippy warnings
messense fec2512
Use `PyArray_Check` instead of downcasting to `PyArray1<u8>`
messense 2343a7c
Enable `auto-initialize` of pyo3 to fix `cargo test
messense 7341bb4
Fix some test cases
messense b2955fb
Refactor and add SAFETY comments to `PyArrayUnicode`
messense File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -11,4 +11,3 @@ rustflags = [ | |
"-C", "link-arg=dynamic_lookup", | ||
"-C", "link-arg=-mmacosx-version-min=10.11", | ||
] | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this up because Ubuntu 18.04 comes with Python 3.6 and now we require Python 3.7.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was already setting up 3.9 before. where is 3.6/3.7 used that was broken ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it wasn't, see this build: https://github.com/huggingface/tokenizers/runs/5624656581?check_suite_focus=true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh clippy is triggering it and it doesn't work after the upgrade !
So clippy was running against 3.6 Python interpreter, which is fine, since clippy wasn't running any python code anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually clippy will trigger running build scripts, which in turn runs python code from pyo3-ffi: https://github.com/PyO3/pyo3/blob/main/pyo3-ffi/build.rs