Skip to content

Commit

Permalink
Merge pull request #49 from beeware/py3.13-support
Browse files Browse the repository at this point in the history
Add support for Python 3.13
  • Loading branch information
freakboy3742 authored Sep 5, 2024
2 parents e48e075 + b7b2247 commit 42ea09b
Show file tree
Hide file tree
Showing 33 changed files with 30 additions and 20 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- "windows-app"
- "iOS"
- "android"
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13-dev" ]
include:
- runs-on: ubuntu-latest
- pre-command:
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
briefcase-run-args: ' -d "iPhone SE (3rd generation)"'

- backend: android
runs-on: "ubuntu-latest"
runs-on: ubuntu-latest
briefcase-target: "android"
briefcase-run-args: >
--device '{"avd":"beePhone"}'
Expand All @@ -106,12 +106,22 @@ jobs:
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
exclude:
# Binary packages aren't available for 3.11+ on Android yet
- backend: "android"
# Cryptography isn't available for 3.11+ on Android yet
- backend: android
python-version: "3.11"

- backend: "android"
- backend: android
python-version: "3.12"
# Binary packages aren't available for 3.13 on Android yet
- backend: android
python-version: "3.13-dev"
# Support package isn't available for 3.13 on Linux
- backend: "linux-flatpak"
python-version: "3.13-dev"
# Support package isn't available for 3.13 on Window
- backend: "windows-VisualStudio"
python-version: "3.13-dev"
- backend: "windows-app"
python-version: "3.13-dev"

steps:
- name: Checkout
Expand All @@ -132,6 +142,7 @@ jobs:
uses: beeware/.github/.github/actions/install-briefcase@main

- name: Test App
timeout-minutes: 15
run: briefcase run ${{ matrix.briefcase-target }} --test ${{ matrix.briefcase-run-args }}

- name: Package
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added icons/testbed-1280.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added icons/testbed-1920.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added icons/testbed-640.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added icons/testbed.icns
Binary file not shown.
23 changes: 12 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project_name = "Testbed"
bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
license.file = "LICENSE"
author = 'Russell Keith-Magee'
author_email = "[email protected]"

Expand All @@ -14,17 +14,17 @@ long_description = """A test of common use cases and known problems with bundled
Validates 3rd party module loading, as well as basic app packaging.
"""
icon = "src/testbed/resources/testbed"
icon = "icons/testbed"
sources = ["src/testbed"]
test_sources = ["tests"]

requires = [
# Binary wheels on iOS all need to be updated for the new sysconfig platform tag.
"cryptography; platform_system != 'iOS'",
"lru_dict; platform_system != 'iOS'",
"pillow; platform_system != 'iOS'",
"numpy; platform_system != 'iOS'",
"pandas; platform_system != 'iOS'",
"cryptography",
"lru_dict",
"pillow",
# Numpy/pandas aren't available on 3.13.
"numpy; python_version < '3.13'",
"pandas; python_version < '3.13'",
]
test_requires = [
"pytest",
Expand All @@ -37,10 +37,11 @@ requires = [
"rubicon-objc",
"std-nslog",
]
# support_package = "../Python-Apple-support/dist/Python-3.8-macOS-support.custom.tar.gz"
# support_package = "../Python-Apple-support/dist/Python-3.13-macOS-support.custom.tar.gz"

[tool.briefcase.app.testbed.macOS.app]
# template = "../../templates/briefcase-macOS-app-template"
# stub_binary = "../../templates/briefcase-macOS-Xcode-template/stub/build/gui-stub/macos/xcode/build/Release/GUI Stub.app/Contents/MacOS/GUI Stub"

[tool.briefcase.app.testbed.macOS.Xcode]
# template = "../../templates/briefcase-macOS-Xcode-template"
Expand Down Expand Up @@ -93,7 +94,7 @@ requires = [
"rubicon-objc",
"std-nslog",
]
# support_package = "../Python-Apple-support/dist/Python-3.8-iOS-support.custom.tar.gz"
# support_package = "../Python-Apple-support/dist/Python-3.13-iOS-support.custom.tar.gz"
# template = "../../templates/briefcase-iOS-Xcode-template"

[tool.briefcase.app.testbed.android]
Expand All @@ -102,7 +103,7 @@ requires = [
"tzdata",
]

# support_package = "../Python-Android-support/dist/Python-3.10-Android-support.custom.zip"
# support_package = "../Python-Android-support/dist/Python-3.13-Android-support.custom.zip"
# template = "../../templates/briefcase-Android-gradle-template"

[tool.isort]
Expand Down
4 changes: 1 addition & 3 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_bootstrap_modules():


def test_stdlib_modules():
"All the stdlib modules exist"
"All the stdlib binary modules exist"
missing = []
all_modules = [
"_asyncio",
Expand Down Expand Up @@ -95,8 +95,6 @@ def test_stdlib_modules():
"syslog",
"termios",
"unicodedata",
# Scheduled for deprecation
"audioop",
]

# Modules added in 3.8
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 42ea09b

Please sign in to comment.