From 10cadf5334a8b3308ba53591870130455eb71d87 Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Sat, 16 Mar 2024 11:45:59 +0100 Subject: [PATCH] :construction_worker: Fix broken setup workflow Also remove the Python 2 io import --- .github/workflows/setup.yml | 2 +- kivy_ios/toolchain.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml index 1842994b..f5b4b594 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/setup.yml @@ -25,7 +25,7 @@ jobs: run: | python -m venv venv . venv/bin/activate - pip install dist/kivy-ios-*.tar.gz + pip install dist/kivy_ios-*.tar.gz pip install Cython==0.29.36 brew install autoconf automake libtool pkg-config - name: Basic toolchain commands diff --git a/kivy_ios/toolchain.py b/kivy_ios/toolchain.py index cd30b318..87aa66dd 100755 --- a/kivy_ios/toolchain.py +++ b/kivy_ios/toolchain.py @@ -16,7 +16,6 @@ import zipfile import tarfile import importlib -import io import json import shutil import fnmatch @@ -99,7 +98,7 @@ def __init__(self, filename): self.data = {} if exists(filename): try: - with io.open(filename, encoding='utf-8') as fd: + with open(filename, encoding='utf-8') as fd: self.data = json.load(fd) except ValueError: logger.warning("Unable to read the state.db, content will be replaced.")