From 8c902f483cb05604a49af8372271575c4bedd1f2 Mon Sep 17 00:00:00 2001 From: B1ue1nWh1te Date: Wed, 23 Oct 2024 20:35:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20feat:=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=8C=85=E7=9A=84=E9=85=8D=E7=BD=AE&=E5=AE=8C=E5=96=84Github?= =?UTF-8?q?=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gitleaks.yml | 2 -- .github/workflows/pypi.yml | 16 ++++++---------- .gitignore | 4 +--- poetry.lock | 4 ++-- pyproject.toml | 2 +- 5 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index 9b296ac..c38346c 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -19,8 +19,6 @@ jobs: uses: gitleaks/gitleaks-action@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - fail-on-error: true - name: Exit If Gitleaks Check Failed if: failure() diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index deeaffc..284d79d 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -18,18 +18,14 @@ jobs: with: python-version: "3.11" - - name: Install Tools + - name: Install And Configure Poetry run: | - python -m pip install --upgrade poetry twine + python -m pip install --upgrade poetry poetry config virtualenvs.create false + poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} - - name: Build Package + - name: Build And Publish To PyPI run: | - poetry install + poetry install --no-dev poetry build - twine check --strict dist/* - - - name: Publish To PyPI - uses: pypa/gh-action-pypi-publish@v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }} + poetry publish diff --git a/.gitignore b/.gitignore index a8d1c53..5368713 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,5 @@ .vscode -__pycache__ -build dist -*.egg-info +__pycache__ logs .env diff --git a/poetry.lock b/poetry.lock index 0e719ac..1845eda 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2428,5 +2428,5 @@ reference = "tsinghua" [metadata] lock-version = "2.0" -python-versions = ">=3.9, <4" -content-hash = "af432064f0bec71c348f0ea11b8b75aabc2900b7833cac15febd392cd1cab3ee" +python-versions = "^3.9" +content-hash = "ab95d97f85c96448ddd71593b4bda093ae6d4b42d562ae917afe57312a3ab034" diff --git a/pyproject.toml b/pyproject.toml index c12e7d5..f4a2f6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ classifiers=[ ] [tool.poetry.dependencies] -python = ">=3.9, <4" +python = "^3.9" web3 = "^7.4.0" py-solc-x = "^2.0.3" multicall = "^0.9.0"