From 34c2dc9cae70e18eab7d64b54ed46d78625e3301 Mon Sep 17 00:00:00 2001 From: Jinyu-W <53509467+Jinyu-W@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:34:18 +0800 Subject: [PATCH] Master.update build (#599) * add numpy version to build wheel * update PyPI verification method --------- Co-authored-by: Jinyu Wang --- .github/workflows/build_wheel.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index 31cc8cce..3e8ab99f 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -53,7 +53,7 @@ jobs: GITHUB_BUILD_ACTION: True with: python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39' - build-requirements: 'numpy' + build-requirements: 'numpy==1.21.6' system-packages: 'libffi-devel' pre-build-command: 'export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH' pip-wheel-args: '-w ./wheelhouse' # save wheel packages to wheelhouse folder @@ -74,8 +74,8 @@ jobs: - name: Publish wheels to PyPI env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} if: (runner.os == 'Linux' && matrix.python-version == '3.7') || (runner.os == 'Windows' || runner.os == 'macOS') run: | twine upload --verbose dist/*.whl