diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 4091d36..45a94a3 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -8,20 +8,20 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-13] + os: [ubuntu-latest, windows-latest, macos-15-intel] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 name: Install Python with: - python-version: '3.11' + python-version: '3.13' - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==2.22.0 + python -m pip install cibuildwheel==3.2.1 - name: Build wheel run: | python -m cibuildwheel --output-dir dist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: wheels path: dist/ @@ -41,7 +41,7 @@ jobs: run: | export V=$(python -c "print(next(iter(eval(L.split('=')[-1]) for L in open('pyproject.toml') if 'version =' in L)))") echo "tag=${V}" >> "$GITHUB_ENV" - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 - name: Create Release uses: ncipollo/release-action@v1 with: @@ -59,8 +59,8 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - name: Download Wheels - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@release/v1.13.0 with: packages-dir: wheels \ No newline at end of file diff --git a/embreex/rtcore_scene.pyx b/embreex/rtcore_scene.pyx index 87424e4..8929f07 100644 --- a/embreex/rtcore_scene.pyx +++ b/embreex/rtcore_scene.pyx @@ -28,9 +28,9 @@ cdef void error_printer(const rtc.RTCError code, const char *_str) noexcept: cdef class EmbreeScene: def __init__(self, rtc.EmbreeDevice device=None, robust=False): if device is None: - # We store the embree device inside EmbreeScene to avoid premature deletion - self.device = rtc.EmbreeDevice() - device = self.device + device = rtc.EmbreeDevice() + # We store the embree device inside EmbreeScene to avoid premature deletion + self.device = device flags = RTC_SCENE_STATIC if robust: # bitwise-or the robust flag diff --git a/pyproject.toml b/pyproject.toml index 77afc32..3292cc2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta" [project] name = "embreex" -version = "2.17.7.post6" +version = "2.17.7.post7" requires-python = ">=3.8" dependencies = ["numpy"] @@ -32,7 +32,7 @@ find = {namespaces = false} embreex = ["*.pxd"] [tool.cibuildwheel] -skip = "pp* *i686 *-win32 *musllinux*" +skip = "*i686 *-win32 *musllinux*" manylinux-x86_64-image = "manylinux_2_28" before-test = "pip install pytest" test-command = "pytest -v {project}/tests"