Skip to content

Commit

Permalink
Merge pull request #64 from beeware/framework-lib
Browse files Browse the repository at this point in the history
Modifications to support framework-style packaging.
  • Loading branch information
freakboy3742 committed Aug 15, 2024
2 parents 8b777f2 + 1751ed1 commit e684683
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13-dev" ]
framework: [ "toga", "pyside6", "pygame", "console" ]

exclude:
# PySide6 hasn't published 3.13 wheels.
- python-version: "3.13-dev"
framework: "pyside6"

# Pygame hasn't published 3.13 wheels.
- python-version: "3.13-dev"
framework: "pygame"
25 changes: 16 additions & 9 deletions {{ cookiecutter.format }}/briefcase.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
# Generated using Python {{ cookiecutter.python_version }}
[briefcase]
# This is the start of the framework-based support package era.
target_version = "0.3.20"

[paths]
app_path = "{{ cookiecutter.formal_name }}.app/Contents/Resources/app"
app_packages_path = "{{ cookiecutter.formal_name }}.app/Contents/Resources/app_packages"
info_plist_path = "{{ cookiecutter.formal_name }}.app/Contents/Info.plist"
entitlements_path = "Entitlements.plist"
support_path = "{{ cookiecutter.formal_name }}.app/Contents/Resources/support"
support_path = "{{ cookiecutter.formal_name }}.app/Contents/Frameworks"
runtime_path = "Python.xcframework/macos-arm64_x86_64/Python.framework"
{{ {
"3.8": "support_revision = 14",
"3.9": "support_revision = 12",
"3.10": "support_revision = 8",
"3.11": "support_revision = 3",
"3.12": "support_revision = 2",
"3.9": "support_revision = 13",
"3.10": "support_revision = 9",
"3.11": "support_revision = 4",
"3.12": "support_revision = 3",
"3.13": "support_revision = 0",
}.get(cookiecutter.python_version|py_tag, "") }}
stub_binary_revision = 8
stub_binary_revision = 9
cleanup_paths = [
"{{ cookiecutter.formal_name }}.app/Contents/Resources/support/Python.xcframework",
"{{ cookiecutter.formal_name }}.app/Contents/Resources/support/platform-site",
"{{ cookiecutter.formal_name }}.app/Contents/Frameworks/Python.framework/**/Headers",
"{{ cookiecutter.formal_name }}.app/Contents/Frameworks/Python.framework/**/include",
"{{ cookiecutter.formal_name }}.app/Contents/Frameworks/Python.framework/**/config-*-darwin",
"{{ cookiecutter.formal_name }}.app/Contents/Frameworks/Python.framework/**/pkg-config",
]
icon = "{{ cookiecutter.formal_name }}.app/Contents/Resources/{{ cookiecutter.app_name }}.icns"
{% for extension, doctype in cookiecutter.document_types.items() -%}
Expand Down

0 comments on commit e684683

Please sign in to comment.