Use pyproject.toml

This commit is contained in:
laggykiller 2024-02-24 03:56:27 +08:00
parent 7edd065ce3
commit 3ad1b108a4
6 changed files with 271603 additions and 41 deletions

View file

@ -21,8 +21,36 @@ jobs:
sqlcipher/sqlite3.c
sqlcipher/sqlite3.h
build-wheels:
tests:
needs: [prepare-sqlite]
strategy:
fail-fast: true
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
os: [ubuntu-20.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: false
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v3
with:
name: sqlite-amalgamation
path: ./src/sqlcipher
- name: Build module
run: |
python setup.py build_ext -i
- name: Run tests
run: |
python -m test
build-wheels:
needs: [prepare-sqlite, tests]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
@ -108,10 +136,6 @@ jobs:
name: sqlite-amalgamation
path: ./
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel cibuildwheel
- name: Build wheels for ${{ matrix.os }} ${{ matrix.cibw_archs }} ${{ matrix.cibw_build }}
uses: pypa/cibuildwheel@v2.15.0
env:
@ -128,7 +152,7 @@ jobs:
retention-days: 7
build-sdist:
needs: [prepare-sqlite]
needs: [prepare-sqlite, tests]
runs-on: ubuntu-20.04
steps:
@ -145,10 +169,6 @@ jobs:
name: sqlite-amalgamation
path: ./
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel
- name: Build sdist
run: |
python setup.py sdist