Skip to content

Commit 9fba52b

Browse files
committedDec 25, 2020
update build scripts, add github actions build
1 parent bd2e779 commit 9fba52b

10 files changed

+315
-23
lines changed
 

‎.github/workflows/build_wheels.yml

+191
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
name: Build wheels workflow
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
10+
create_release:
11+
runs-on: ubuntu-18.04
12+
name: Create github release
13+
outputs:
14+
upload_url: ${{ steps.create_release.outputs.upload_url }}
15+
pkg_v: '0.1.9'
16+
steps:
17+
- name: Create Release
18+
id: create_release
19+
uses: actions/create-release@v1
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
with:
23+
tag_name: ${{ github.ref }}
24+
release_name: ${{ github.ref }}
25+
draft: false
26+
prerelease: false
27+
28+
build_linux:
29+
needs: create_release
30+
runs-on: ubuntu-18.04
31+
strategy:
32+
matrix:
33+
envs: [['manylinux2010_x86_64', ''],
34+
['manylinux1_x86_64', ''],
35+
['manylinux1_i686', 'linux32']]
36+
env:
37+
PLAT: ${{ matrix.envs[0] }}
38+
PRE_CMD: ${{ matrix.envs[1] }}
39+
name: Build wheels on linux
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v1
43+
- name: Install lzip
44+
run: sudo apt-get install -y lzip
45+
- name: Prepare build
46+
run: |
47+
./contrib/install_linux.sh
48+
- name: Build wheels
49+
run: |
50+
source contrib/version_env.sh && ./contrib/script_linux.sh
51+
- name: Upload Release Asset Python3.6
52+
uses: actions/upload-release-asset@v1
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
with:
56+
upload_url: ${{ needs.create_release.outputs.upload_url }}
57+
asset_path: dist/python_bls-${{ needs.create_release.outputs.pkg_v }}-cp36-cp36m-${{ matrix.envs[0] }}.whl
58+
asset_name: python_bls-${{ needs.create_release.outputs.pkg_v }}-cp36-cp36m-${{ matrix.envs[0] }}.whl
59+
asset_content_type: application/zip
60+
- name: Upload Release Asset Python3.7
61+
uses: actions/upload-release-asset@v1
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
with:
65+
upload_url: ${{ needs.create_release.outputs.upload_url }}
66+
asset_path: dist/python_bls-${{ needs.create_release.outputs.pkg_v }}-cp37-cp37m-${{ matrix.envs[0] }}.whl
67+
asset_name: python_bls-${{ needs.create_release.outputs.pkg_v }}-cp37-cp37m-${{ matrix.envs[0] }}.whl
68+
asset_content_type: application/zip
69+
- name: Upload Release Asset Python3.8
70+
uses: actions/upload-release-asset@v1
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
with:
74+
upload_url: ${{ needs.create_release.outputs.upload_url }}
75+
asset_path: dist/python_bls-${{ needs.create_release.outputs.pkg_v }}-cp38-cp38-${{ matrix.envs[0] }}.whl
76+
asset_name: python_bls-${{ needs.create_release.outputs.pkg_v }}-cp38-cp38-${{ matrix.envs[0] }}.whl
77+
asset_content_type: application/zip
78+
79+
build_osx_36:
80+
needs: create_release
81+
runs-on: macos-10.15
82+
name: Build wheel on macOS Python3.6
83+
env:
84+
PYTHON_VERSION: '3.6.8'
85+
steps:
86+
- name: Checkout
87+
uses: actions/checkout@v1
88+
- name: Prepare build
89+
run: |
90+
./contrib/install_osx.sh
91+
- name: Build wheel
92+
run: |
93+
source contrib/version_env.sh && ./contrib/script_osx.sh
94+
- name: Upload Release Asset
95+
uses: actions/upload-release-asset@v1
96+
env:
97+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98+
with:
99+
upload_url: ${{ needs.create_release.outputs.upload_url }}
100+
asset_path: dist/python_bls-${{ needs.create_release.outputs.pkg_v }}-cp36-cp36m-macosx_10_6_intel.whl
101+
asset_name: python_bls-${{ needs.create_release.outputs.pkg_v }}-cp36-cp36m-macosx_10_6_intel.whl
102+
asset_content_type: application/zip
103+
104+
build_osx_37:
105+
needs: create_release
106+
runs-on: macos-10.15
107+
name: Build wheel on macOS Python3.7
108+
env:
109+
PYTHON_VERSION: '3.7.6'
110+
steps:
111+
- name: Checkout
112+
uses: actions/checkout@v1
113+
- name: Prepare build
114+
run: |
115+
./contrib/install_osx.sh
116+
- name: Build wheel
117+
run: |
118+
source contrib/version_env.sh && ./contrib/script_osx.sh
119+
- name: Upload Release Asset
120+
uses: actions/upload-release-asset@v1
121+
env:
122+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123+
with:
124+
upload_url: ${{ needs.create_release.outputs.upload_url }}
125+
asset_path: dist/python_bls-${{ needs.create_release.outputs.pkg_v }}-cp37-cp37m-macosx_10_6_intel.whl
126+
asset_name: python_bls-${{ needs.create_release.outputs.pkg_v }}-cp37-cp37m-macosx_10_6_intel.whl
127+
asset_content_type: application/zip
128+
129+
build_osx_38:
130+
needs: create_release
131+
runs-on: macos-10.15
132+
name: Build wheel on macOS Python3.8
133+
env:
134+
PYTHON_VERSION: '3.8.6'
135+
steps:
136+
- name: Checkout
137+
uses: actions/checkout@v1
138+
- name: Prepare build
139+
run: |
140+
./contrib/install_osx.sh
141+
- name: Build wheel
142+
run: |
143+
source contrib/version_env.sh && ./contrib/script_osx.sh
144+
- name: Upload Release Asset
145+
uses: actions/upload-release-asset@v1
146+
env:
147+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148+
with:
149+
upload_url: ${{ needs.create_release.outputs.upload_url }}
150+
asset_path: dist/python_bls-${{ needs.create_release.outputs.pkg_v }}-cp38-cp38-macosx_10_9_x86_64.whl
151+
asset_name: python_bls-${{ needs.create_release.outputs.pkg_v }}-cp38-cp38-macosx_10_9_x86_64.whl
152+
asset_content_type: application/zip
153+
154+
build_win:
155+
needs: create_release
156+
runs-on: windows-2019
157+
name: Build wheels on Win
158+
strategy:
159+
matrix:
160+
python-version: [[3.6, 'cp36-cp36m'],
161+
[3.7, 'cp37-cp37m'],
162+
[3.8, 'cp38-cp38']]
163+
python-arch: [['x86', 'win32'], ['x64', 'win_amd64']]
164+
env:
165+
PYVER1: ${{ matrix.python-version[1] }}
166+
PYARCH1: ${{ matrix.python-arch[1] }}
167+
steps:
168+
- name: Checkout
169+
uses: actions/checkout@v1
170+
- name: Set up Python
171+
uses: actions/setup-python@v2
172+
with:
173+
python-version: ${{ matrix.python-version[0] }}
174+
architecture: ${{ matrix.python-arch[0] }}
175+
- name: Prepare build
176+
shell: bash
177+
run: |
178+
choco install wget && ./contrib/install_win_ga.sh
179+
- name: Build wheels
180+
shell: bash
181+
run: |
182+
source contrib/version_env.sh && ./contrib/script_win_ga.sh
183+
- name: Upload Release Asset win32 python3.6
184+
uses: actions/upload-release-asset@v1
185+
env:
186+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
187+
with:
188+
upload_url: ${{ needs.create_release.outputs.upload_url }}
189+
asset_path: dist/python_bls-${{ needs.create_release.outputs.pkg_v }}-${{ matrix.python-version[1] }}-${{ matrix.python-arch[1] }}.whl
190+
asset_name: python_bls-${{ needs.create_release.outputs.pkg_v }}-${{ matrix.python-version[1] }}-${{ matrix.python-arch[1] }}.whl
191+
asset_content_type: application/zip

