forked from PyYoshi/cChardet
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cibuildwheel in build chains to actually build 3.10 and 3.11 w…
…heels (#6) * update cibuildwheel to actually build properly * how many times do i gotta fix this * fix up workflows and create new one for building and uploading * fix project url * this project is definitely cursed * end py3.6 support * install proper cibuildwheel versions * only build for 64 bit windows * remove rc0
- Loading branch information
Showing
7 changed files
with
153 additions
and
243 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,66 @@ | ||
name: Build and upload to PyPI | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# Windows builds currently broken | ||
#os: [ubuntu-20.04, windows-2019, macos-11] | ||
os: [ubuntu-20.04, macos-11] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Checkout submodules | ||
shell: bash | ||
run: | | ||
git submodule sync --recursive | ||
git submodule update --init --force --recursive --depth=1 | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_MANYLINUX_X86_64_IMAGE: 'manylinux2014' | ||
CIBW_ARCHS: auto64 | ||
CIBW_BUILD: 'cp3*' | ||
CIBW_SKIP: '*-musllinux_*' | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build sdist | ||
run: pipx run build --sdist | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: dist/*.tar.gz | ||
|
||
upload_pypi: | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
# upload to PyPI on every tag starting with 'v' | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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 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,78 @@ | ||
name: Test for Linux | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheel on Linux | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
name: Install Python 3.11 | ||
with: | ||
python-version: "3.11" | ||
|
||
- uses: actions/setup-python@v4 | ||
name: Install Python 3.10 | ||
with: | ||
python-version: "3.10" | ||
|
||
- uses: actions/setup-python@v4 | ||
name: Install Python 3.9 | ||
with: | ||
python-version: "3.9" | ||
|
||
- uses: actions/setup-python@v4 | ||
name: Install Python 3.8 | ||
with: | ||
python-version: "3.8" | ||
|
||
- uses: actions/setup-python@v4 | ||
name: Install Python 3.7 | ||
with: | ||
python-version: "3.7" | ||
|
||
- name: Install cibuildwheel | ||
run: | | ||
python -m pip install cibuildwheel==2.11.2 | ||
- name: Checkout submodules | ||
shell: bash | ||
run: | | ||
git submodule sync --recursive | ||
git submodule update --init --force --recursive --depth=1 | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements-dev.txt | ||
- name: Test for Python 3.11 | ||
run: | | ||
tox -e py311 | ||
- name: Test for Python 3.10 | ||
run: | | ||
tox -e py310 | ||
- name: Test for Python 3.9 | ||
run: | | ||
tox -e py39 | ||
- name: Test for Python 3.8 | ||
run: | | ||
tox -e py38 | ||
- name: Test for Python 3.7 | ||
run: | | ||
tox -e py37 | ||
- name: Build wheel | ||
run: | | ||
python -m cibuildwheel --output-dir wheelhouse | ||
env: | ||
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* cp311-* |
Oops, something went wrong.