You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a project contains a local file reference in it's requires or test_requires list, that reference will fail when building an AppImage, as the file path won't be valid in a Docker context.
To Reproduce
Steps to reproduce the behavior:
Generate a helloworld Toga project
Modify pyproject.toml to reference a local Toga checkout (i.e., `requires = ["../../toga/core", "../../toga/gtk"])
See error
[testbed] Entering Docker context...
WARNING: The directory '/home/brutus/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
ERROR: Invalid requirement: '../core'
Hint: It looks like a path. File '../core' does not exist.
Notice: A new release of pip available: 22.3 -> 22.3.1
Notice: To update, run: python3.11 -m pip install --upgrade pip
Installing app requirements...
Unable to install requirements. This may be because one of your
requirements is invalid, or because pip was unable to connect
to the PyPI server.
Log saved to /home/runner/work/toga/toga/testbed/logs/briefcase.2022_12_06-21_06_23.run.log
Expected behavior
It should be possible to specific a requirement as a local file and have that requirement be installed at runtime
Environment:
Operating System: Any Linux
Python version: Any
Software versions:
Briefcase: 0.3.11
Additional context
A similar problem was seen with Android and Flatpak; however, those two platforms use requirements files, and the problem could only existed if the file reference was relative. The problem could be resolved in those cases by converting the file reference to an absolute reference. The analogous fix here will be to expose the local requirement as a volume mount in the Docker context.
The text was updated successfully, but these errors were encountered:
If a project contains a local file reference in it's
requires
ortest_requires
list, that reference will fail when building an AppImage, as the file path won't be valid in a Docker context.To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should be possible to specific a requirement as a local file and have that requirement be installed at runtime
Environment:
Additional context
A similar problem was seen with Android and Flatpak; however, those two platforms use requirements files, and the problem could only existed if the file reference was relative. The problem could be resolved in those cases by converting the file reference to an absolute reference. The analogous fix here will be to expose the local requirement as a volume mount in the Docker context.
The text was updated successfully, but these errors were encountered: