From f0ec89add1d6d7a63be5601691cc5e6cf77b0628 Mon Sep 17 00:00:00 2001 From: mdr0id Date: Fri, 4 Oct 2024 15:35:36 -0700 Subject: [PATCH] Add pypi packaging --- .github/workflows/publish.yml | 29 +++++++++++++++++++++++++++++ setup.py | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..24c7e22 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ +name: Publish Python Package + +on: + push: + branches: + - master + tags: + - 'v*' + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/setup.py b/setup.py index d970ba5..050eaba 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup( - name='jito_jsonrpc_sdk', + name='jito_py_rpc', version='0.1.0', packages=find_packages(where='sdk'), package_dir={'': 'sdk'},