Skip to content

Commit

Permalink
Add project configurations for linux system packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Feb 23, 2023
1 parent fae2a0d commit bec27f5
Showing 1 changed file with 65 additions and 1 deletion.
66 changes: 65 additions & 1 deletion {{ cookiecutter.app_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ author_email = "{{ cookiecutter.author_email }}"
[tool.briefcase.app.{{ cookiecutter.app_name }}]
formal_name = "{{ cookiecutter.formal_name|escape_toml }}"
description = "{{ cookiecutter.description|escape_toml }}"
long_description = """More details about the app should go here.
"""
icon = "src/{{ cookiecutter.module_name }}/resources/{{ cookiecutter.app_name }}"
sources = [
"src/{{ cookiecutter.module_name }}",
Expand Down Expand Up @@ -49,13 +51,17 @@ requires = [
{% endif -%}
]

[tool.briefcase.app.{{ cookiecutter.app_name }}.linux.deb]
[tool.briefcase.app.{{ cookiecutter.app_name }}.linux.system.debian]
system_requires = [
{%- if cookiecutter.gui_framework == "Toga" %}
# Needed to compile pycairo wheel
'libcairo2-dev',
# Needed to compile PyGObject wheel
'libgirepository1.0-dev',
{%- elif cookiecutter.gui_framework == "PySide6" %}
# ?? FIXME
{%- elif cookiecutter.gui_framework == "PursuedPyBear" %}
# ?? FIXME
{% endif -%}
]

Expand All @@ -65,6 +71,64 @@ system_runtime_requires = [
"libgtk-3-0",
# Needed to provide WebKit2 at runtime
"libwebkit2gtk-4.0-37",
{%- elif cookiecutter.gui_framework == "PySide6" %}
# ?? FIXME
{%- elif cookiecutter.gui_framework == "PursuedPyBear" %}
# ?? FIXME
{% endif -%}
]

[tool.briefcase.app.{{ cookiecutter.app_name }}.linux.system.redhat]
system_requires = [
{%- if cookiecutter.gui_framework == "Toga" %}
# Needed to compile pycairo wheel
'cairo-gobject-devel',
# Needed to compile PyGObject wheel
'gobject-introspection-devel',
{%- elif cookiecutter.gui_framework == "PySide6" %}
# ?? FIXME
{%- elif cookiecutter.gui_framework == "PursuedPyBear" %}
# ?? FIXME
{% endif -%}
]

system_runtime_requires = [
{%- if cookiecutter.gui_framework == "Toga" %}
# Needed to provide GTK
"gtk3",
# Needed to provide WebKit2 at runtime
"webkit2gtk3",
{%- elif cookiecutter.gui_framework == "PySide6" %}
# ?? FIXME
{%- elif cookiecutter.gui_framework == "PursuedPyBear" %}
# ?? FIXME
{% endif -%}
]

[tool.briefcase.app.{{ cookiecutter.app_name }}.linux.system.archlinux]
system_requires = [
{%- if cookiecutter.gui_framework == "Toga" %}
# Needed to compile pycairo wheel
'cairo',
# Needed to compile PyGObject wheel
'gobject-introspection',
{%- elif cookiecutter.gui_framework == "PySide6" %}
# ?? FIXME
{%- elif cookiecutter.gui_framework == "PursuedPyBear" %}
# ?? FIXME
{% endif -%}
]

system_runtime_requires = [
{%- if cookiecutter.gui_framework == "Toga" %}
# Needed to provide GTK
"gtk",
# Needed to provide WebKit2 at runtime
"webkit2gtk",
{%- elif cookiecutter.gui_framework == "PySide6" %}
# ?? FIXME
{%- elif cookiecutter.gui_framework == "PursuedPyBear" %}
# ?? FIXME
{% endif -%}
]

Expand Down

0 comments on commit bec27f5

Please sign in to comment.