‎.travis.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ matrix:
66
- if: tag =~ .+
77
os: osx
88
osx_image: xcode8
9-
env: PYTHON_VERSION=3.7.4
9+
env: PYTHON_VERSION=3.6.8
1010
- if: tag =~ .+
1111
os: osx
1212
osx_image: xcode8
13-
env: PYTHON_VERSION=3.6.8
13+
env: PYTHON_VERSION=3.7.6
14+
- if: tag =~ .+
15+
os: osx
16+
osx_image: xcode8
17+
env: PYTHON_VERSION=3.8.6
1418
- if: tag =~ .+
1519
os: linux
16-
sudo: required
1720
addons:
1821
apt:
1922
packages:
@@ -23,7 +26,6 @@ matrix:
2326
env: PLAT=manylinux2010_x86_64
2427
- if: tag =~ .+
2528
os: linux
26-
sudo: required
2729
addons:
2830
apt:
2931
packages:
@@ -33,7 +35,6 @@ matrix:
3335
env: PLAT=manylinux1_x86_64
3436
- if: tag =~ .+
3537
os: linux
36-
sudo: required
3738
addons:
3839
apt:
3940
packages:
@@ -64,40 +65,43 @@ script:
6465
fi
6566
deploy:
6667
- provider: releases
67-
skip_cleanup: true
6868
api_key:
6969
secure: DV+4M/nOTmQzrKo12V9YuVlxJRBHeXNbcWyh4ERSaTkeX0btXmZlZQcD2Xpc1bDcugzO73knm4dc+z3k7SgAk/v9iZPphRQ1deaULyo67b4IIMZurKzZNNcccKXKwXanVN9LpDkfn/FwFlHXMYRdOBvIorvs19OUI0ULXXgpz9Xm6tkg9kqotGmrOQZPmibGnT7Aaqq7eYMXiP45wSMjKJsrLG2GJCYlMCvA21zcICwBcxiiSfFfqFzImLxdW6pHKaKbb6233j+f6T5HRl4i4T0DsW4FGm6z+wS+/XnQdso9VbHJVyQz11Y7ZEDpURqbd9DJUfO7YMtBp4DWMVMuB1bRNvsDdv3a8LNzKARmI2Ugw9/QcKs2bG9JREa2xRyuIDLM9cAx+xIuXC6pqx1TGQBSKWFsRj6jy/gDJAlWuFJTKXcRF1nOiT7+gIMZVvrJpbCOv6MpFoeY1tRZBfLhwitX81T6HYK6UbgJ683jaDYGzijY7qOXbue4Et/ahilU+0FZqvpFGgLEUAd+UgjDVGrc9B7/52zyVhg/JR5jOEO2E0pCqKsI/gFV5zN/PBMEfn5fDYdcMo7cwo+AFhcKRqZVxp2UPKzy6180S3CWIqaLiSkXP3T0banRKHRxCbzf47l8Aq5xvrM4GTIiMcqa+t9BmC5Z1oGSlmCAvbHiRQ0=
7070
file:
7171
- dist/python_bls-$PKG_VERSION-cp36-cp36m-win32.whl
7272
- dist/python_bls-$PKG_VERSION-cp36-cp36m-win_amd64.whl
7373
- dist/python_bls-$PKG_VERSION-cp37-cp37m-win32.whl
7474
- dist/python_bls-$PKG_VERSION-cp37-cp37m-win_amd64.whl
75+
- dist/python_bls-$PKG_VERSION-cp38-cp38m-win32.whl
76+
- dist/python_bls-$PKG_VERSION-cp38-cp38m-win_amd64.whl
7577
on:
7678
repo: zebra-lucky/python-bls
7779
tags: true
7880
condition: "$TRAVIS_OS_NAME = windows"
7981
- provider: releases
80-
skip_cleanup: true
8182
api_key:
8283
secure: DV+4M/nOTmQzrKo12V9YuVlxJRBHeXNbcWyh4ERSaTkeX0btXmZlZQcD2Xpc1bDcugzO73knm4dc+z3k7SgAk/v9iZPphRQ1deaULyo67b4IIMZurKzZNNcccKXKwXanVN9LpDkfn/FwFlHXMYRdOBvIorvs19OUI0ULXXgpz9Xm6tkg9kqotGmrOQZPmibGnT7Aaqq7eYMXiP45wSMjKJsrLG2GJCYlMCvA21zcICwBcxiiSfFfqFzImLxdW6pHKaKbb6233j+f6T5HRl4i4T0DsW4FGm6z+wS+/XnQdso9VbHJVyQz11Y7ZEDpURqbd9DJUfO7YMtBp4DWMVMuB1bRNvsDdv3a8LNzKARmI2Ugw9/QcKs2bG9JREa2xRyuIDLM9cAx+xIuXC6pqx1TGQBSKWFsRj6jy/gDJAlWuFJTKXcRF1nOiT7+gIMZVvrJpbCOv6MpFoeY1tRZBfLhwitX81T6HYK6UbgJ683jaDYGzijY7qOXbue4Et/ahilU+0FZqvpFGgLEUAd+UgjDVGrc9B7/52zyVhg/JR5jOEO2E0pCqKsI/gFV5zN/PBMEfn5fDYdcMo7cwo+AFhcKRqZVxp2UPKzy6180S3CWIqaLiSkXP3T0banRKHRxCbzf47l8Aq5xvrM4GTIiMcqa+t9BmC5Z1oGSlmCAvbHiRQ0=
8384
file:
8485
- dist/python_bls-$PKG_VERSION-cp36-cp36m-macosx_10_6_intel.whl
8586
- dist/python_bls-$PKG_VERSION-cp37-cp37m-macosx_10_6_intel.whl
87+
- dist/python_bls-$PKG_VERSION-cp38-cp38-macosx_10_9_x86_64.whl
8688
on:
8789
repo: zebra-lucky/python-bls
8890
tags: true
8991
condition: "$TRAVIS_OS_NAME = osx"
9092
- provider: releases
91-
skip_cleanup: true
9293
api_key:
9394
secure: DV+4M/nOTmQzrKo12V9YuVlxJRBHeXNbcWyh4ERSaTkeX0btXmZlZQcD2Xpc1bDcugzO73knm4dc+z3k7SgAk/v9iZPphRQ1deaULyo67b4IIMZurKzZNNcccKXKwXanVN9LpDkfn/FwFlHXMYRdOBvIorvs19OUI0ULXXgpz9Xm6tkg9kqotGmrOQZPmibGnT7Aaqq7eYMXiP45wSMjKJsrLG2GJCYlMCvA21zcICwBcxiiSfFfqFzImLxdW6pHKaKbb6233j+f6T5HRl4i4T0DsW4FGm6z+wS+/XnQdso9VbHJVyQz11Y7ZEDpURqbd9DJUfO7YMtBp4DWMVMuB1bRNvsDdv3a8LNzKARmI2Ugw9/QcKs2bG9JREa2xRyuIDLM9cAx+xIuXC6pqx1TGQBSKWFsRj6jy/gDJAlWuFJTKXcRF1nOiT7+gIMZVvrJpbCOv6MpFoeY1tRZBfLhwitX81T6HYK6UbgJ683jaDYGzijY7qOXbue4Et/ahilU+0FZqvpFGgLEUAd+UgjDVGrc9B7/52zyVhg/JR5jOEO2E0pCqKsI/gFV5zN/PBMEfn5fDYdcMo7cwo+AFhcKRqZVxp2UPKzy6180S3CWIqaLiSkXP3T0banRKHRxCbzf47l8Aq5xvrM4GTIiMcqa+t9BmC5Z1oGSlmCAvbHiRQ0=
9495
file:
9596
- dist/python_bls-$PKG_VERSION-cp36-cp36m-manylinux1_i686.whl
9697
- dist/python_bls-$PKG_VERSION-cp37-cp37m-manylinux1_i686.whl
98+
- dist/python_bls-$PKG_VERSION-cp38-cp38m-manylinux1_i686.whl
9799
- dist/python_bls-$PKG_VERSION-cp36-cp36m-manylinux1_x86_64.whl
98100
- dist/python_bls-$PKG_VERSION-cp37-cp37m-manylinux1_x86_64.whl
101+
- dist/python_bls-$PKG_VERSION-cp38-cp38m-manylinux1_x86_64.whl
99102
- dist/python_bls-$PKG_VERSION-cp36-cp36m-manylinux2010_x86_64.whl
100103
- dist/python_bls-$PKG_VERSION-cp37-cp37m-manylinux2010_x86_64.whl
104+
- dist/python_bls-$PKG_VERSION-cp38-cp38m-manylinux2010_x86_64.whl
101105
- dist/python-bls-$PKG_VERSION.tar.gz
102106
on:
103107
repo: zebra-lucky/python-bls

