66 - v*
77
88env :
9- LIBZIM_VERSION : 6.1.8
9+ LIBZIM_VERSION : 7.0.0
1010 LIBZIM_INCLUDE_PATH : include/zim
1111 TWINE_USERNAME : __token__
1212 TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
13+ # TWINE_PASSWORD: ${{ secrets.PYPI_TEST_API_TOKEN }}
1314 # TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
1415
1516jobs :
2122 os : [ubuntu-latest, macos-latest]
2223 # TODO: expand this to cross-platform builds (see V2 approach below)
2324 # os: [ubuntu-latest, windows-latest, macos-latest]
24- python-version : [3.6, 3.7, 3.8]
25+ python-version : [3.6, 3.7, 3.8, 3.9 ]
2526
2627 steps :
2728 - uses : actions/checkout@v2
5556 rm $CERTIFICATE
5657 security set-key-partition-list -S "apple-tool:,apple:" -s -k mysecretpassword build.keychain
5758 security find-identity -v
58- sudo sntp -sS time.apple .com -t 60
59+ sudo sntp -sS -t 60 time4.google .com || true
5960 xcrun altool --store-password-in-keychain-item "ALTOOL_PASSWORD" \
6061 -u "${{ secrets.APPLE_SIGNING_ALTOOL_USERNAME }}" \
6162 -p "${{ secrets.APPLE_SIGNING_ALTOOL_PASSWORD }}"
99100
100101 - name : Build cython and sdist
101102 run : |
102- pip install --upgrade "cython>=0.29.20 ,<3.0" setuptools pip wheel
103+ pip install --upgrade "cython>=0.29.22 ,<3.0" setuptools pip wheel
103104 python3 setup.py build_ext --rpath $RPATH
104105 if [[ "${{ matrix.python-version }}" == "3.6" ]]
105106 then
@@ -109,15 +110,15 @@ jobs:
109110 - name : add macOS libzim binary to source for wheel
110111 if : matrix.os == 'macos-latest'
111112 run : |
112- install_name_tool -change libzim.${LIBZIM_VERSION:0:1}.dylib @loader_path/libzim.${LIBZIM_VERSION:0:1}.dylib $(find build -name "wrapper *.so")
113- cp -p lib/libzim.${LIBZIM_VERSION:0:1}.dylib libzim
113+ install_name_tool -change libzim.${LIBZIM_VERSION:0:1}.dylib @loader_path/libzim.${LIBZIM_VERSION:0:1}.dylib $(find build -name "libzim.cpython *.so")
114+ cp -pv lib/libzim.${LIBZIM_VERSION:0:1}.dylib $(find build/lib* -type d)/
114115
115116 - name : sign macOS wrapper binary
116117 if : matrix.os == 'macos-latest'
117118 run : |
118119 echo "make sure libzim is signed and notarized"
119- spctl -a -v -t install libzim /libzim.${LIBZIM_VERSION:0:1}.dylib
120- wrapper=$(find build -name "wrapper *.so")
120+ spctl -a -v -t install lib /libzim.${LIBZIM_VERSION:0:1}.dylib
121+ wrapper=$(find build -name "libzim.cpython *.so")
121122 echo "sign the wrapper"
122123 codesign --force --sign "${{ secrets.APPLE_SIGNING_IDENTITY }}" ${wrapper} --deep --timestamp
123124 echo "create ZIP package for notarization request"
@@ -136,7 +137,7 @@ jobs:
136137
137138 - name : add Linux libzim binary to source for wheel
138139 if : matrix.os == 'ubuntu-latest'
139- run : cp -p lib/libzim.so.${LIBZIM_VERSION:0:1} libzim
140+ run : cp -pv lib/libzim.so.${LIBZIM_VERSION:0:1} $(find build/lib* -type d)/
140141
141142 - name : build wheel
142143 run : python3 setup.py bdist_wheel --plat-name=$PLAFTORM_NAME
0 commit comments