Skip to content

Python bindings: sdist creation fix + relative test#2624

Merged
kabeor merged 1 commit intocapstone-engine:nextfrom
Antelox:bindings/python/sdist
Mar 1, 2025
Merged

Python bindings: sdist creation fix + relative test#2624
kabeor merged 1 commit intocapstone-engine:nextfrom
Antelox:bindings/python/sdist

Conversation

@Antelox
Copy link
Copy Markdown
Contributor

@Antelox Antelox commented Feb 12, 2025

Your checklist for this pull request

  • [ x] I've documented or updated the documentation of every API function and struct this PR changes.
  • [ x] I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

  • Added missing files for sdist archive
  • Added installation step of sdist archive to test it's ok

Sort of take over from: #2622

Test plan

Updated the workflow in order to run the pip install of the generated sdist and make an attempt to import capstone

Closing issues

Closes #2621

@github-actions github-actions Bot added Python Bindings Github-files Github related files labels Feb 12, 2025
Copy link
Copy Markdown
Collaborator

@Rot127 Rot127 left a comment

Choose a reason for hiding this comment

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

Sorry that it took so long. Thanks a lot!

Comment thread LICENSES/MIT.TXT Outdated
@Antelox Antelox force-pushed the bindings/python/sdist branch from bfb5bd1 to d8f19ee Compare February 19, 2025 13:37
Copy link
Copy Markdown
Collaborator

@Rot127 Rot127 left a comment

Choose a reason for hiding this comment

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

@kabeor see the new commit message.

@notxvilka
Copy link
Copy Markdown

Maybe it makes sense to ask @AndrewQuijano to relicense this file under BSD? To avoid one more license just for one file.

@Rot127
Copy link
Copy Markdown
Collaborator

Rot127 commented Feb 19, 2025

Mh, I thought I asked already about it but only could find this comment: #2579 (comment)

@AndrewQuijano Would you be ok with licensing everything under BSD-3?

@kabeor
Copy link
Copy Markdown
Member

kabeor commented Feb 27, 2025

@AndrewQuijano It would be great if you can allow changing license to BSD. Having too many different licenses will cause maintenance inconvenience in the future. In addition, BSD and MIT are not very different.

@AndrewQuijano
Copy link
Copy Markdown
Contributor

Sorry for the delay! Sure I don’t mind switching to BSD

@Rot127
Copy link
Copy Markdown
Collaborator

Rot127 commented Feb 27, 2025

@Antelox Please remove the license file then. I fix the licenses in the file headers in a separated PR tomorrow.

@Antelox Antelox force-pushed the bindings/python/sdist branch from d8f19ee to a53c87b Compare February 27, 2025 11:59
Comment thread .github/workflows/build-wheels-publish.yml Outdated
- Added installation step of sdist archive to test it's ok
@Antelox Antelox force-pushed the bindings/python/sdist branch from a53c87b to 3e729c1 Compare February 28, 2025 11:28
Copy link
Copy Markdown
Collaborator

@Rot127 Rot127 left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

Copy link
Copy Markdown
Member

@kabeor kabeor left a comment

Choose a reason for hiding this comment

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

Thank you so much guys.

@kabeor kabeor merged commit cd8dd20 into capstone-engine:next Mar 1, 2025
@Antelox Antelox deleted the bindings/python/sdist branch March 23, 2025 15:34
kabeor pushed a commit that referenced this pull request Apr 2, 2025
* Fix wrong version requirement of tricore instructions: (#2620)

crc32.b
crc32b.w
crc32l.w
crcn
popcnt.w
shuffle

Remove invalid instruction:
BISR_rc_v161

Learn up misconfigure of nor and not

* Switch to ubuntu-24.04-arm runner image (#2625)

* Build Tarball before DEB/RPM package. (#2627)

Because it was run after the RPM/DEB package build it contained the 'build' directory
with all its files. Which made it way too big.

* Add aliases mapping for MIPS & test for id, alias_id (#2635)

* Add checks for MIPS details on cstest_py (#2640)

* Give the user some guidance where to add missing enumeration values. (#2639)

* - Added missing files for sdist archive (#2624)

* cmake: Fix building capstone as sub-project (#2629)

* cmake: Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR

capstone can be built as sub-project through cmake's fetch_content
mechanism. In this case, `CMAKE_SOURCE_DIR` refers to the parent project
(that has nothing to do with capstone), while `PROJECT_SOURCE_DIR` refers
to the root of the capstone source tree.

Recently introduced changes to enable CPack (#2590) are using the wrong
variable and are hence breaking builds that use capstone through
fetch_content. Use the correct variable to fix this issue.

* cmake: Only include cpack in top-level builds

Do not include cpack in builds where capstone is used through
fetch_content.

* Update operand type enums of all arch modules to the one in `capstone.h` (#2633)

* Set all operand types to the main CS_OP_ types from capstone.h.

* Add test cases from issue.

* Enhance shift value and types of shift instructions. (#2638)

* Enhance shift value and types of shift instructions.

Shifts via registers now save the register id in cs_arch64_op.shift.value
and set the shift type accordingly.

* Sort table

* Fix build for compilers requiring explicit static for inline functions.. (#2645)

* Tms32c64x Little Endian (#2648)

* Add little endian support for TMS320c64x.
This requires now to initialize TMS320c64x with the
CS_MODE_BIG_ENDIAN flag.

* Fix typo

* Add Call group to svc, smc and hvc. (#2651)

* Decode BH field in print_insn_detail_ppc (#2662)

---------

Co-authored-by: Changqing  Jing <changqing.jing@bmw.com>
Co-authored-by: @Antelox <anteloxrce@gmail.com>
Co-authored-by: Giovanni <561184+wargio@users.noreply.github.com>
Co-authored-by: Philipp Wagner <mail@philipp-wagner.com>
Co-authored-by: Tim Haines <thaines.astro@gmail.com>
kabeor pushed a commit that referenced this pull request Apr 9, 2025
Rot127 pushed a commit that referenced this pull request Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Github-files Github related files Python Bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wrong source code in pypi, missing files

5 participants