Commit Graph

72 Commits

Author SHA1 Message Date
@Antelox
6fbbf3089a Python binding setup refactoring + cibuildwheel workflow (#2026)
* Python bindings: Make the test scripts handy for pytest

* Python bindings: Update MANIFEST.in with new paths

* Update .gitignore to exclude PyCharm-related files/folders

* Python bindings: Update CMakeLists.txt in order to set CMAKE_OSX_ARCHITECTURES var

* Python bindings:
- Moved project package settings to the new TOML format
- Refactored setup.py to cleanup/improve the code and make it ready for cibuildwheel
- Updated README.md with the package long description part
- Removed setup.cfg since universal wheel building will be deprecated soon

* Python bindings:
- Replaced old PyPI-publishing.yml workflow with brand-new one based on cibuildwheel
- Removed old building scripts

* Replaced macos-12 runner with macos-13 since it will be removed soon

* Python bindings: Specify SYSTEM_VERSION_COMPAT=0 env var for macos-13 x86_64 runner as per cibuildwheel warning message

* Python bindings: Enable i686 for debugging

* Python bindings: Enable DEBUG flag according to the presence of tag release

* Python bindings: Added matrix to cover i686 manylinux/musllinux builds

* Python bindings:
- Replaced macos-14 runner with macos-latest
- Bumped cibuildwheel GitHub action to 2.21.3 version

* Python bindings:
- Adapt test_uc_ctl_tb_cache test to the recent changes
- Fixed typos
- PEP8 fixes

* GitHub Action Workflow: Introduce BUILD_TYPE env var to select build type according to the presence of tag release

---------

Co-authored-by: mio <mio@lazym.io>
2024-10-17 19:35:42 +08:00
mio
7e32864774 Also include cmake directory in sdist 2024-10-13 16:34:25 +08:00
mio
9e0addd682 Still add plat-name for Linux 2024-09-26 19:11:53 +08:00
mio
867770c7ef Tag and release 2.1.1 2024-09-26 18:44:51 +08:00
mio
869968a96f Only publish when tagging 2024-09-26 18:13:43 +08:00
mio
08e14abf70 Remove hacks for bdist_wheel 2024-09-26 17:18:36 +08:00
mio
67f08b1c27 Bump version and generate bindings 2024-09-21 23:00:57 +08:00
Omer Lubin
5c7fa35b43 ADD py.typed 2024-09-21 00:05:48 +03:00
Bet4
abefcb2f89 Remove using of distutils (#1964)
* Remove using of distutils

* Upgrade setuptools to fix CI

* Use Python 3.7 in build_wheel.sh
2024-06-12 14:45:23 +08:00
Nguyễn Anh Khoa
38091b3046 Add unicorn_py3 folder to setup.py (#1942)
* Add unicorn_py3 folder to setup.py

* Run sample in CI

* Fix pip install & py2 breakage

---------

Co-authored-by: mio <mio@lazym.io>
2024-04-28 00:11:05 +08:00
ba92f79c9e Merge pull request #1823 from unicorn-engine/restore-py2
[RFC] Restore py2 compatibility by using 2 files
2024-03-08 15:12:24 +08:00
Matheus C. França
4fb4b3e4b0 Zig binding
* zig binding - sample added
* zig build CI
* split mingw (shared/static) CI/CD
* unicorn log added
* build C/C++ samples
2023-08-04 11:24:00 -03:00
mio
d6d1af243f Specify the source directory explicitly 2023-06-28 16:40:17 +08:00
Nguyen Anh Quynh
6e9c6aea5f bump version to 2.0.2 2023-02-04 13:00:58 +08:00
Dominik Maier
549f34f098 Fix warning for ./setup.py (#1756) 2023-01-06 01:10:09 +08:00
mio
e9c1c17f6d Fix endianess detection 2022-11-16 15:16:49 +01:00
Nguyen Anh Quynh
a16f4ff911 python: update list of supported archs in setup.py 2022-11-02 00:28:40 +08:00
mio
bdd9f4fa9a Bump version to 2.0.1 2022-11-01 10:06:22 +01:00
mio
7fb6264d02 Also copy glib_compat and samples 2022-09-25 18:46:04 +02:00
mio
97b2e44c77 Also copy cmake files 2022-09-25 18:43:09 +02:00
mio
e76b2db434 Support build in a sdist 2022-09-25 18:09:41 +02:00
e5126f17f1 Bump version in bindings 2022-05-23 12:34:09 +02:00
64050aafb1 Fix python setup.py on macOS 2022-05-07 15:48:28 +02:00
a54dfda14d Depend on SONAME dylib 2022-05-06 14:47:14 +02:00
8fec2f6992 Fetch static archive in the root dir 2022-05-03 11:11:29 +02:00
8fd9ee3dd0 Bump unicorn version 2022-04-17 16:47:37 +02:00
16e9efa4f5 Bump version 2022-02-13 09:56:10 +01:00
mio
c84dbac9a8 Rename build dir for python bindings 2022-01-18 20:15:28 +01:00
mio
28e791a37f Add debug tracing feature
It's disabled by default, use -DUNICORN_TRACER=on to enable it
2022-01-18 19:35:43 +01:00
10d88e89a5 Fix uc_version and bump again 2021-11-25 18:19:46 +01:00
9a4d5d0be8 Bump bindings version to 2.0.0-rc5 2021-11-25 14:29:41 +01:00
mid-kid
2d665aa752 Accomodate for setting a different CMAKE_GENERATOR in the environment.
This makes sure the right build utility is called, depending on the
value of the CMAKE_GENERATOR environment.
2021-11-13 13:34:11 +01:00
0714fb5760 Bump bindings version 2021-11-09 00:23:19 +01:00
mio
8f7ecfe48b Support configure threads by environment variable 2021-10-10 23:46:22 +02:00
ad3c0a5b32 Bump python bindings version 2021-10-06 12:37:13 +02:00
mio
2474f9513b Sync docs from wiki and remove cmake.sh 2021-10-05 15:26:13 +02:00
mio
5668fd9c42 Set zip_safe and is_pure to False and trigger another build 2021-10-05 15:11:59 +02:00
mio
59deed7484 Simply the setup.py 2021-10-05 14:46:04 +02:00
mio
aff9c9dc48 Clean debug print and make it compatible with python3.5 2021-10-05 13:48:26 +02:00
mio
e1204d8977 Specify the content type 2021-10-04 18:09:44 +02:00
mio
ebb468d042 Fix msvc build 2021-10-04 10:44:30 +02:00
Nguyen Anh Quynh
aaaea14214 import Unicorn2 2021-10-03 22:14:44 +08:00
chfl4gs
c03f50f76a Fixing installation on cygwin, Travis-ci cache adjustment (#1322)
* Adding Travis-CI cmake static

* fix 64-bit fstenv (#1300)

* fix 64-bit fstenv

* fix fstenv

* safe_zip to false and travis adjustment

* Fixed zip_safe and cygwin setup

Co-authored-by: liangjs <761232680@qq.com>
2020-09-10 10:01:13 +08:00
chfl4gs
9288b4a845 adding pypi workflow (#1280)
* adding pypi workflow

* PyPI distribution packages workflow
2020-06-06 12:53:31 +08:00
Nguyen Anh Quynh
99be837364 python: add long description to setup.py 2020-05-29 11:56:24 +08:00
Pedro Tammela
18aa2627f7 fix binding install on python2 (#1231) 2020-04-24 17:15:12 +08:00
Saagar Jha
d69ebfa55c Make it easier to link against libunicorn on macOS (#1195)
Adding @rpath to the install name to make it possible to link against
the library without modifying it with install_name_tool. Copying both
the versioned and unversioned dylibs simplifies linking.
2020-02-12 14:16:34 +08:00
Audrey Dutcher
3cea38bff7 restrict msbuild to win32 platform (#1172) 2019-11-20 00:34:56 +08:00
Audrey Dutcher
fd3ccb2ef7 Python packaging logic for msvc build (#1151)
* remove bundling of DLLs we no longer need!

* Add logic for building with msvc in python setup

* Also include the msvc build scripts with sdist
2019-10-10 22:00:42 +08:00
AeonLucid
c46e745338 Fixes #1143 (#1144) 2019-09-16 01:58:08 +08:00