Skip to content

Comments

Don't fail for complex license expressions#718

Closed
cdce8p wants to merge 1 commit intopypa:mainfrom
cdce8p:complex-license-expressions
Closed

Don't fail for complex license expressions#718
cdce8p wants to merge 1 commit intopypa:mainfrom
cdce8p:complex-license-expressions

Conversation

@cdce8p
Copy link
Member

@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