‎contrib/build_wheels_linux.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cd /io/
1111
mkdir tests
1212
cp bls_py/tests.py tests/
1313

14-
for PYV in cp36-cp36m cp37-cp37m
14+
for PYV in cp36-cp36m cp37-cp37m cp38-cp38
1515
do
1616
cd /io
1717
/opt/python/$PYV/bin/pip install Cython==0.29.13
@@ -28,5 +28,5 @@ done
2828

2929
if [[ $PLAT == manylinux2010_x86_64 ]]; then
3030
cd /io
31-
/opt/python/cp36-cp36m/bin/python setup.py sdist
31+
/opt/python/cp37-cp37m/bin/python setup.py sdist
3232
fi

‎contrib/install_linux.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ docker pull quay.io/pypa/$PLAT
55

66
wget https://gmplib.org/download/gmp/gmp-6.1.2.tar.lz
77
wget https://gmplib.org/download/gmp/gmp-6.1.2.tar.lz.sig
8-
gpg --recv-keys 28C67298
8+
gpg --keyserver keys.gnupg.net --recv-keys 28C67298
99
gpg --verify gmp-6.1.2.tar.lz.sig
1010
tar --lzip -xf gmp-6.1.2.tar.lz

‎contrib/install_osx.sh

+16-3
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,31 @@
22
set -ev
33

