Skip to content

Commit 7584f52

Browse files
committed
test wheel [pypi][testpypi]
1 parent 461abdc commit 7584f52

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

.github/workflows/build_wheels.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,33 @@ jobs:
4242
CIBW_BUILD_VERBOSITY: 1
4343
run: python -m cibuildwheel --output-dir wheelhouse
4444

45+
- name: Download and install gfortran-10.2
46+
if: matrix.os == 'macos-12'
47+
run: |
48+
set -e # Exit immediately if a command exits with a non-zero status
49+
50+
echo "Downloading gfortran-10.2-Catalina.dmg..."
51+
curl -L -o gfortran-10.2-Catalina.dmg https://github.com/fxcoudert/gfortran-for-macOS/releases/download/10.2/gfortran-10.2-Catalina.dmg
52+
53+
echo "Mounting gfortran-10.2-Catalina.dmg..."
54+
hdiutil attach gfortran-10.2-Catalina.dmg
55+
56+
echo "Installing gfortran..."
57+
sudo installer -pkg /Volumes/gfortran-10.2-Catalina/gfortran.pkg -target /
58+
59+
echo "Unmounting gfortran-10.2-Catalina.dmg..."
60+
hdiutil detach /Volumes/gfortran-10.2-Catalina
61+
62+
echo "Verifying gfortran installation..."
63+
gfortran --version
64+
4565
- name: Build macos-12 wheels
4666
if: matrix.os == 'macos-12'
4767
env:
4868
# all cp3xx, since old macs seem to only use osx 12+ builds if this is set not "none"
4969
# see consistency with get_tag() in setup.py
5070
CIBW_BUILD: cp311-*
51-
MACOSX_DEPLOYMENT_TARGET: 10.15
71+
MACOSX_DEPLOYMENT_TARGET: 12
5272
CIBW_SKIP: pp*
5373
CIBW_BUILD_VERBOSITY: 1
5474
run: python -m cibuildwheel --output-dir wheelhouse
@@ -135,7 +155,7 @@ jobs:
135155
runs-on: ${{ matrix.os }}
136156
strategy:
137157
matrix:
138-
os: [ macos-12, macos-13, macos-13-xlarge, macos-14, ubuntu-latest, windows-latest ]
158+
os: [ macos-12, macos-13 ]
139159

140160
steps:
141161
- uses: actions/setup-python@v5

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,5 @@ def run(self):
288288
platforms="any",
289289
package_data={'camb': [DLLNAME, 'HighLExtrapTemplate_lenspotentialCls.dat',
290290
'PArthENoPE_880.2_marcucci.dat', 'PArthENoPE_880.2_standard.dat',
291-
'PRIMAT_Yp_DH_Error.dat', 'PRIMAT_Yp_DH_ErrorMC_2021.dat']},
292-
test_suite='camb.tests'
291+
'PRIMAT_Yp_DH_Error.dat', 'PRIMAT_Yp_DH_ErrorMC_2021.dat']}
293292
)

0 commit comments

Comments
 (0)