-
-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
39 additions
and
56 deletions.
There are no files selected for viewing
39 changes: 34 additions & 5 deletions
39
.github/workflows/build.yaml → .github/workflows/build-and-test.yaml
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,49 +1,78 @@ | ||
name: build | ||
name: Build, test and release | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
- bugfix/* | ||
- feature/* | ||
tags: | ||
- v* | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
sdist: | ||
name: build sdist wheel | ||
name: Build sdist wheel | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: pipx run build --sdist | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./dist/*.tar.gz | ||
|
||
bdist: | ||
name: build bdist wheels | ||
name: Build bdist wheels and test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04, macos-11, windows-2019] | ||
os: [ubuntu-22.04, macos-12, macos-14, windows-2019] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- if: runner.os == 'Linux' | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: all | ||
|
||
# macOS make is too old | ||
- if: runner.os == 'macOS' | ||
run: brew install make | ||
- name: Build | ||
|
||
- name: Build and test wheels | ||
uses: pypa/[email protected] | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
upload_all: | ||
needs: [bdist, sdist] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/[email protected] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
|
||
- name: Upload release files | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
./dist/*.whl | ||
./dist/*.tar.gz |
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
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,6 +1,6 @@ | ||
[project] | ||
name = "curl_cffi" | ||
version = "0.6.0b8" | ||
version = "0.6.0b9" | ||
authors = [{ name = "Yifei Kong", email = "[email protected]" }] | ||
description = "libcurl ffi bindings for Python, with impersonation support" | ||
license = { file = "LICENSE" } | ||
|
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