-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
146 lines (127 loc) · 5.13 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[tool.briefcase]
project_name = "Testbed"
bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license.file = "LICENSE"
author = 'Russell Keith-Magee'
author_email = "[email protected]"
[tool.briefcase.app.testbed]
formal_name = "Testbed"
description = "A testbed for the Apple Support packages."
long_description = """A test of common use cases and known problems with bundled apps.
Validates 3rd party module loading, as well as basic app packaging.
"""
icon = "icons/testbed"
sources = ["src/testbed"]
test_sources = ["tests"]
requires = [
# Cryptography provides an ABI3 wheel for all desktop platforms, but requires cffi which doesn't.
"""cryptography; \
(platform_system != 'iOS' and platform_system != 'Android' and python_version < '3.14') \
or (platform_system == 'iOS' and python_version < '3.14') \
or (platform_system == 'Android' and python_version < '3.14')""",
# lru_dict not available anywhere on 3.14
"""lru_dict; \
(platform_system != 'iOS' and platform_system != 'Android' and python_version < '3.14') \
or (platform_system == 'iOS' and python_version < '3.14') \
or (platform_system == 'Android' and python_version < '3.14')""",
# pillow not available anywhere on 3.14
"""pillow; \
(platform_system != 'iOS' and platform_system != 'Android' and python_version < '3.14') \
or (platform_system == 'iOS' and python_version < '3.14') \
or (platform_system == 'Android' and python_version < '3.14')""",
# pyspamum has 3.13 wheels on iOS and Android; and no wheels on Windows
# On Linux, we need to restrict the test to Python3.13+, because Android reports
# as "Linux" on Python3.12 and earlier.
"""pyspamsum; \
(platform_system == 'Darwin' and python_version < '3.14') \
or (platform_system == 'iOS' and python_version == '3.13') \
or (platform_system == 'Android' and python_version == '3.13') \
or (platform_system == 'Linux' and python_version == '3.13')""",
# Numpy not available on iOS for 3.13+, or all on 3.14.
"""numpy; \
(platform_system != 'iOS' and platform_system != 'Android' and python_version < '3.14') \
or (platform_system == 'iOS' and python_version < '3.13') \
or (platform_system == 'Android' and python_version < '3.14')""",
# Pandas not available on iOS for 3.13+, or all on 3.14.
"""pandas; \
(platform_system != 'iOS' and platform_system != 'Android' and python_version < '3.14') \
or (platform_system == 'iOS' and python_version < '3.13') \
or (platform_system == 'Android' and python_version < '3.14')""",
]
test_requires = [
"pytest",
]
requirement_installer_args = [
"-f", "./wheels"
]
[tool.briefcase.app.testbed.macOS]
requires = [
# Provide a source of binary wheels that aren't provided on PyPI.
"rubicon-objc",
"std-nslog",
]
# support_package = "../Python-Apple-support/dist/Python-3.14-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"
[tool.briefcase.app.testbed.linux]
requires=[
'pycairo',
'pygobject',
]
[tool.briefcase.app.testbed.linux.system.debian]
system_requires = [
# Needed to compile pycairo wheel
"libcairo2-dev",
# Needed to compile PyGObject wheel
"libgirepository1.0-dev",
]
system_runtime_requires = [
# Needed to provide GTK and its GI bindings
"gir1.2-gtk-3.0",
"libgirepository-1.0-1",
# Dependencies that GTK looks for at runtime
"libcanberra-gtk3-module",
]
[tool.briefcase.app.testbed.linux.flatpak]
flatpak_runtime = "org.gnome.Platform"
flatpak_runtime_version = "45"
flatpak_sdk = "org.gnome.Sdk"
# template = "../../templates/briefcase-linux-flatpak-template"
[tool.briefcase.app.testbed.windows]
requires = [
# Python.net isn't avaialble for 3.14 yet.
"pythonnet>=3.0.0; python_version < '3.14'",
# Windows doesn't provide the zoneinfo TZ database; use the Python provided one
"tzdata",
]
[tool.briefcase.app.testbed.windows.app]
# template = "../../templates/briefcase-windows-app-template"
[tool.briefcase.app.testbed.windows.VisualStudio]
# template = "../../templates/briefcase-windows-VisualStudio-template"
# Mobile deployments
[tool.briefcase.app.testbed.iOS]
requires = [
"rubicon-objc",
"std-nslog",
]
# support_package = "../Python-Apple-support/dist/Python-3.14-iOS-support.custom.tar.gz"
# template = "../../templates/briefcase-iOS-Xcode-template"
[tool.briefcase.app.testbed.android]
requires = [
# Android doesn't provide the zoneinfo TZ database; use the Python provided one
"tzdata",
]
base_theme = "Theme.MaterialComponents.Light.DarkActionBar"
build_gradle_dependencies = [
"com.google.android.material:material:1.11.0",
]
# template = "../../templates/briefcase-android-gradle-template"
[tool.isort]
profile = "black"
split_on_trailing_comma = true
combine_as_imports = true