Skip to content

Commit 6857a73

Browse files
authored
Merge pull request #77 from beeware/upgrade-flatpak
Bump flatpak base image
2 parents 9912de8 + 6e9267a commit 6857a73

File tree

2 files changed

+1
-53
lines changed

2 files changed

+1
-53
lines changed

pyproject.toml

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -66,57 +66,9 @@ system_runtime_requires = [
6666
"libcanberra-gtk3-module",
6767
]
6868

69-
[tool.briefcase.app.testbed.linux.appimage]
70-
manylinux = "manylinux_2_28"
71-
requires = [
72-
'--no-binary', ':all:',
73-
]
74-
75-
system_requires = [
76-
# Needed to compile pycairo wheel
77-
"cairo-gobject-devel",
78-
# Needed to compile PyGObject wheel
79-
"gobject-introspection-devel",
80-
# Needed to provide GTK
81-
"gtk3-devel",
82-
# Dependencies that GTK looks for at runtime, that need to be
83-
# in the build environment to be picked up by linuxdeploy
84-
"libcanberra-gtk3",
85-
"PackageKit-gtk3-module",
86-
"gvfs-client",
87-
# Needed to compile Pillow
88-
"libjpeg-devel",
89-
# Needed to compile Cryptography
90-
"openssl-devel",
91-
]
92-
93-
linuxdeploy_plugins = [
94-
'DEPLOY_GTK_VERSION=3 gtk',
95-
]
96-
97-
dockerfile_extra_content = """
98-
# Install Rust (required for cryptography)
99-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
100-
# Set up compilers (required for numpy)
101-
ENV CXX="g++ -pthread"
102-
ENV AR=ar
103-
# Add a symlink for python->python3 (needed for pandas)
104-
# Pandas *requires* that the Python binary be called `python`, not `python3`.
105-
# However, Python-standalone *only* provides `python3`, and at runtime, we
106-
# only need `python3`. We can't (easily) reconfigure the Meson build for Pandas,
107-
# so we put a symlink in `brutus`'s bin path.
108-
RUN mkdir -p /home/brutus/bin
109-
RUN ln -si /app/Testbed.AppDir/usr/python/bin/python3 /home/brutus/bin/python
110-
# Set the path to include all the things we've installed.
111-
ENV PATH="/home/brutus/bin:/home/brutus/.cargo/bin:${PATH}"
112-
"""
113-
114-
# support_package = "../Python-linux-support/dist/Python-3.10-linux-x86_64-support.custom.tar.gz"
115-
# template = "../../templates/briefcase-linux-appimage-template"
116-
11769
[tool.briefcase.app.testbed.linux.flatpak]
11870
flatpak_runtime = "org.gnome.Platform"
119-
flatpak_runtime_version = "44"
71+
flatpak_runtime_version = "45"
12072
flatpak_sdk = "org.gnome.Sdk"
12173

12274
# template = "../../templates/briefcase-linux-flatpak-template"
@@ -145,7 +97,6 @@ requires = [
14597

14698
[tool.briefcase.app.testbed.android]
14799
requires = [
148-
"rubicon-java",
149100
# Android doesn't provide the zoneinfo TZ database; use the Python provided one
150101
"tzdata",
151102
]

tests/test_common.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def test_stdlib_modules():
9696
"termios",
9797
"unicodedata",
9898
# Scheduled for deprecation
99-
"_crypt",
10099
"audioop",
101100
]
102101

@@ -110,7 +109,6 @@ def test_stdlib_modules():
110109
# Modules that do not exist on Android
111110
if hasattr(sys, "getandroidapilevel"):
112111
all_modules.remove("grp")
113-
all_modules.remove("_crypt")
114112

115113
# Modules that do not exist on iOS
116114
if sys.platform == "ios":
@@ -121,7 +119,6 @@ def test_stdlib_modules():
121119

122120
# Modules that do not exist on Windows
123121
if sys.platform == "win32":
124-
all_modules.remove("_crypt")
125122
all_modules.remove("_posixsubprocess")
126123
all_modules.remove("fcntl")
127124
all_modules.remove("grp")

0 commit comments

Comments
 (0)