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

Don't fail for complex license expressions #718

Closed
wants to merge 1 commit into from

Conversation

cdce8p
Copy link
Contributor

@cdce8p cdce8p commented Feb 8, 2025

Flit should support complex license expressions with AND, OR or WITH and not raise ConfigError.
We can skip the validation here (for now). PyPI will always validated uploads.

@takluyver
Copy link
Member

Thanks, but my preference is to allow only simple license expressions for now, and broaden it to valid compound expressions in the future, so we're expanding the set of what Flit accepts, not narrowing it (as discussed in #707). PyPI will validate license expressions on upload, but private indexes may not, and people may also just build packages without uploading them anywhere.

If you really want to use compound expressions in the meantime, you can set the environment variable FLIT_ALLOW_INVALID=1 to explicitly bypass the check.

@cdce8p cdce8p closed this Feb 8, 2025
@cdce8p cdce8p deleted the complex-license-expressions branch February 8, 2025 13:30
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