Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
gh-115988: Add missing ARM64 and RISCV filter in lzma module#115989
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ghost commentedFeb 27, 2024 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
Uh oh!
There was an error while loading.Please reload this page.
Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
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.
Does test_lzma test the existing constants in any way? Such as for validity of the spelling? If so, the new ones should be added.
Someone more familiar with lzma should do a commit review.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
I have made the requested changes; please review again. |
I cannot do a commit review of this as it is out of my expertise. I requested reviews from two coredevs who have edited the file most recently. |
serhiy-storchaka left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
They are pretty new features (https://xz.tukaani.org/format/xz-file-format-1.2.0.txt):
1.2.0 2024-01-19 Added RISC-V filter and updated URLs in Sections 0.2 and 7. The URL of this specification was changed. 1.1.0 2022-12-11 Added ARM64 filter and clarified 32-bit ARM endianness in Section 5.3.2, language improvements in Section 5.4
Adding support for them is a new feature in Python, so you need to add versionadded or versionchanged directives in the module documentation and add the corresponding entry in the What's New file.
You should also specify that the new filters (work? are supported? are available?) only with the specified XZ (library? file format?) version. Please add tests for new filters. They should produce expected result or raise an expected exception depending on the xz version.
I am not sure whether these constants should be defined if the underlying library does not support them. The new tests should show what is better.
Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
OK. Done. Correct my if anything is missing. |
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.
LGTM. You only need to add an entry in the What's New document.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
this PRitself seems fine and is the kind of thing we want, though the fate of the upstream code is certainly unknown at the moment it isn't related to this specific issue. (I removed the added binary test data) @serhiy-storchaka - I'm glad we agree on what needs doing in this PR! I hope I'm not stepping on your toes by going ahead and doing some of that today. =) |
We make lzma_version be the runtime version as that is the one mostinterestin to users. The compile time version remains exposed asthe header version.
Alright, I believe this is ready. I'll let@serhiy-storchaka do the final review and merge. |
exposing the decimal number from the C library probably isn't right, I like Serhiy's larger issue. These can be structured (tuple). The code to do so won't be much different thanks to Py_BuildValue APIs. |
and we can elide the LZMA_ prefix on the names and not include them in |
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.
This has conflicts, and the version has to be changed tonext
as this is not making it to 3.13 :-(
Signed-off-by: Chien Wong <m@xv97.com>
Signed-off-by: Chien Wong <m@xv97.com>
Merged latest main branch and adjusted available version number. Please review. |
Signed-off-by: Chien Wong <m@xv97.com>
Signed-off-by: Chien Wong <m@xv97.com>
!buildbot onder-riscv64 |
bedevere-bot commentedJul 13, 2025
The regex 'onder-riscv64' did not match any buildbot builder. Is the requested builder in the list of stable builders? |
!buildbot riscv64 |
bedevere-bot commentedJul 13, 2025
🤖 New build scheduled with the buildbot fleet by@furkanonder for commit1a17fd5 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F115989%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
Uh oh!
There was an error while loading.Please reload this page.
#115988
Example:
📚 Documentation preview 📚:https://cpython-previews--115989.org.readthedocs.build/