fix pyproject authors.

Use latest version for `uses` in Github Actions.
This commit is contained in:
Syoyo Fujita
2024-01-03 02:43:56 +09:00
parent e37f490531
commit d62bbc2697
2 changed files with 18 additions and 13 deletions

View File

@@ -13,10 +13,10 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/cibuildwheel@v2.12.1
uses: pypa/cibuildwheel@v2.16.2
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
@@ -28,8 +28,9 @@ jobs:
CIBW_ARCHS_LINUX: "x86_64 i686"
CIBW_SKIP: pp*
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
# It looks cibuildwheels did not clean build folder(CMake), and it results to Windows arm64 build failure(trying to reuse x86 build of .obj)
@@ -39,10 +40,10 @@ jobs:
name: Build ARM64 wheels on Windows.
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/cibuildwheel@v2.12.1
uses: pypa/cibuildwheel@v2.16.2
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
@@ -51,15 +52,16 @@ jobs:
CIBW_ARCHS_WINDOWS: "ARM64"
CIBW_SKIP: pp*
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
make_sdist:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Optional, use if you use setuptools_scm
submodules: true # Optional, use if you have submodules
@@ -67,13 +69,15 @@ jobs:
- name: Build SDist
run: pipx run build --sdist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz
upload_all:
needs: [build_wheels, build_wheels, make_sdist]
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
@@ -82,10 +86,11 @@ jobs:
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'push' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
pattern: cibw-*
path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1
with:

View File

@@ -14,8 +14,8 @@ line-length = 140
name = "tinyusdz"
version = "0.8.0rc5"
description = "Python binding of TinyUSDZ"
license = "Apache-2.0"
authors = ["Syoyo Fujita <syoyofujtia@gmail.com>",
"Light Transport Entertainment, Inc. <syoyo@lighttransport.com>"
license = {file = "LICENSE"}
authors = [{ name = "Syoyo Fujita", email = "syoyofujtia@gmail.com"},
{ name = "Light Transport Entertainment, Inc.", email = "syoyo@lighttransport.com"}
]
readme = {file = "README.md", content-type = "text/markdown"}