44

5-
PYPKG_NAME=python-$PYTHON_VERSION-macosx10.6.pkg
5+
GMP_BOTTLE=gmp-6.1.2_2.el_capitan.bottle.tar.gz
6+
BINTRAY_URI=https://bintray.com/homebrew/bottles/
7+
wget -O $GMP_BOTTLE ${BINTRAY_URI}download_file?file_path=${GMP_BOTTLE}
8+
brew uninstall --ignore-dependencies gmp
9+
brew install $GMP_BOTTLE
10+
11+
612
case $PYTHON_VERSION in
713
3.6.8)
814
PY_SHA256=3c5fd87a231eca3ee138b0cdc2be6517a7ca428304d41901a86b51c6a22b910c
15+
PYPKG_NAME=python-$PYTHON_VERSION-macosx10.6.pkg
16+
;;
17+
3.7.6)
18+
PY_SHA256=1a595e7e6aca247b8229bd00a8e5fc8879fd85e18a2aa747ee7ecffb500cbfdd
19+
PYPKG_NAME=python-$PYTHON_VERSION-macosx10.6.pkg
920
;;
10-
3.7.4)
11-
PY_SHA256=061c4006efd6374720613a7af1f4b66352900aedb7a374c63d300714ce1835ee
21+
3.8.6)
22+
PY_SHA256=c8195f8b056aff380f1e89dc7dd4c37372c37e5163b91c9391f4256bf5b44fe8
23+
PYPKG_NAME=python-$PYTHON_VERSION-macosx10.9.pkg
1224
;;
1325
esac
1426
echo "$PY_SHA256 $PYPKG_NAME" > $PYPKG_NAME.sha256
1527

