diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 3a5cb1ce..4daf34c4 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -1,9 +1,10 @@ name: Wheel build -on: - release: - types: [created] - workflow_dispatch: +# on: +# release: +# types: [created] +# workflow_dispatch: +on: [push, pull_request] concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -37,7 +38,7 @@ jobs: files: dist/*.tar.gz - name: Upload sdist - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: sdist path: dist/*.tar.gz @@ -156,39 +157,16 @@ jobs: path: dist/*.whl if-no-files-found: ignore - publish-to-pypi: - name: Publish Python 🐍 distribution 📦 to PyPI - needs: - - Linux - - non-Linux - runs-on: ubuntu-latest - - environment: - name: pypi - url: https://pypi.org/p/randovania-lupa - permissions: - id-token: write # IMPORTANT: mandatory for trusted publishing - - steps: - - name: Download all the dists - uses: actions/download-artifact@v4 - with: - merge-multiple: true - path: dist/ - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - - # publish-to-testpypi: - # name: Publish Python 🐍 distribution 📦 to TestPyPI + # publish-to-pypi: + # name: Publish Python 🐍 distribution 📦 to PyPI # needs: # - Linux # - non-Linux # runs-on: ubuntu-latest # environment: - # name: testpypi - # url: https://test.pypi.org/p/randovania-lupa - + # name: pypi + # url: https://pypi.org/p/randovania-lupa # permissions: # id-token: write # IMPORTANT: mandatory for trusted publishing @@ -198,7 +176,30 @@ jobs: # with: # merge-multiple: true # path: dist/ - # - name: Publish distribution 📦 to TestPyPI + # - name: Publish distribution 📦 to PyPI # uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # repository-url: https://test.pypi.org/legacy/ + + publish-to-testpypi: + name: Publish Python 🐍 distribution 📦 to TestPyPI + needs: + - Linux + - non-Linux + runs-on: ubuntu-latest + + environment: + name: testpypi + url: https://test.pypi.org/p/randovania-lupa + + permissions: + id-token: write # IMPORTANT: mandatory for trusted publishing + + steps: + - name: Download all the dists + uses: actions/download-artifact@v4 + with: + merge-multiple: true + path: dist/ + - name: Publish distribution 📦 to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ diff --git a/randovania_lupa/_lupa.pyx b/randovania_lupa/_lupa.pyx index 47527d11..a4b9ddf4 100644 --- a/randovania_lupa/_lupa.pyx +++ b/randovania_lupa/_lupa.pyx @@ -614,7 +614,7 @@ cdef class LuaRuntime: lua.lua_settop(L, old_top) unlock_runtime(self) - def compile_to_byes(self, lua_code: str) -> bytes: + def compile_to_bytes(self, lua_code: str) -> bytes: """Compiles a Lua program and returns the bytes. lua_code is a string with the lua code diff --git a/setup.py b/setup.py index 14310619..1006cdea 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ except ImportError: from distutils.core import setup, Extension -VERSION = '2.0' +VERSION = '2.1dev001' extra_setup_args = {}