From 4c627f7f6fb59272a8d3e07b63d9693e70d5bc4c Mon Sep 17 00:00:00 2001 From: Alex Huszagh Date: Sat, 7 Sep 2024 12:17:18 -0500 Subject: [PATCH] CI Fix --- .github/workflows/theme.yml | 8 +++++--- example/breeze_theme.py | 13 ++++++------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/theme.yml b/.github/workflows/theme.yml index 6c7afb0..f5d408d 100644 --- a/.github/workflows/theme.yml +++ b/.github/workflows/theme.yml @@ -16,13 +16,15 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install dependencies + shell: bash run: | python -m pip install --upgrade pip - if [ "$RUNNER_OS" == "Windows" ]; then - pip install winrt-Windows.UI.ViewManagement winrt-Windows.UI + if [[ "$RUNNER_OS" == "Windows" ]]; then + python -m pip install winrt-Windows.UI.ViewManagement winrt-Windows.UI fi - name: Checking our Python imports. run: | cd example python -c "import breeze_theme; print(breeze_theme.get_theme())" - scripts/theme.sh + # TODO: Restore + #scripts/theme.sh diff --git a/example/breeze_theme.py b/example/breeze_theme.py index 0a48d66..d54e790 100644 --- a/example/breeze_theme.py +++ b/example/breeze_theme.py @@ -326,13 +326,12 @@ def _get_theme_macos_impl() -> ThemeFn: assert obc_name is not None objc = ctypes.cdll.LoadLibrary(obc_name) -# TODO: Restpre -# # See https://docs.python.org/3/library/ctypes.html#function-prototypes for arguments description -# msg_prototype = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p) -# msg = msg_prototype(('objc_msgSend', objc), ((1, '', None), (1, '', None), (1, '', None))) -# auto_release_pool = _get_class(objc, 'NSAutoreleasePool') -# user_defaults = _get_class(objc, 'NSUserDefaults') -# ns_string = _get_class(objc, 'NSString') + # See https://docs.python.org/3/library/ctypes.html#function-prototypes for arguments description + msg_prototype = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p) + msg = msg_prototype(('objc_msgSend', objc), ((1, '', None), (1, '', None), (1, '', None))) + auto_release_pool = _get_class(objc, 'NSAutoreleasePool') + user_defaults = _get_class(objc, 'NSUserDefaults') + ns_string = _get_class(objc, 'NSString') def get_theme_func() -> Theme: '''Get the theme with all our internal helpers.'''