Skip to content

Commit

Permalink
🎉 feat: 更新包的配置&完善Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
B1ue1nWh1te committed Oct 23, 2024
1 parent b0efad0 commit 8c902f4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.vscode
__pycache__
build
dist
*.egg-info
__pycache__
logs
.env
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8c902f4

Please sign in to comment.