Repository: beeware/briefcase
Pull request #1978 (2024-08-29 18:18:19)

Bump Toga to 0.4.6 in bootstrap
<!--- Describe your changes in detail -->
<!--- What problem does this change solve? -->
<!--- If this PR relates to an issue, include Refs #XXX or Fixes #XXX -->

## PR Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
- [x] All new features have been tested
- [X] All new features have been documented
- [X] I have read the **CONTRIBUTING.md** file
- [X] I will abide by the code of conduct



Patch:
diff --git a/changes/1978.misc.rst b/changes/1978.misc.rst
new file mode 100644
index 00000000..15f4a283
--- /dev/null
+++ b/changes/1978.misc.rst
@@ -0,0 +1,1 @@
+The Toga bootstrap now specifies v0.4.6 as the minimum version to use.
diff --git a/src/briefcase/bootstraps/toga.py b/src/briefcase/bootstraps/toga.py
index 1d298fec..730a9ee3 100644
--- a/src/briefcase/bootstraps/toga.py
+++ b/src/briefcase/bootstraps/toga.py
@@ -51,7 +51,7 @@ test_requires = [
         return """\
 universal_build = true
 requires = [
-    "toga-cocoa~=0.4.5",
+    "toga-cocoa~=0.4.6",
     "std-nslog~=1.0.0",
 ]
 """
@@ -59,7 +59,7 @@ requires = [
     def pyproject_table_linux(self):
         return """\
 requires = [
-    "toga-gtk~=0.4.5",
+    "toga-gtk~=0.4.6",
 ]
 """
 
@@ -188,14 +188,14 @@ flatpak_sdk = "org.gnome.Sdk"
     def pyproject_table_windows(self):
         return """\
 requires = [
-    "toga-winforms~=0.4.5",
+    "toga-winforms~=0.4.6",
 ]
 """
 
     def pyproject_table_iOS(self):
         return """\
 requires = [
-    "toga-iOS~=0.4.5",
+    "toga-iOS~=0.4.6",
     "std-nslog~=1.0.0",
 ]
 """
@@ -203,7 +203,7 @@ requires = [
     def pyproject_table_android(self):
         return """\
 requires = [
-    "toga-android~=0.4.5",
+    "toga-android~=0.4.6",
 ]
 
 base_theme = "Theme.MaterialComponents.Light.DarkActionBar"
@@ -220,7 +220,7 @@ build_gradle_dependencies = [
     def pyproject_table_web(self):
         return """\
 requires = [
-    "toga-web~=0.4.5",
+    "toga-web~=0.4.6",
 ]
 style_framework = "Shoelace v2.3"
 """


Test patch:
diff --git a/tests/commands/new/test_build_context.py b/tests/commands/new/test_build_context.py
index 6fce2391..4a537d67 100644
--- a/tests/commands/new/test_build_context.py
+++ b/tests/commands/new/test_build_context.py
@@ -98,13 +98,13 @@ test_requires = [
         pyproject_table_macOS="""\
 universal_build = true
 requires = [
-    "toga-cocoa~=0.4.5",
+    "toga-cocoa~=0.4.6",
     "std-nslog~=1.0.0",
 ]
 """,
         pyproject_table_linux="""\
 requires = [
-    "toga-gtk~=0.4.5",
+    "toga-gtk~=0.4.6",
 ]
 """,
         pyproject_table_linux_system_debian="""\
@@ -219,18 +219,18 @@ flatpak_sdk = "org.gnome.Sdk"
 """,
         pyproject_table_windows="""\
 requires = [
-    "toga-winforms~=0.4.5",
+    "toga-winforms~=0.4.6",
 ]
 """,
         pyproject_table_iOS="""\
 requires = [
-    "toga-iOS~=0.4.5",
+    "toga-iOS~=0.4.6",
     "std-nslog~=1.0.0",
 ]
 """,
         pyproject_table_android="""\
 requires = [
-    "toga-android~=0.4.5",
+    "toga-android~=0.4.6",
 ]
 
 base_theme = "Theme.MaterialComponents.Light.DarkActionBar"
@@ -245,7 +245,7 @@ build_gradle_dependencies = [
 """,
         pyproject_table_web="""\
 requires = [
-    "toga-web~=0.4.5",
+    "toga-web~=0.4.6",
 ]
 style_framework = "Shoelace v2.3"
 """,
@@ -995,13 +995,13 @@ test_requires = [
         pyproject_table_macOS="""\
 universal_build = true
 requires = [
-    "toga-cocoa~=0.4.5",
+    "toga-cocoa~=0.4.6",
     "std-nslog~=1.0.0",
 ]
 """,
         pyproject_table_linux="""\
 requires = [
-    "toga-gtk~=0.4.5",
+    "toga-gtk~=0.4.6",
 ]
 """,
         pyproject_table_linux_system_debian="""\
@@ -1116,18 +1116,18 @@ flatpak_sdk = "org.gnome.Sdk"
 """,
         pyproject_table_windows="""\
 requires = [
-    "toga-winforms~=0.4.5",
+    "toga-winforms~=0.4.6",
 ]
 """,
         pyproject_table_iOS="""\
 requires = [
-    "toga-iOS~=0.4.5",
+    "toga-iOS~=0.4.6",
     "std-nslog~=1.0.0",
 ]
 """,
         pyproject_table_android="""\
 requires = [
-    "toga-android~=0.4.5",
+    "toga-android~=0.4.6",
 ]
 
 base_theme = "Theme.MaterialComponents.Light.DarkActionBar"
@@ -1142,7 +1142,7 @@ build_gradle_dependencies = [
 """,
         pyproject_table_web="""\
 requires = [
-    "toga-web~=0.4.5",
+    "toga-web~=0.4.6",
 ]
 style_framework = "Shoelace v2.3"
 """,