Skip to content

Commit

Permalink
Remove additional references to PPB
Browse files Browse the repository at this point in the history
  • Loading branch information
AstraLuma committed May 22, 2024
1 parent 8ce037e commit 2c007b0
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 228 deletions.
1 change: 0 additions & 1 deletion automation/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ dynamic = ["version", "dependencies"]
"Toga Automation" = "automation.bootstraps.toga:TogaAutomationBootstrap"
"PySide6 Automation" = "automation.bootstraps.pyside6:PySide6AutomationBootstrap"
"Pygame Automation" = "automation.bootstraps.pygame:PygameAutomationBootstrap"
"PursuedPyBear Automation" = "automation.bootstraps.pursuedpybear:PursuedPyBearAutomationBootstrap"

[tool.setuptools_scm]
root = "../"
Expand Down
50 changes: 0 additions & 50 deletions automation/src/automation/bootstraps/pursuedpybear.py

This file was deleted.

1 change: 0 additions & 1 deletion src/briefcase/bootstraps/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from briefcase.bootstraps.base import BaseGuiBootstrap # noqa: F401
from briefcase.bootstraps.pursuedpybear import PursuedPyBearGuiBootstrap # noqa: F401
from briefcase.bootstraps.pygame import PygameGuiBootstrap # noqa: F401
from briefcase.bootstraps.pyside6 import PySide6GuiBootstrap # noqa: F401
from briefcase.bootstraps.toga import TogaGuiBootstrap # noqa: F401
3 changes: 1 addition & 2 deletions src/briefcase/commands/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,8 @@ def _gui_bootstrap_choices(self, bootstraps):
# Sort the options alphabetically first
ordered = OrderedDict(sorted(bootstraps.items()))

# Ensure the first 5 options are: Toga, PySide6, PursuedPyBear, Pygame
# Ensure the first 5 options are: Toga, PySide6, Pygame
ordered.move_to_end("Pygame", last=False)
ordered.move_to_end("PursuedPyBear", last=False)
ordered.move_to_end("PySide6", last=False)
ordered.move_to_end("Toga", last=False)

Expand Down
174 changes: 0 additions & 174 deletions tests/commands/new/test_build_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import briefcase.commands.new
from briefcase.bootstraps import (
PursuedPyBearGuiBootstrap,
PygameGuiBootstrap,
PySide6GuiBootstrap,
TogaGuiBootstrap,
Expand All @@ -16,7 +15,6 @@ def mock_builtin_bootstraps():
return {
"Toga": TogaGuiBootstrap,
"PySide6": PySide6GuiBootstrap,
"PursuedPyBear": PursuedPyBearGuiBootstrap,
"Pygame": PygameGuiBootstrap,
}

Expand Down Expand Up @@ -428,178 +426,6 @@ def main():
)


def test_question_sequence_pursuedpybear(new_command):
"""Questions are asked, a context is constructed."""

# Prime answers for all the questions.
new_command.input.values = [
"My Application", # formal name
"", # app name - accept the default
"org.beeware", # bundle ID
"My Project", # project name
"Cool stuff", # description
"Grace Hopper", # author
"grace@navy.mil", # author email
"https://navy.mil/myapplication", # URL
"4", # license
"3", # PursuedPyBear GUI toolkit
]

context = new_command.build_context(
project_overrides={},
)

assert context == dict(
app_name="myapplication",
author="Grace Hopper",
author_email="grace@navy.mil",
bundle="org.beeware",
class_name="MyApplication",
description="Cool stuff",
formal_name="My Application",
license="GNU General Public License v2 (GPLv2)",
module_name="myapplication",
source_dir="src/myapplication",
test_source_dir="tests",
project_name="My Project",
url="https://navy.mil/myapplication",
app_source="""\
import importlib.metadata
import os
import sys
import ppb
class {{ cookiecutter.class_name }}(ppb.Scene):
def __init__(self, **props):
super().__init__(**props)
# Add sprites and details to your scene here
def main():
# Linux desktop environments use an app's .desktop file to integrate the app
# in to their application menus. The .desktop file of this app will include
# the StartupWMClass key, set to app's formal name. This helps associate the
# app's windows to its menu item.
#
# For association to work, any windows of the app must have WMCLASS property
# set to match the value set in app's desktop file. For PPB, this is set
# using the SDL_VIDEO_X11_WMCLASS environment variable.
# Find the name of the module that was used to start the app
app_module = sys.modules["__main__"].__package__
# Retrieve the app's metadata
metadata = importlib.metadata.metadata(app_module)
os.environ["SDL_VIDEO_X11_WMCLASS"] = metadata["Formal-Name"]
ppb.run(
starting_scene={{ cookiecutter.class_name }},
title=metadata["Formal-Name"],
)
""",
pyproject_table_briefcase_app_extra_content="""
requires = [
"ppb~=3.2.0",
]
test_requires = [
{% if cookiecutter.test_framework == "pytest" %}
"pytest",
{% endif %}
]
""",
pyproject_table_macOS="""\
universal_build = true
requires = [
"std-nslog~=1.0.0",
]
""",
pyproject_table_linux="""\
requires = [
]
""",
pyproject_table_linux_system_debian="""\
system_requires = [
]
system_runtime_requires = [
"libsdl2-2.0-0",
"libsdl2-mixer-2.0-0",
"libsdl2-image-2.0-0",
"libsdl2-gfx-1.0-0",
"libsdl2-ttf-2.0-0",
]
""",
pyproject_table_linux_system_rhel="""\
system_requires = [
]
system_runtime_requires = [
"SDL2",
"SDL2_ttf",
"SDL2_image",
"SDL2_gfx",
"SDL2_mixer",
"libmodplug",
]
""",
pyproject_table_linux_system_suse="""\
system_requires = [
]
system_runtime_requires = [
"SDL2",
"SDL2_gfx",
"SDL2_ttf",
"SDL2_image",
"SDL2_mixer",
"libmodplug1",
]
""",
pyproject_table_linux_system_arch="""\
system_requires = [
]
system_runtime_requires = [
"sdl2",
"sdl2_ttf",
"sdl2_image",
"sdl2_gfx",
"sdl2_mixer",
]
""",
pyproject_table_linux_appimage="""\
manylinux = "manylinux_2_28"
system_requires = [
]
linuxdeploy_plugins = [
]
""",
pyproject_table_linux_flatpak="""\
flatpak_runtime = "org.freedesktop.Platform"
flatpak_runtime_version = "23.08"
flatpak_sdk = "org.freedesktop.Sdk"
""",
pyproject_table_windows="""\
requires = [
]
""",
pyproject_table_iOS="""\
supported = false
""",
pyproject_table_android="""\
supported = false
""",
pyproject_table_web="""\
supported = false
""",
)


def test_question_sequence_pygame(new_command):
"""Questions are asked, a context is constructed."""

Expand Down

0 comments on commit 2c007b0

Please sign in to comment.