Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running without entry_points metadata #2546

Merged
merged 1 commit into from
May 2, 2024

Conversation

mhsmith
Copy link
Member

@mhsmith mhsmith commented May 2, 2024

get_platform_factory currently requires the entry_points metadata to be installed, even when it's unnecessary because the backend is set manually using TOGA_BACKEND environment variable. This makes it impossible to run from source code which hasn't been installed with pip, which is something I often do to speed up Android development – avoiding re-running pip for every change by listing toga-android in pyproject.toml under source rather than requires.

This is a minor rearrangement to make sure we check the entry_points only when necessary.

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@freakboy3742 freakboy3742 merged commit 75d6201 into beeware:main May 2, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants