Repository: beeware/briefcase
Pull request #1979 (2024-08-29 23:38:01)

Bump min version for miscellaneous dependencies
## Changes
- std-nslog 1.0.0 -> 1.0.3
- Pygame 2.2 -> 2.6
- PySide6 6.5 -> 6.7
- org.kde.Platform 6.6 -> 6.7
- org.gnome.Platform 45 -> 46

<!--- 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/1979.misc.rst b/changes/1979.misc.rst
new file mode 100644
index 00000000..8430aa38
--- /dev/null
+++ b/changes/1979.misc.rst
@@ -0,0 +1,1 @@
+The minimum version for misc dependencies for new projects were bumped to their latest version.
diff --git a/src/briefcase/bootstraps/pygame.py b/src/briefcase/bootstraps/pygame.py
index eb1c5068..f4c0f304 100644
--- a/src/briefcase/bootstraps/pygame.py
+++ b/src/briefcase/bootstraps/pygame.py
@@ -55,7 +55,7 @@ def main():
     def pyproject_table_briefcase_app_extra_content(self):
         return """
 requires = [
-    "pygame~=2.2",
+    "pygame~=2.6",
 ]
 test_requires = [
 {% if cookiecutter.test_framework == "pytest" %}
@@ -68,7 +68,7 @@ test_requires = [
         return """\
 universal_build = true
 requires = [
-    "std-nslog~=1.0.0",
+    "std-nslog~=1.0.3",
 ]
 """
 
diff --git a/src/briefcase/bootstraps/pyside6.py b/src/briefcase/bootstraps/pyside6.py
index c76d8340..6c457516 100644
--- a/src/briefcase/bootstraps/pyside6.py
+++ b/src/briefcase/bootstraps/pyside6.py
@@ -47,8 +47,8 @@ def main():
     def pyproject_table_briefcase_app_extra_content(self):
         return """
 requires = [
-    "PySide6-Essentials~=6.5",
-    # "PySide6-Addons~=6.5",
+    "PySide6-Essentials~=6.7",
+    # "PySide6-Addons~=6.7",
 ]
 test_requires = [
 {% if cookiecutter.test_framework == "pytest" %}
@@ -61,7 +61,7 @@ test_requires = [
         return """\
 universal_build = true
 requires = [
-    "std-nslog~=1.0.0",
+    "std-nslog~=1.0.3",
 ]
 """
 
@@ -146,7 +146,7 @@ linuxdeploy_plugins = [
     def pyproject_table_linux_flatpak(self):
         return """\
 flatpak_runtime = "org.kde.Platform"
-flatpak_runtime_version = "6.6"
+flatpak_runtime_version = "6.7"
 flatpak_sdk = "org.kde.Sdk"
 """
 
diff --git a/src/briefcase/bootstraps/toga.py b/src/briefcase/bootstraps/toga.py
index 730a9ee3..f1c9b24f 100644
--- a/src/briefcase/bootstraps/toga.py
+++ b/src/briefcase/bootstraps/toga.py
@@ -52,7 +52,7 @@ test_requires = [
 universal_build = true
 requires = [
     "toga-cocoa~=0.4.6",
-    "std-nslog~=1.0.0",
+    "std-nslog~=1.0.3",
 ]
 """
 
@@ -181,7 +181,7 @@ linuxdeploy_plugins = [
     def pyproject_table_linux_flatpak(self):
         return """\
 flatpak_runtime = "org.gnome.Platform"
-flatpak_runtime_version = "45"
+flatpak_runtime_version = "46"
 flatpak_sdk = "org.gnome.Sdk"
 """
 
@@ -196,7 +196,7 @@ requires = [
         return """\
 requires = [
     "toga-iOS~=0.4.6",
-    "std-nslog~=1.0.0",
+    "std-nslog~=1.0.3",
 ]
 """
 


Test patch:
diff --git a/tests/commands/new/test_build_context.py b/tests/commands/new/test_build_context.py
index 4a537d67..c37ff261 100644
--- a/tests/commands/new/test_build_context.py
+++ b/tests/commands/new/test_build_context.py
@@ -99,7 +99,7 @@ test_requires = [
 universal_build = true
 requires = [
     "toga-cocoa~=0.4.6",
-    "std-nslog~=1.0.0",
+    "std-nslog~=1.0.3",
 ]
 """,
         pyproject_table_linux="""\
@@ -214,7 +214,7 @@ linuxdeploy_plugins = [
 """,
         pyproject_table_linux_flatpak="""\
 flatpak_runtime = "org.gnome.Platform"
-flatpak_runtime_version = "45"
+flatpak_runtime_version = "46"
 flatpak_sdk = "org.gnome.Sdk"
 """,
         pyproject_table_windows="""\
@@ -225,7 +225,7 @@ requires = [
         pyproject_table_iOS="""\
 requires = [
     "toga-iOS~=0.4.6",
-    "std-nslog~=1.0.0",
+    "std-nslog~=1.0.3",
 ]
 """,
         pyproject_table_android="""\
@@ -450,8 +450,8 @@ def main():
 """,
         pyproject_table_briefcase_app_extra_content="""
 requires = [
-    "PySide6-Essentials~=6.5",
-    # "PySide6-Addons~=6.5",
+    "PySide6-Essentials~=6.7",
+    # "PySide6-Addons~=6.7",
 ]
 test_requires = [
 {% if cookiecutter.test_framework == "pytest" %}
@@ -462,7 +462,7 @@ test_requires = [
         pyproject_table_macOS="""\
 universal_build = true
 requires = [
-    "std-nslog~=1.0.0",
+    "std-nslog~=1.0.3",
 ]
 """,
         pyproject_table_linux="""\
@@ -533,7 +533,7 @@ linuxdeploy_plugins = [
 """,
         pyproject_table_linux_flatpak="""\
 flatpak_runtime = "org.kde.Platform"
-flatpak_runtime_version = "6.6"
+flatpak_runtime_version = "6.7"
 flatpak_sdk = "org.kde.Sdk"
 """,
         pyproject_table_windows="""\
@@ -635,7 +635,7 @@ def main():
 """,
         pyproject_table_briefcase_app_extra_content="""
 requires = [
-    "pygame~=2.2",
+    "pygame~=2.6",
 ]
 test_requires = [
 {% if cookiecutter.test_framework == "pytest" %}
@@ -646,7 +646,7 @@ test_requires = [
         pyproject_table_macOS="""\
 universal_build = true
 requires = [
-    "std-nslog~=1.0.0",
+    "std-nslog~=1.0.3",
 ]
 """,
         pyproject_table_linux="""\
@@ -996,7 +996,7 @@ test_requires = [
 universal_build = true
 requires = [
     "toga-cocoa~=0.4.6",
-    "std-nslog~=1.0.0",
+    "std-nslog~=1.0.3",
 ]
 """,
         pyproject_table_linux="""\
@@ -1111,7 +1111,7 @@ linuxdeploy_plugins = [
 """,
         pyproject_table_linux_flatpak="""\
 flatpak_runtime = "org.gnome.Platform"
-flatpak_runtime_version = "45"
+flatpak_runtime_version = "46"
 flatpak_sdk = "org.gnome.Sdk"
 """,
         pyproject_table_windows="""\
@@ -1122,7 +1122,7 @@ requires = [
         pyproject_table_iOS="""\
 requires = [
     "toga-iOS~=0.4.6",
-    "std-nslog~=1.0.0",
+    "std-nslog~=1.0.3",
 ]
 """,
         pyproject_table_android="""\
diff --git a/tests/config/test_parse_config.py b/tests/config/test_parse_config.py
index b48caee9..3ea345e6 100644
--- a/tests/config/test_parse_config.py
+++ b/tests/config/test_parse_config.py
@@ -669,7 +669,7 @@ def test_pep621_defaults():
         [tool.briefcase.app.awesome.macOS]
         requires = [
             "toga-cocoa~=0.3.1",
-            "std-nslog~=1.0.0"
+            "std-nslog~=1.0.3"
         ]
         """
     )
@@ -691,7 +691,7 @@ def test_pep621_defaults():
         "author_email": "kim@example.com",
         "url": "https://example.com/awesome",
         "description": "awesome project",
-        "requires": ["numpy", "toga-cocoa~=0.3.1", "std-nslog~=1.0.0"],
+        "requires": ["numpy", "toga-cocoa~=0.3.1", "std-nslog~=1.0.3"],
         "test_requires": ["pytest"],
         "app_name": "awesome",
         "sources": ["src"],