1628
PYFTP=https://www.python.org/ftp/python/$PYTHON_VERSION
29+
echo "Downloading $PYFTP/$PYPKG_NAME"
1730
curl -O $PYFTP/$PYPKG_NAME
1831
shasum -a256 -s -c $PYPKG_NAME.sha256
1932
sudo installer -pkg $PYPKG_NAME -target /

‎contrib/install_win.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ wget http://www.tortall.net/projects/yasm/releases/vsyasm-1.3.0-win64.zip
55
mkdir "/c/Program Files/yasm"
66
unzip -d "/c/Program Files/yasm" vsyasm-1.3.0-win64.zip
77
rm vsyasm-1.3.0-win64.zip
8-
choco install -y vcredist2010
98
export PATH="/c/Program Files/yasm:$PATH"
109

11-
choco install -y vcbuildtools
10+
export PATH="/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/:$PATH"
11+
1212
choco install -y python3 --version 3.6.8
1313

1414
export PATH="/c/Python36:/c/Python36/Scripts:$PATH"
1515

1616
git clone https://github.com/BrianGladman/mpir/
1717
cd mpir
1818
echo "1" | python ./msvc/mpir_config.py 15
19-
cd ./msvc/vs15
19+
cd ./msvc/vs19
2020
./msbuild.bat gc lib x64 Release
2121
./msbuild.bat gc lib Win32 Release

