diff --git a/automation/src/automation/bootstraps/pursuedpybear.py b/automation/src/automation/bootstraps/pursuedpybear.py index 54e699d62..0545adeac 100644 --- a/automation/src/automation/bootstraps/pursuedpybear.py +++ b/automation/src/automation/bootstraps/pursuedpybear.py @@ -1,12 +1,3 @@ -import sys - -import tomli_w - -if sys.version_info >= (3, 11): - import tomllib -else: - import tomli as tomllib - from automation.bootstraps import BRIEFCASE_EXIT_SUCCESS_SIGNAL, EXIT_SUCCESS_NOTIFY from briefcase.bootstraps import PursuedPyBearGuiBootstrap @@ -63,21 +54,3 @@ def main(): title=metadata["Formal-Name"], ) """ - - # The constraint of pysdl2-dll==2.0.22 is required for ppb==1.1.0; - # the libraries in later versions of pysdl2-dll are not compatible. - - def pyproject_table_linux_flatpak(self): - table = tomllib.loads(super().pyproject_table_linux_flatpak()) - table.setdefault("requires", []).append("pysdl2-dll==2.0.22") - return f"\n{tomli_w.dumps(table)}" - - def pyproject_table_windows(self): - table = tomllib.loads(super().pyproject_table_windows()) - table.setdefault("requires", []).append("pysdl2-dll==2.0.22") - return f"\n{tomli_w.dumps(table)}" - - def pyproject_table_macOS(self): - table = tomllib.loads(super().pyproject_table_macOS()) - table.setdefault("requires", []).append("pysdl2-dll==2.0.22") - return f"\n{tomli_w.dumps(table)}" diff --git a/src/briefcase/bootstraps/pursuedpybear.py b/src/briefcase/bootstraps/pursuedpybear.py index a166fd56f..15f682d17 100644 --- a/src/briefcase/bootstraps/pursuedpybear.py +++ b/src/briefcase/bootstraps/pursuedpybear.py @@ -52,6 +52,7 @@ def pyproject_table_briefcase_app_extra_content(self): requires = [ "ppb~=1.1", + "pysdl2-dll==2.0.22", ] test_requires = [ {%- if cookiecutter.test_framework == "pytest" %} diff --git a/tests/commands/new/test_build_context.py b/tests/commands/new/test_build_context.py index 8d57aaf90..05f44a473 100644 --- a/tests/commands/new/test_build_context.py +++ b/tests/commands/new/test_build_context.py @@ -523,6 +523,7 @@ def main(): requires = [ "ppb~=1.1", + "pysdl2-dll==2.0.22", ] test_requires = [ {%- if cookiecutter.test_framework == "pytest" %}