This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Github Actions + cibuildwheel for all wheels
- Loading branch information
Showing
8 changed files
with
83 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Build wheels | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_wheels: | ||
name: py${{ matrix.python-version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# cibuildwheel builds linux wheels inside a manylinux container | ||
# it also takes care of procuring the correct python version for us | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: [36, 37, 38, 39, 310] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: "3.9" | ||
- name: Install cibuildwheel | ||
run: | | ||
python -m pip install "cibuildwheel==2.1.3" | ||
- name: Build wheels | ||
env: | ||
CIBW_BUILD: "cp${{ matrix.python-version }}-*" | ||
CIBW_SKIP: "*-manylinux_i686 *-win32" | ||
CIBW_ARCHS_MACOS: "x86_64 arm64" | ||
CIBW_BUILD_VERBOSITY: 1 | ||
CIBW_BEFORE_TEST: pip install pytest | ||
CIBW_TEST_COMMAND: pytest {package} | ||
run: | | ||
python -m cibuildwheel --output-dir wheelhouse . | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: ./wheelhouse/*.whl | ||
build_sdist_python_wheel: | ||
name: sdist and python wheel | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: "3.9" | ||
- name: Run check-manifest | ||
run: | | ||
pip install check-manifest | ||
check-manifest -v | ||
- name: Build sdist and wheel | ||
run: | | ||
pip install --upgrade setuptools pip wheel | ||
python setup.py sdist | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: | | ||
dist/*.tar.gz |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
include ast27/Grammar/Grammar | ||
include ast27/Parser/Python.asdl | ||
recursive-include ast27 *.h | ||
recursive-include ast27 *.py | ||
|
||
include ast3/Grammar/Grammar | ||
include ast3/Parser/Python.asdl | ||
recursive-include ast3 *.h | ||
recursive-include ast3 *.py | ||
|
||
recursive-include ast3/tests *.py | ||
include LICENSE | ||
|
||
prune tools | ||
exclude CONTRIBUTING.md | ||
exclude release_process.md | ||
exclude update_process.md |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.