Skip to content

Commit ebf2ea0

Browse files
committed
Move pygobject dependency to common Linux block.
1 parent 3a4e0ba commit ebf2ea0

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

src/briefcase/bootstraps/toga.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,15 @@ def pyproject_table_linux(self):
6060
return """\
6161
requires = [
6262
"toga-gtk~=0.4.7",
63-
]
64-
"""
65-
66-
def pyproject_table_linux_system_debian(self):
67-
return """\
68-
requires = [
6963
# PyGObject 3.52.1 enforces a requirement on libgirepository-2.0-dev. This library
7064
# isn't available on Debian 12/Ubuntu 22.04. If you need to support those (or older)
7165
# releases, uncomment this version pin. See beeware/toga#3143.
7266
# "pygobject < 3.52.1",
7367
]
68+
"""
7469

70+
def pyproject_table_linux_system_debian(self):
71+
return """\
7572
system_requires = [
7673
# Needed to compile pycairo wheel
7774
"libcairo2-dev",

tests/commands/new/test_build_gui_context.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,13 @@ def main():
8686
pyproject_table_linux="""\
8787
requires = [
8888
"toga-gtk~=0.4.7",
89-
]
90-
""",
91-
pyproject_table_linux_system_debian="""\
92-
requires = [
9389
# PyGObject 3.52.1 enforces a requirement on libgirepository-2.0-dev. This library
9490
# isn't available on Debian 12/Ubuntu 22.04. If you need to support those (or older)
9591
# releases, uncomment this version pin. See beeware/toga#3143.
9692
# "pygobject < 3.52.1",
9793
]
98-
94+
""",
95+
pyproject_table_linux_system_debian="""\
9996
system_requires = [
10097
# Needed to compile pycairo wheel
10198
"libcairo2-dev",

0 commit comments

Comments
 (0)