Skip to content

Commit 48cee12

Browse files
authored
Merge pull request #183 from odidev/odidev_vpython-jupyter
Add linux aarch64 wheel build support
2 parents 5fc722c + 14286d1 commit 48cee12

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,41 @@ jobs:
5858
- name: Import test
5959
run: |
6060
python -c "import vpython"
61+
62+
build_aarch64:
63+
64+
strategy:
65+
fail-fast: false
66+
matrix:
67+
python-version: [cp37-cp37m, cp38-cp38, cp39-cp39, cp310-cp310]
68+
runs-on: ubuntu-latest
69+
env:
70+
py: /opt/python/${{ matrix.python-version }}/bin/python
71+
img: quay.io/pypa/manylinux2014_aarch64
72+
73+
steps:
74+
75+
- uses: actions/checkout@v1
76+
77+
- name: Set up QEMU
78+
id: qemu
79+
uses: docker/setup-qemu-action@v1
80+
81+
- name: Build and Test
82+
run: |
83+
docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \
84+
${{ env.img }} \
85+
bash -exc '${{ env.py }} -m venv .env && \
86+
source .env/bin/activate && \
87+
echo -e "\e[1;34m Install dependencies \e[0m" && \
88+
python -m pip install --upgrade pip && \
89+
pip install pytest Cython wheel && \
90+
echo -e "\e[1;34m Build wheel \e[0m" && \
91+
python setup.py bdist_wheel && \
92+
echo -e "\e[1;34m Install vpython \e[0m" && \
93+
pip install . && \
94+
echo -e "\e[1;34m Run tests \e[0m" && \
95+
pytest vpython && \
96+
echo -e "\e[1;34m Import test \e[0m" && \
97+
python -c "import vpython" && \
98+
deactivate'

.github/workflows/upload_pypi.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,33 @@ jobs:
6666
run: |
6767
twine upload dist/vpython-*-manylinux*.whl
6868
69+
linux_aarch64_wheels:
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v1
73+
- name: Set up Python
74+
uses: actions/setup-python@v1
75+
with:
76+
python-version: 3.8
77+
- name: Set up QEMU
78+
id: qemu
79+
uses: docker/setup-qemu-action@v1
80+
- name: Install dependencies
81+
run: |
82+
python -m pip install --upgrade pip
83+
pip install twine
84+
- name: Python wheels manylinux build
85+
uses: RalfG/[email protected]_aarch64
86+
with:
87+
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
88+
build-requirements: 'setuptools cython'
89+
- name: Build and publish wheel
90+
env:
91+
TWINE_USERNAME: __token__
92+
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_TOKEN }}
93+
run: |
94+
twine upload dist/vpython-*-manylinux*.whl
95+
6996
sdist:
7097
runs-on: ubuntu-latest
7198
steps:

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ We are certain the list is incomplete; please let one of us know by opening an [
2525
+ Craig C. Wiegert ([@wigie](https://github.com/wigie))
2626
+ [@jonschull](https://github.com/jonschull)
2727
+ [@KHALAK](https://github.com/KHALAK)
28+
+ [@odidev](https://github.com/odidev)
2829
+ [@qazwsxedcrfvtg14](https://github.com/qazwsxedcrfvtg14)
2930
+ [@russkel](https://github.com/russkel)
3031
+ Kyle Dunn ([@kdunn926](https://github.com/kdunn926))

0 commit comments

Comments
 (0)