diff --git a/CHANGELOG.md b/CHANGELOG.md index 60fe67f..bdf2e0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## v0.4.1-beta - September 20, 2025 +* Improved macOS compatibility: The cryptography library detection has been updated to differentiate between Apple Silicon (arm64) and Intel (x86_64) chips. The library module now automatically selects the correct version (crypto_silicon.dylib or crypto_intel.dylib), resolving potential compatibility issues on newer machines. + ## v0.4.0-beta - May 25, 2025 * Added new endpoint method: * `get_monero_mining_stats()`: Returns a dictionary containing various statistics related to Monero mining, such as pool and network hashrates, network difficulty, block height, and other relevant pool/miner data. diff --git a/README.md b/README.md index ae0df20..2e68daa 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Currently, QubiPy is in a very early development phase, so please take this into Please visit the [Change log](https://github.com/QubiPy-Labs/QubiPy/blob/main/docs/changelog.md) to see all changes. -![release](https://img.shields.io/badge/release-v0.4.0--beta-blue) +![release](https://img.shields.io/badge/release-v0.4.1--beta-blue) ![python](https://img.shields.io/badge/python-3.10_%7C_3.11_%7C_3.12-blue) ![Python Package](https://github.com/QubiPy-Labs/QubiPy/actions/workflows/python-package.yml/badge.svg) ![Code Quality](https://github.com/QubiPy-Labs/QubiPy/actions/workflows/pylint.yml/badge.svg) diff --git a/docs/changelog.md b/docs/changelog.md index 006aa1a..887c6bd 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,8 @@ # Change Log +## v0.4.1-beta - September 20, 2025 +* Improved macOS compatibility: The cryptography library detection has been updated to differentiate between Apple Silicon (arm64) and Intel (x86_64) chips. The library module now automatically selects the correct version (crypto_silicon.dylib or crypto_intel.dylib), resolving potential compatibility issues on newer machines. + ## v0.4.0-beta - May 25, 2025 * Added new endpoint method: * `get_monero_mining_stats()`: Returns a dictionary containing various statistics related to Monero mining, such as pool and network hashrates, network difficulty, block height, and other relevant pool/miner data. diff --git a/qubipy/crypto/crypto.dylib b/qubipy/crypto/crypto_intel.dylib similarity index 100% rename from qubipy/crypto/crypto.dylib rename to qubipy/crypto/crypto_intel.dylib diff --git a/qubipy/crypto/crypto_silicon.dylib b/qubipy/crypto/crypto_silicon.dylib new file mode 100755 index 0000000..0153bb0 Binary files /dev/null and b/qubipy/crypto/crypto_silicon.dylib differ diff --git a/qubipy/crypto/utils.py b/qubipy/crypto/utils.py index c9c8c15..d2759b6 100644 --- a/qubipy/crypto/utils.py +++ b/qubipy/crypto/utils.py @@ -8,11 +8,15 @@ import platform system = platform.system() +machine = platform.machine() if system == "Windows": lib_name = "crypto.dll" elif system == "Darwin": - lib_name = "crypto.dylib" + if machine == "arm64": + lib_name = "crypto_silicon.dylib" # For Apple Silicon + else: + lib_name = "crypto_intel.dylib" # For Intel else: lib_name = "crypto.so" diff --git a/requirements.txt b/requirements.txt index 023d6a6..029cc12 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ # HTTP Clients -requests==2.32.3 -urllib3==2.2.3 +requests==2.32.4 +urllib3==2.5.0 certifi==2024.8.30 charset-normalizer==3.4.0 idna==3.10 diff --git a/setup.py b/setup.py index 30476e5..0737c60 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.4.0' +__version__ = '0.4.1' with open("README.md", "r", encoding="utf-8") as fh: