From b43f8eac31b2feb5db1afec8a4d621fb154d2bd1 Mon Sep 17 00:00:00 2001 From: Linlang Date: Wed, 18 Dec 2024 14:33:33 +0800 Subject: [PATCH] test upload to testpypi --- .github/workflows/python-publish.yml | 10 ++++++++++ pyproject.toml | 1 + 2 files changed, 11 insertions(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 46dd9b388..d498e118c 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -32,8 +32,13 @@ jobs: run: | make build - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }} run: | ls dist + twine check dist/*.whl + twine upload --repository-url https://test.pypi.org/legacy/ dist/*.whl deploy_with_manylinux: runs-on: ubuntu-latest @@ -53,5 +58,10 @@ jobs: run: | python -m pip list - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }} run: | ls dist + twine check dist/*.whl + twine upload --repository-url https://test.pypi.org/legacy/ dist/*.whl diff --git a/pyproject.toml b/pyproject.toml index 547625d53..bb8cb07f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ name = "pyqlib" dynamic = ["version"] description = "A Quantitative-research Platform" requires-python = ">=3.8.0" +readme = {file = "README.md", content-type = "text/markdown"} dependencies = [ "pyyaml",