‎contrib/install_win_ga.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
set -ev
3+
4+
wget http://www.tortall.net/projects/yasm/releases/vsyasm-1.3.0-win64.zip
5+
mkdir "/c/Program Files/yasm"
6+
unzip -d "/c/Program Files/yasm" vsyasm-1.3.0-win64.zip
7+
rm vsyasm-1.3.0-win64.zip
8+
export PATH="/c/Program Files/yasm:$PATH"
9+
10+
#export PATH="/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/:$PATH"
11+
git clone https://github.com/BrianGladman/mpir/
12+
cd mpir
13+
echo "1" | python ./msvc/mpir_config.py 15
14+
cd ./msvc/vs19
15+
if [[ $PYARCH1 == 'win32' ]]; then
16+
./msbuild.bat gc lib Win32 Release
17+
else
18+
./msbuild.bat gc lib x64 Release
19+
fi

‎contrib/script_osx.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ case $PYTHON_VERSION in
1313
delocate-wheel -v dist/python_bls-$PKG_VERSION-cp36-cp36m-macosx_10_6_intel.whl
1414
sudo pip3 install dist/python_bls-$PKG_VERSION-cp36-cp36m-macosx_10_6_intel.whl
1515
;;
16-
3.7.4)
16+
3.7.6)
1717
export PATH=/Library/Frameworks/Python.framework/Versions/3.7/bin:$PATH
1818
delocate-wheel -v dist/python_bls-$PKG_VERSION-cp37-cp37m-macosx_10_6_intel.whl
1919
sudo pip3 install dist/python_bls-$PKG_VERSION-cp37-cp37m-macosx_10_6_intel.whl
2020
;;
21+
3.8.6)
22+
export PATH=/Library/Frameworks/Python.framework/Versions/3.8/bin:$PATH
23+
delocate-wheel -v dist/python_bls-$PKG_VERSION-cp38-cp38-macosx_10_9_x86_64.whl
24+
sudo pip3 install dist/python_bls-$PKG_VERSION-cp38-cp38-macosx_10_9_x86_64.whl
25+
;;
2126
esac
2227
mkdir tests
2328
cp bls_py/tests.py tests/

‎contrib/script_win.sh

+45-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cd ..
2727
# build python3.7 x64 wheel
2828
choco uninstall -y python3 --version 3.6.8
2929
rm -rf /c/Python36/
30-
choco install -y python3 --version 3.7.4
30+
choco install -y python3 --version 3.7.6
3131

3232
export PATH="/c/Python37:/c/Python37/Scripts:$PATH_BACKUP"
3333
python -m pip install --upgrade pip wheel cython==0.29.13
@@ -43,11 +43,32 @@ python -m pip install ../dist/python_bls-$PKG_VERSION-cp37-cp37m-win_amd64.whl
4343
pytest -vvv tests.py
4444
cd ..
4545

