diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..53b61a4 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,44 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Upload Python Package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.12' + + - name: Install dependencies + run: | + pip install poetry + poetry shell + poetry install + + - name: Build package + run: poetry build + + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml deleted file mode 100644 index 39bcd63..0000000 --- a/.github/workflows/pypi.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Upload package to PyPI - -on: - release: - types: [created] - -jobs: - publish: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4.2.0 - - - name: Set up Python - uses: actions/setup-python@v5.1.0 - with: - python-version: '3.12' - - - name: Install Poetry - run: pip install poetry - - - name: Install dependencies - run: poetry install - - - name: Build package - run: poetry build - - - name: Show Secret - run: echo "${{ secrets.PYPI_TOKEN }}" - - - name: Publish to PyPI - env: - PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} - run: poetry publish -u __token__ -p "$PYPI_TOKEN" diff --git a/nodeflow/__init__.py b/nodeflow/__init__.py index e69de29..64a797c 100644 --- a/nodeflow/__init__.py +++ b/nodeflow/__init__.py @@ -0,0 +1,4 @@ +from nodeflow.adapters import * +from nodeflow.converter import * +from nodeflow.manager import * +from nodeflow.node import *