Skip to content

Commit

Permalink
Pin pysdl2-dll==2.0.22 in the ppb bootstrap
Browse files Browse the repository at this point in the history
- ppb==1.1.0 is not compatible with newer versions of pysdl2 libraries
  • Loading branch information
rmartin16 committed Nov 30, 2023
1 parent 0813fba commit ef74d2c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
27 changes: 0 additions & 27 deletions automation/src/automation/bootstraps/pursuedpybear.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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)}"
1 change: 1 addition & 0 deletions src/briefcase/bootstraps/pursuedpybear.py
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}
Expand Down
1 change: 1 addition & 0 deletions tests/commands/new/test_build_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ def main():
requires = [
"ppb~=1.1",
"pysdl2-dll==2.0.22",
]
test_requires = [
{%- if cookiecutter.test_framework == "pytest" %}
Expand Down

0 comments on commit ef74d2c

Please sign in to comment.