Skip to content

Commit

Permalink
Merge pull request #1724 from rmartin16/template-whitespace
Browse files Browse the repository at this point in the history
Support cookiecutter v2.6.0
  • Loading branch information
freakboy3742 authored Apr 9, 2024
2 parents 31a8b91 + 95c58bb commit 29f6745
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 136 deletions.
1 change: 1 addition & 0 deletions changes/1663.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Creating new projects is now compatible with cookiecutter v2.6.0.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ dependencies = [
# If the package uses calver, we don't pin the upper version, as the upper version
# provides no basis for determining API stability.
#
"cookiecutter >= 2.3.1, < 2.6.0", # See beeware/briefcase#1663 to bump <2.6.0 pin
"cookiecutter >= 2.6.0, < 3.0",
"dmgbuild >= 1.6, < 2.0; sys_platform == 'darwin'",
"GitPython >= 3.1, < 4.0",
"platformdirs >= 2.6, < 5.0",
Expand Down
29 changes: 14 additions & 15 deletions src/briefcase/bootstraps/pursuedpybear.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,33 +49,32 @@ def main():

def pyproject_table_briefcase_app_extra_content(self):
return """
requires = [
"ppb~=3.2.0",
]
test_requires = [
{%- if cookiecutter.test_framework == "pytest" %}
{% if cookiecutter.test_framework == "pytest" %}
"pytest",
{%- endif %}
{% endif %}
]
"""

def pyproject_table_macOS(self):
return """
return """\
universal_build = true
requires = [
"std-nslog~=1.0.0",
]
"""

def pyproject_table_linux(self):
return """
return """\
requires = [
]
"""

def pyproject_table_linux_system_debian(self):
return """
return """\
system_requires = [
]
Expand All @@ -89,7 +88,7 @@ def pyproject_table_linux_system_debian(self):
"""

def pyproject_table_linux_system_rhel(self):
return """
return """\
system_requires = [
]
Expand All @@ -104,7 +103,7 @@ def pyproject_table_linux_system_rhel(self):
"""

def pyproject_table_linux_system_suse(self):
return """
return """\
system_requires = [
]
Expand All @@ -119,7 +118,7 @@ def pyproject_table_linux_system_suse(self):
"""

def pyproject_table_linux_system_arch(self):
return """
return """\
system_requires = [
]
Expand All @@ -133,7 +132,7 @@ def pyproject_table_linux_system_arch(self):
"""

def pyproject_table_linux_appimage(self):
return """
return """\
manylinux = "manylinux_2_28"
system_requires = [
Expand All @@ -144,29 +143,29 @@ def pyproject_table_linux_appimage(self):
"""

def pyproject_table_linux_flatpak(self):
return """
return """\
flatpak_runtime = "org.freedesktop.Platform"
flatpak_runtime_version = "23.08"
flatpak_sdk = "org.freedesktop.Sdk"
"""

def pyproject_table_windows(self):
return """
return """\
requires = [
]
"""

def pyproject_table_iOS(self):
return """
return """\
supported = false
"""

def pyproject_table_android(self):
return """
return """\
supported = false
"""

def pyproject_table_web(self):
return """
return """\
supported = false
"""
29 changes: 14 additions & 15 deletions src/briefcase/bootstraps/pygame.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,33 +59,32 @@ def main():

def pyproject_table_briefcase_app_extra_content(self):
return """
requires = [
"pygame~=2.2",
]
test_requires = [
{%- if cookiecutter.test_framework == "pytest" %}
{% if cookiecutter.test_framework == "pytest" %}
"pytest",
{%- endif %}
{% endif %}
]
"""

def pyproject_table_macOS(self):
return """
return """\
universal_build = true
requires = [
"std-nslog~=1.0.0",
]
"""

def pyproject_table_linux(self):
return """
return """\
requires = [
]
"""

def pyproject_table_linux_system_debian(self):
return """
return """\
system_requires = [
]
Expand All @@ -94,7 +93,7 @@ def pyproject_table_linux_system_debian(self):
"""

def pyproject_table_linux_system_rhel(self):
return """
return """\
system_requires = [
]
Expand All @@ -103,7 +102,7 @@ def pyproject_table_linux_system_rhel(self):
"""

def pyproject_table_linux_system_suse(self):
return """
return """\
system_requires = [
]
Expand All @@ -112,7 +111,7 @@ def pyproject_table_linux_system_suse(self):
"""

def pyproject_table_linux_system_arch(self):
return """
return """\
system_requires = [
]
Expand All @@ -121,7 +120,7 @@ def pyproject_table_linux_system_arch(self):
"""

def pyproject_table_linux_appimage(self):
return """
return """\
manylinux = "manylinux_2_28"
system_requires = [
Expand All @@ -132,29 +131,29 @@ def pyproject_table_linux_appimage(self):
"""

def pyproject_table_linux_flatpak(self):
return """
return """\
flatpak_runtime = "org.freedesktop.Platform"
flatpak_runtime_version = "23.08"
flatpak_sdk = "org.freedesktop.Sdk"
"""

def pyproject_table_windows(self):
return """
return """\
requires = [
]
"""

def pyproject_table_iOS(self):
return """
return """\
supported = false
"""

def pyproject_table_android(self):
return """
return """\
supported = false
"""

def pyproject_table_web(self):
return """
return """\
supported = false
"""
29 changes: 14 additions & 15 deletions src/briefcase/bootstraps/pyside6.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,33 @@ def main():

def pyproject_table_briefcase_app_extra_content(self):
return """
requires = [
"PySide6-Essentials~=6.5",
# "PySide6-Addons~=6.5",
]
test_requires = [
{%- if cookiecutter.test_framework == "pytest" %}
{% if cookiecutter.test_framework == "pytest" %}
"pytest",
{%- endif %}
{% endif %}
]
"""

def pyproject_table_macOS(self):
return """
return """\
universal_build = true
requires = [
"std-nslog~=1.0.0",
]
"""

def pyproject_table_linux(self):
return """
return """\
requires = [
]
"""

def pyproject_table_linux_system_debian(self):
return """
return """\
system_requires = [
]
Expand Down Expand Up @@ -102,7 +101,7 @@ def pyproject_table_linux_system_debian(self):
"""

def pyproject_table_linux_system_rhel(self):
return """
return """\
system_requires = [
]
Expand All @@ -112,7 +111,7 @@ def pyproject_table_linux_system_rhel(self):
"""

def pyproject_table_linux_system_suse(self):
return """
return """\
system_requires = [
]
Expand All @@ -123,7 +122,7 @@ def pyproject_table_linux_system_suse(self):
"""

def pyproject_table_linux_system_arch(self):
return """
return """\
system_requires = [
]
Expand All @@ -133,7 +132,7 @@ def pyproject_table_linux_system_arch(self):
"""

def pyproject_table_linux_appimage(self):
return """
return """\
manylinux = "manylinux_2_28"
system_requires = [
Expand All @@ -145,29 +144,29 @@ def pyproject_table_linux_appimage(self):
"""

def pyproject_table_linux_flatpak(self):
return """
return """\
flatpak_runtime = "org.kde.Platform"
flatpak_runtime_version = "6.6"
flatpak_sdk = "org.kde.Sdk"
"""

def pyproject_table_windows(self):
return """
return """\
requires = [
]
"""

def pyproject_table_iOS(self):
return """
return """\
supported = false
"""

def pyproject_table_android(self):
return """
return """\
supported = false
"""

def pyproject_table_web(self):
return """
return """\
supported = false
"""
Loading

0 comments on commit 29f6745

Please sign in to comment.