Skip to content

Commit

Permalink
[publish sdl2 win] Update sdl2 and sdl_image versions and add Pyt…
Browse files Browse the repository at this point in the history
…hon `3.12` to supported matrix (#95)

* Update sdl2 version and add Python 3.12 to supported matrix

* Use sdl_image==2.7.1 (pre-release version)

* webp and tiff images are not loading

* sdl_image 2.8.0 has been released
  • Loading branch information
misl6 authored Dec 6, 2023
1 parent 2ceeb0e commit bfc1a07
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/windows_sdl2_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths:
- 'win/common.py'
- 'win/sdl2.py'
- 'ci/windows_ci.ps1'
- '.github/workflows/windows_sdl2_wheels.yml'

env:
Expand All @@ -26,14 +27,14 @@ jobs:
env:
PACKAGE_ARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Cache deps
id: cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: kivy_build_cache
key: cache-packages-sdl2-${{ matrix.arch }}-${{ hashFiles('win/sdl2.py') }}
Expand All @@ -52,19 +53,19 @@ jobs:
strategy:
fail-fast: false
matrix:
python: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
python: [ '3.7', '3.8', '3.9', '3.10', '3.11' , '3.12' ]
arch: ['x64', 'x86']
env:
PACKAGE_ARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.arch }}
- name: Cache deps
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: kivy_build_cache
key: cache-packages-sdl2-${{ matrix.arch }}-${{ hashFiles('win/sdl2.py') }}
Expand All @@ -77,7 +78,7 @@ jobs:
. .\ci\windows_ci.ps1
Create-Packages
- name: Upload wheels as artifact
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v3
with:
name: sdl2_wheels
path: dist
Expand Down
11 changes: 8 additions & 3 deletions win/sdl2.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from os import walk
from .common import *

__version__ = '0.6.0'
__version__ = '0.7.0'

sdl2_ver = '2.26.4'
sdl2_ver = '2.28.5'
sdl2_mixer_ver = '2.6.3'
sdl2_ttf_ver = '2.20.2'
sdl2_image_ver = '2.6.3'
sdl2_image_ver = '2.8.0'


def get_sdl2(cache, build_path, arch, package, output, download_only=False):
Expand Down Expand Up @@ -66,6 +66,11 @@ def get_sdl2(cache, build_path, arch, package, output, download_only=False):
if dirpath and dirpath[0] == sep:
dirpath = dirpath[1:]

if dirpath == "optional":
# SDL_* optional libraries should stay in the same
# directory as the main library
dirpath = ""

for filename in filenames:
is_dev = d != 'bin'
if d == 'lib':
Expand Down

0 comments on commit bfc1a07

Please sign in to comment.