46+
# build python3.8 x64 wheel
47+
choco uninstall -y python3 --version 3.7.6
48+
rm -rf /c/Python36/
49+
choco install -y python3 --version 3.8.6
50+
51+
export PATH="/c/Python38:/c/Python38/Scripts:$PATH_BACKUP"
52+
python -m pip install --upgrade pip wheel cython==0.29.13
53+
54+
rm -rf build
55+
python setup.py build_ext -I $MPIR_DIR -L $MPIR_DIR
56+
python setup.py bdist_wheel
57+
58+
# Tests
59+
cd tests
60+
python -m pip install pytest
61+
python -m pip install ../dist/python_bls-$PKG_VERSION-cp38-cp38m-win_amd64.whl
62+
pytest -vvv tests.py
63+
cd ..
64+
65+
66+
4667
# build win32 wheels
4768
export MPIR_DIR=mpir/lib/win32/Release
4869

49-
# build python3.6 x64 wheel
50-
choco uninstall -y python3 --version 3.7.4
70+
# build python3.6 win32 wheel
71+
choco uninstall -y python3 --version 3.8.6
5172
rm -rf /c/Python37/
5273
choco install -y python3 --version 3.6.8 --x86
5374

@@ -65,10 +86,10 @@ python -m pip install ../dist/python_bls-$PKG_VERSION-cp36-cp36m-win32.whl
6586
pytest -vvv tests.py
6687
cd ..
6788

68-
# build python3.7 x64 wheel
89+
# build python3.7 win32 wheel
6990
choco uninstall -y python3 --version 3.6.8
7091
rm -rf /c/Python36/
71-
choco install -y python3 --version 3.7.4 --x86
92+
choco install -y python3 --version 3.7.6 --x86
7293

7394
export PATH="/c/Python37:/c/Python37/Scripts:$PATH_BACKUP"
7495
python -m pip install --upgrade pip wheel cython==0.29.13
@@ -83,3 +104,22 @@ python -m pip install pytest
83104
python -m pip install ../dist/python_bls-$PKG_VERSION-cp37-cp37m-win32.whl
84105
pytest -vvv tests.py
85106
cd ..
107+
108+
# build python3.8 win32 wheel
109+
choco uninstall -y python3 --version 3.7.6
110+
rm -rf /c/Python36/
111+
choco install -y python3 --version 3.8.6 --x86
112+
113+
export PATH="/c/Python38:/c/Python38/Scripts:$PATH_BACKUP"
114+
python -m pip install --upgrade pip wheel cython==0.29.13
115+
116+
rm -rf build
117+
python setup.py build_ext -I $MPIR_DIR -L $MPIR_DIR
118+
python setup.py bdist_wheel
119+
120+
# Tests
121+
cd tests
122+
python -m pip install pytest
123+
python -m pip install ../dist/python_bls-$PKG_VERSION-cp38-cp38m-win32.whl
124+
pytest -vvv tests.py
125+
cd ..

‎contrib/script_win_ga.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
set -ev
3+
4+
if [[ $PYARCH1 == 'win32' ]]; then
5+
echo win32 build
6+
export MPIR_DIR=mpir/lib/win32/Release
7+
else
8+
echo win64 build
9+
export MPIR_DIR=mpir/lib/x64/Release
10+
fi
11+
12+
python -m pip install --upgrade pip wheel cython==0.29.21
13+
python setup.py build_ext -I $MPIR_DIR -L $MPIR_DIR
14+
python setup.py bdist_wheel
15+
16+
mkdir tests && cp bls_py/tests.py tests/
17+
cd tests
18+
python -m pip install pytest
19+
python -m pip install ../dist/python_bls-$PKG_VERSION-$PYVER1-$PYARCH1.whl
20+
pytest -vvv tests.py

0 commit comments

Comments
 (0)
Please sign in to comment.