-
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.
.github/workflows/release: use pypa/cibuildwheel.
- Loading branch information
Showing
7 changed files
with
34 additions
and
59 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 |
---|---|---|
@@ -1,50 +1,30 @@ | ||
name: Release | ||
name: Build | ||
|
||
on: workflow_dispatch | ||
|
||
|
||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
BRANCH: ${{ github.head_ref || github.ref_name }} | ||
|
||
O | ||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: gh repo clone amirouche/asyncio-foundationdb -- --branch $BRANCH --depth 1 | ||
- run: cd asyncio-foundationdb && git fetch --tags | ||
- run: cd asyncio-foundationdb && gh release create --draft $(git tag --points-at HEAD) | ||
|
||
check-build-release: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
python-version: | ||
- 3.9 | ||
- "3.10" | ||
- "3.11" | ||
# - "3.12" # it is still early, first released 2023-09-19. | ||
- pypy-3.8 | ||
- pypy-3.9 | ||
os: | ||
- ubuntu-latest | ||
os: [ubuntu-22.04, windows-2019, macOS-11] | ||
|
||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.python-version }} on ${{ matrix.os }} | ||
needs: create-release | ||
steps: | ||
- run: gh repo clone amirouche/asyncio-foundationdb -- --branch $BRANCH --depth 1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
# Used to host cibuildwheel | ||
- uses: actions/setup-python@v3 | ||
|
||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==2.16.2 | ||
|
||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
# to supply options, put them in 'env', like: | ||
# env: | ||
# CIBW_SOME_OPTION: value | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- run: python --version | ||
- run: cd asyncio-foundationdb && sudo make init-foundationdb | ||
- run: cd asyncio-foundationdb && ./venv python | ||
- run: cd asyncio-foundationdb && ./venv make init | ||
- run: cd asyncio-foundationdb && ./venv make database-clear | ||
- run: cd asyncio-foundationdb && ./venv python readme.py | ||
- run: cd asyncio-foundationdb && ./venv make check | ||
- run: cd asyncio-foundationdb && ./venv poetry config pypi-token.pypi ${{ secrets.PYPI_ASYNCIO_FOUNDATIONDB }} | ||
- run: cd asyncio-foundationdb && ./venv poetry publish --build --skip-existing | ||
path: ./wheelhouse/*.whl |
File renamed without changes.
File renamed without changes.
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
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
requires = ["setuptools>=61.0", "wheel", "cffi"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "asyncio-foundationdb" | ||
version = "v0.12.0rc0" | ||
version = "v0.12.0rc1" | ||
description = "FoundationDB drivers for asyncio" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
|
||
[console_scripts] | ||
template = "template:__main__" | ||
requires-python = ">=3.8" | ||
dynamic = ["dependencies"] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements.txt"]} |