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

Add support for briefcase run to examples #1995

Merged
merged 6 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from 5 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
1 change: 1 addition & 0 deletions changes/1995.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The example apps were updated to support being run with ``briefcase run`` on all platforms.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty files are a bit weird; it would be desirable to have at least some dummy content:

See Toga releases for change notes.

Empty file.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LICENSE files definitely can't be empty - I'm sure someone would choose to interpret this as "this code is free for all", and decide that applies to the entire Toga repo.

Released under the same license as Toga. See the root of the Toga repository for details.

Empty file.
22 changes: 11 additions & 11 deletions examples/activityindicator/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author = "Tiberius Yak"
author_email = "tiberius@beeware.org"

[tool.briefcase.app.activityindicator]
formal_name = "Activity Indicator"
description = "A testing app"
sources = ['activityindicator']
sources = ["activityindicator"]
requires = [
'../../core',
"../../core",
]


[tool.briefcase.app.activityindicator.macOS]
requires = [
'../../cocoa',
'std-nslog>=1.0.0',
"../../cocoa",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.activityindicator.linux]
requires = [
'../../gtk',
"../../gtk",
]

[tool.briefcase.app.activityindicator.windows]
requires = [
'../../winforms',
"../../winforms",
]

# Mobile deployments
[tool.briefcase.app.activityindicator.iOS]
requires = [
'../../iOS',
'std-nslog>=1.0.0',
"../../iOS",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.activityindicator.android]
requires = [
'../../android',
"../../android",
]

# Web deployment
[tool.briefcase.app.activityindicator.web]
requires = [
'../../web',
"../../web",
]
style_framework = "Shoelace v2.3"
Empty file added examples/beeliza/CHANGELOG
Empty file.
Empty file added examples/beeliza/LICENSE
Empty file.
22 changes: 11 additions & 11 deletions examples/beeliza/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author = "Tiberius Yak"
author_email = "tiberius@beeware.org"

[tool.briefcase.app.beeliza]
formal_name = "Beeliza"
description = "A testing app"
sources = ['beeliza']
sources = ["beeliza"]
requires = [
'../../core',
"../../core",
]


[tool.briefcase.app.beeliza.macOS]
requires = [
'../../cocoa',
'std-nslog>=1.0.0',
"../../cocoa",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.beeliza.linux]
requires = [
'../../gtk',
"../../gtk",
]

[tool.briefcase.app.beeliza.windows]
requires = [
'../../winforms',
"../../winforms",
]

# Mobile deployments
[tool.briefcase.app.beeliza.iOS]
requires = [
'../../iOS',
'std-nslog>=1.0.0',
"../../iOS",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.beeliza.android]
requires = [
'../../android',
"../../android",
]

# Web deployment
[tool.briefcase.app.beeliza.web]
requires = [
'../../web',
"../../web",
]
style_framework = "Shoelace v2.3"
Empty file added examples/box/CHANGELOG
Empty file.
Empty file added examples/box/LICENSE
Empty file.
2 changes: 1 addition & 1 deletion examples/box/box/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def set_green_color(self, widget):
self.outer_box.style.background_color = GREEN

def reset_color(self, widget):
self.outer_box.style.background_color = None
del self.outer_box.style.background_color

def toggle_yellow_button(self, widget):
if widget.value:
Expand Down
22 changes: 11 additions & 11 deletions examples/box/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author = "Tiberius Yak"
author_email = "tiberius@beeware.org"

[tool.briefcase.app.box]
formal_name = "Box Demo"
description = "A testing app"
sources = ['box']
sources = ["box"]
requires = [
'../../core',
"../../core",
]


[tool.briefcase.app.box.macOS]
requires = [
'../../cocoa',
'std-nslog>=1.0.0',
"../../cocoa",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.box.linux]
requires = [
'../../gtk',
"../../gtk",
]

[tool.briefcase.app.box.windows]
requires = [
'../../winforms',
"../../winforms",
]

