From 037cf88d02dcc1d57dcdeea3031f6bd1bbae5562 Mon Sep 17 00:00:00 2001 From: seiya-git Date: Sat, 11 Nov 2023 16:35:08 +0300 Subject: [PATCH] publish nstools to pypi.org --- .github/workflows/publish-to-test-pypi.yml | 9 +++++++-- README.md | 5 +++++ py/setup.py | 4 ++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 52037343..16162c42 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -48,7 +48,10 @@ jobs: path: py/dist/ - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - + with: + password: ${{ secrets.TOKEN }} + packages-dir: py/dist + github-release: name: >- Sign the Python 🐍 distribution 📦 with Sigstore @@ -89,7 +92,7 @@ jobs: # sigstore-produced signatures and certificates. run: >- gh release upload - '${{ github.ref_name }}' dist/** + '${{ github.ref_name }}' py/dist/** --repo '${{ github.repository }}' publish-to-testpypi: @@ -115,3 +118,5 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ + password: ${{ secrets.TOKEN_TEST }} + packages-dir: py/dist diff --git a/README.md b/README.md index d6f73ab3..a13ddc95 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,8 @@ Tools for XCI, XCZ, NSP and NSZ Based on nut, NSC_B and nsz + +# pypi.org + +for using nstools.Fs, nstools.lib and nstools.nut: +https://pypi.org/project/nstools/ diff --git a/py/setup.py b/py/setup.py index 31c16637..777b94ba 100644 --- a/py/setup.py +++ b/py/setup.py @@ -2,13 +2,13 @@ setuptools.setup( name='nstools', - version='1.1.0', + version='1.1.2', url="https://github.com/seiya-dev/NSTools", + long_description="tools for xci/xcz/nsp/nsz", packages=['nstools.Fs', 'nstools.nut', 'nstools.lib'], install_requires=[ 'zstandard', 'enlighten', - 'requests', 'pycryptodome', ], python_requires = '>=3.10',