Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify examples to use "local source" installs of toga #1374

Merged
merged 2 commits into from
Dec 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions examples/.template/{{ cookiecutter.name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,33 @@ author_email = "[email protected]"
formal_name = "{{ cookiecutter.formal_name }}"
description = "A testing app"
sources = ['{{ cookiecutter.name }}']
requires = []
requires = [
'../../src/core',
]


[tool.briefcase.app.{{ cookiecutter.name }}.macOS]
requires = [
'toga-cocoa',
'../../src/cocoa',
]

[tool.briefcase.app.{{ cookiecutter.name }}.linux]
requires = [
'toga-gtk',
'../../src/gtk',
]

[tool.briefcase.app.{{ cookiecutter.name }}.windows]
requires = [
'toga-winforms',
'../../src/winforms',
]

# Mobile deployments
[tool.briefcase.app.{{ cookiecutter.name }}.iOS]
requires = [
'toga-iOS',
'../../src/iOS',
]

[tool.briefcase.app.{{ cookiecutter.name }}.android]
requires = [
'toga-android',
'../../src/android',
]
14 changes: 8 additions & 6 deletions examples/activityindicator/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,33 @@ author_email = "[email protected]"
formal_name = "Activity Indicator"
description = "A testing app"
sources = ['activityindicator']
requires = []
requires = [
'../../src/core',
]


[tool.briefcase.app.activityindicator.macOS]
requires = [
'toga-cocoa',
'../../src/cocoa',
]

[tool.briefcase.app.activityindicator.linux]
requires = [
'toga-gtk',
'../../src/gtk',
]

[tool.briefcase.app.activityindicator.windows]
requires = [
'toga-winforms',
'../../src/winforms',
]

# Mobile deployments
[tool.briefcase.app.activityindicator.iOS]
requires = [
'toga-iOS',
'../../src/iOS',
]

[tool.briefcase.app.activityindicator.android]
requires = [
'toga-android',
'../../src/android',
]
14 changes: 8 additions & 6 deletions examples/beeliza/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,33 @@ author_email = "[email protected]"
formal_name = "Beeliza"
description = "A testing app"
sources = ['beeliza']
requires = []
requires = [
'../../src/core',
]


[tool.briefcase.app.beeliza.macOS]
requires = [
'toga-cocoa',
'../../src/cocoa',
]

[tool.briefcase.app.beeliza.linux]
requires = [
'toga-gtk',
'../../src/gtk',
]

[tool.briefcase.app.beeliza.windows]
requires = [
'toga-winforms',
'../../src/winforms',
]

# Mobile deployments
[tool.briefcase.app.beeliza.iOS]
requires = [
'toga-iOS',
'../../src/iOS',
]

[tool.briefcase.app.beeliza.android]
requires = [
'toga-android',
'../../src/android',
]
5 changes: 5 additions & 0 deletions examples/box/box/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,8 @@ def main():
# App name and namespace
app = ExampleBoxApp("Box", "org.beeware.widgets.boxes")
return app


if __name__ == '__main__':
app = main()
app.main_loop()
14 changes: 8 additions & 6 deletions examples/box/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,33 @@ author_email = "[email protected]"
formal_name = "Box Demo"
description = "A testing app"
sources = ['box']
requires = []
requires = [
'../../src/core',
]


[tool.briefcase.app.box.macOS]
requires = [
'toga-cocoa',
'../../src/cocoa',
]

[tool.briefcase.app.box.linux]
requires = [
'toga-gtk',
'../../src/gtk',
]

[tool.briefcase.app.box.windows]
requires = [
'toga-winforms',
'../../src/winforms',
]

# Mobile deployments
[tool.briefcase.app.box.iOS]
requires = [
'toga-iOS',
'../../src/iOS',
]

[tool.briefcase.app.box.android]
requires = [
'toga-android',
'../../src/android',
]
5 changes: 5 additions & 0 deletions examples/button/button/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,8 @@ def main():
# App name and namespace
app = ExampleButtonApp('Button', 'org.beeware.widgets.buttons')
return app


if __name__ == '__main__':
app = main()
app.main_loop()
14 changes: 8 additions & 6 deletions examples/button/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,33 @@ author_email = "[email protected]"
formal_name = "Button Demo"
description = "A testing app"
sources = ['button']
requires = []
requires = [
'../../src/core',
]


[tool.briefcase.app.button.macOS]
requires = [
'toga-cocoa',
'../../src/cocoa',
]

[tool.briefcase.app.button.linux]
requires = [
'toga-gtk',
'../../src/gtk',
]

[tool.briefcase.app.button.windows]
requires = [
'toga-winforms',
'../../src/winforms',
]

# Mobile deployments
[tool.briefcase.app.button.iOS]
requires = [
'toga-iOS',
'../../src/iOS',
]

[tool.briefcase.app.button.android]
requires = [
'toga-android',
'../../src/android',
]
14 changes: 8 additions & 6 deletions examples/canvas/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,33 @@ author_email = "[email protected]"
formal_name = "Canvas Demo"
description = "A testing app"
sources = ['canvas']
requires = []
requires = [
'../../src/core',
]


[tool.briefcase.app.canvas.macOS]
requires = [
'toga-cocoa',
'../../src/cocoa',
]

[tool.briefcase.app.canvas.linux]
requires = [
'toga-gtk',
'../../src/gtk',
]

[tool.briefcase.app.canvas.windows]
requires = [
'toga-winforms',
'../../src/winforms',
]

# Mobile deployments
[tool.briefcase.app.canvas.iOS]
requires = [
'toga-iOS',
'../../src/iOS',
]

[tool.briefcase.app.canvas.android]
requires = [
'toga-android',
'../../src/android',
]
10 changes: 5 additions & 5 deletions examples/command/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ formal_name = "Command Example"
description = "A testing app"
sources = ['command']
requires = [
'toga-core'
'../../src/core',
]


[tool.briefcase.app.command.macOS]
requires = [
'toga-cocoa',
'../../src/cocoa',
]

[tool.briefcase.app.command.linux]
requires = [
'toga-gtk',
'../../src/gtk',
]

[tool.briefcase.app.command.windows]
Expand All @@ -37,10 +37,10 @@ requires = [
# Mobile deployments
[tool.briefcase.app.command.iOS]
requires = [
'toga-iOS',
'../../src/iOS',
]

[tool.briefcase.app.command.android]
requires = [
'toga-android',
'../../src/android',
]
14 changes: 8 additions & 6 deletions examples/detailedlist/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,33 @@ author_email = "[email protected]"
formal_name = "DetailedList Demo"
description = "A testing app"
sources = ['detailedlist']
requires = []
requires = [
'../../src/core',
]


[tool.briefcase.app.detailedlist.macOS]
requires = [
'toga-cocoa',
'../../src/cocoa',
]

[tool.briefcase.app.detailedlist.linux]
requires = [
'toga-gtk',
'../../src/gtk',
]

[tool.briefcase.app.detailedlist.windows]
requires = [
'toga-winforms',
'../../src/winforms',
]

# Mobile deployments
[tool.briefcase.app.detailedlist.iOS]
requires = [
'toga-iOS',
'../../src/iOS',
]

[tool.briefcase.app.detailedlist.android]
requires = [
'toga-android',
'../../src/android',
]
14 changes: 8 additions & 6 deletions examples/dialogs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,33 @@ author_email = "[email protected]"
formal_name = "Dialog Demo"
description = "A testing app"
sources = ['dialogs']
requires = []
requires = [
'../../src/core',
]


[tool.briefcase.app.dialogs.macOS]
requires = [
'toga-cocoa',
'../../src/cocoa',
]

[tool.briefcase.app.dialogs.linux]
requires = [
'toga-gtk',
'../../src/gtk',
]

[tool.briefcase.app.dialogs.windows]
requires = [
'toga-winforms',
'../../src/winforms',
]

# Mobile deployments
[tool.briefcase.app.dialogs.iOS]
requires = [
'toga-iOS',
'../../src/iOS',
]

[tool.briefcase.app.dialogs.android]
requires = [
'toga-android',
'../../src/android',
]
5 changes: 5 additions & 0 deletions examples/divider/divider/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ def main():
# App name and namespace
app = DividerApp('Dividers', 'org.beeware.helloworld')
return app


if __name__ == '__main__':
app = main()
app.main_loop()
Loading