# Mobile deployments
[tool.briefcase.app.box.iOS]
requires = [
'../../iOS',
'std-nslog>=1.0.0',
"../../iOS",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.box.android]
requires = [
'../../android',
"../../android",
]

# Web deployment
[tool.briefcase.app.box.web]
requires = [
'../../web',
"../../web",
]
style_framework = "Shoelace v2.3"
Empty file added examples/button/CHANGELOG
Empty file.
Empty file added examples/button/LICENSE
Empty file.
22 changes: 11 additions & 11 deletions examples/button/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author = "Tiberius Yak"
author_email = "tiberius@beeware.org"

[tool.briefcase.app.button]
formal_name = "Button Demo"
description = "A testing app"
sources = ['button']
sources = ["button"]
requires = [
'../../core',
"../../core",
]


[tool.briefcase.app.button.macOS]
requires = [
'../../cocoa',
'std-nslog>=1.0.0',
"../../cocoa",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.button.linux]
requires = [
'../../gtk',
"../../gtk",
]

[tool.briefcase.app.button.windows]
requires = [
'../../winforms',
"../../winforms",
]

# Mobile deployments
[tool.briefcase.app.button.iOS]
requires = [
'../../iOS',
'std-nslog>=1.0.0',
"../../iOS",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.button.android]
requires = [
'../../android',
"../../android",
]

# Web deployment
[tool.briefcase.app.button.web]
requires = [
'../../web',
"../../web",
]
style_framework = "Shoelace v2.3"
Empty file added examples/canvas/CHANGELOG
Empty file.
Empty file added examples/canvas/LICENSE
Empty file.
22 changes: 11 additions & 11 deletions examples/canvas/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author = "Tiberius Yak"
author_email = "tiberius@beeware.org"

[tool.briefcase.app.canvas]
formal_name = "Canvas Demo"
description = "A testing app"
sources = ['canvas']
sources = ["canvas"]
requires = [
'../../core',
"../../core",
]


[tool.briefcase.app.canvas.macOS]
requires = [
'../../cocoa',
'std-nslog>=1.0.0',
"../../cocoa",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.canvas.linux]
requires = [
'../../gtk',
"../../gtk",
]

[tool.briefcase.app.canvas.windows]
requires = [
'../../winforms',
"../../winforms",
]

# Mobile deployments
[tool.briefcase.app.canvas.iOS]
requires = [
'../../iOS',
'std-nslog>=1.0.0',
"../../iOS",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.canvas.android]
requires = [
'../../android',
"../../android",
]

# Web deployment
[tool.briefcase.app.canvas.web]
requires = [
'../../web',
"../../web",
]
style_framework = "Shoelace v2.3"
Empty file added examples/colors/CHANGELOG
Empty file.
Empty file added examples/colors/LICENSE
Empty file.
22 changes: 11 additions & 11 deletions examples/colors/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author = "Tiberius Yak"
author_email = "tiberius@beeware.org"

[tool.briefcase.app.colors]
formal_name = "colors"
description = "A testing app"
sources = ['colors']
sources = ["colors"]
requires = [
'../../core',
"../../core",
]


[tool.briefcase.app.colors.macOS]
requires = [
'../../cocoa',
'std-nslog>=1.0.0',
"../../cocoa",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.colors.linux]
requires = [
'../../gtk',
"../../gtk",
]

[tool.briefcase.app.colors.windows]
requires = [
'../../winforms',
"../../winforms",
]

# Mobile deployments
[tool.briefcase.app.colors.iOS]
requires = [
'../../iOS',
'std-nslog>=1.0.0',
"../../iOS",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.colors.android]
requires = [
'../../android',
"../../android",
]

# Web deployment
[tool.briefcase.app.colors.web]
requires = [
'../../web',
"../../web",
]
style_framework = "Shoelace v2.3"
Empty file added examples/command/CHANGELOG
Empty file.
Empty file added examples/command/LICENSE
Empty file.
Loading