Skip to content

Commit 867fe57

Browse files
Enable publishing of macOS wheel
1 parent 177494c commit 867fe57

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/scripts/set_platform_tag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def get_platform_tag(architecture):
99
if system == "Linux":
1010
tag = "manylinux_2_24_x86_64" if architecture == "x86_64" else "manylinux_2_24_aarch64"
1111
elif system == "Darwin":
12-
tag = "macosx_13_1_x86_64" if architecture == "x86_64" else "macosx_13_1_arm64"
12+
tag = "macosx_14_0_arm64"
1313
elif system == "Windows":
1414
tag = "win_amd64" if architecture == "x86_64" else "win_arm64"
1515
else:

.github/workflows/python-package.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ jobs:
266266
# `pip install https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_main/bitsandbytes-1.33.7.preview-py3-none-manylinux_2_24_x86_64.whl`
267267
STABLE_PLACEHOLDER_VERSION="1.33.7.preview"
268268
269-
# exclude macos wheels for now
270-
find tmp/ -type f -name '*.whl' ! -name '*macos*' -print0 | while IFS= read -r -d '' wheel; do
269+
find tmp/ -type f -name '*.whl' -print0 | while IFS= read -r -d '' wheel; do
271270
wheel_filename=$(basename "$wheel")
272271
273272
# Strip off the original version
@@ -318,9 +317,11 @@ jobs:
318317
if [[ "$fname" == *"manylinux_2_24_x86_64"* ]]; then
319318
echo "### Linux (x86_64)" >> body.md
320319
elif [[ "$fname" == *"manylinux_2_24_aarch64"* ]]; then
321-
echo "### Linux (ARM/aarch64)" >> body.md
320+
echo "### Linux (aarch64)" >> body.md
322321
elif [[ "$fname" == *"win_amd64"* ]]; then
323322
echo "### Windows (x86_64)" >> body.md
323+
elif [[ "$fname" == *"macosx"* ]]; then
324+
echo "### macOS 14+ (arm64)" >> body.md
324325
else
325326
echo "### Other platform" >> body.md
326327
fi
@@ -340,7 +341,7 @@ jobs:
340341
> pip install https://.../bitsandbytes-1.33.7-preview-py3-none-manylinux_2_24_x86_64.whl
341342
Collecting bitsandbytes==1.33.7rc0
342343
...
343-
Successfully installed bitsandbytes-0.46.0.dev0
344+
Successfully installed bitsandbytes-0.49.0.dev0
344345
```
345346
ENDOFMARKDOWN
346347
@@ -405,9 +406,6 @@ jobs:
405406
pattern: "bdist_wheel_*"
406407
merge-multiple: true
407408

408-
- name: Remove macOS wheels
409-
run: rm dist/*macos*
410-
411409
- name: Publish to PyPI
412410
uses: pypa/gh-action-pypi-publish@release/v1
413411
with:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ classifiers = [
3131
"Intended Audience :: Developers",
3232
"Intended Audience :: Science/Research",
3333
"Operating System :: POSIX :: Linux",
34-
# "Operating System :: MacOS",
34+
"Operating System :: MacOS",
3535
"Operating System :: Microsoft :: Windows",
3636
"Programming Language :: C++",
3737
"Programming Language :: Python :: Implementation :: CPython",

0 commit comments

Comments
 (0)