Skip to content

Commit 76c815b

Browse files
authored
ci: fix prerelease (jina-ai#5871)
1 parent 9081b5f commit 76c815b

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

.github/workflows/cd.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,6 @@ jobs:
228228
python-manylinux-tag: "cp311-cp311"
229229

230230
# MacOS emulated
231-
- os: macos-latest
232-
python: '3.7'
233-
python-cibuildwheels: '37'
234-
platform_id: macosx_x86_64
235231
- os: macos-latest
236232
python: '3.8'
237233
python-cibuildwheels: '38'
@@ -345,6 +341,10 @@ jobs:
345341
fetch-depth: 100
346342
- run: |
347343
truncate --size=24KB README.md > README-trunc.md
344+
- uses: actions/download-artifact@v3
345+
with:
346+
name: artifact
347+
path: dist
348348

349349
- name: Update version
350350
run: |

.github/workflows/ci.yml

-4
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,6 @@ jobs:
477477
python-manylinux-tag: "cp311-cp311"
478478

479479
# MacOS emulated
480-
- os: macos-latest
481-
python: '3.7'
482-
python-cibuildwheels: '37'
483-
platform_id: macosx_x86_64
484480
- os: macos-latest
485481
python: '3.8'
486482
python-cibuildwheels: '38'

.github/workflows/force-release.yml

-4
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ jobs:
6161
python-manylinux-tag: "cp311-cp311"
6262

6363
# MacOS emulated
64-
- os: macos-latest
65-
python: '3.7'
66-
python-cibuildwheels: '37'
67-
platform_id: macosx_x86_64
6864
- os: macos-latest
6965
python: '3.8'
7066
python-cibuildwheels: '38'

docs/concepts/orchestration/scale-out.md

+7
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ Flow with three replicas of `slow_encoder` and one replica of `fast_indexer`
5858
(scale-consensus)=
5959
## Replicate stateful Executors with consensus using RAFT (Beta)
6060

61+
````{admonition} Python3.8 or newer version required on MacOS
62+
:class: note
63+
64+
This feature requires at least Python3.8 version when working on MacOS.
65+
66+
````
67+
6168
````{admonition} DocArray 0.30
6269
:class: note
6370

setup.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import subprocess
33
import sys
4+
import platform
45
from os import path
56

67
from setuptools import Extension, find_packages, setup
@@ -169,7 +170,10 @@ def get_extra_requires(path, add_all=True):
169170
except Exception:
170171
pass
171172

172-
if ret_code == 0:
173+
is_mac_os = platform.system() == 'Darwin'
174+
is_37 = sys.version_info.major == 3 and sys.version_info.minor == 7
175+
176+
if ret_code == 0 and (not is_mac_os or not is_37):
173177
extra_golang_kw = {
174178
'build_golang': {'root': 'jraft', 'strip': False},
175179
'ext_modules': [

0 commit comments

Comments
 (0)