Skip to content

Commit

Permalink
publish nstools to pypi.org
Browse files Browse the repository at this point in the history
  • Loading branch information
seiya-git committed Nov 11, 2023
1 parent 88f129c commit 037cf88
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
4 changes: 2 additions & 2 deletions py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 037cf88

Please sign in to comment.