Skip to content

Comments

normalize extras per PEP685#476

Merged
radoering merged 2 commits intopython-poetry:mainfrom
dimbleby:canonicalize-extras
Oct 3, 2022
Merged

normalize extras per PEP685#476
radoering merged 2 commits intopython-poetry:mainfrom
dimbleby:canonicalize-extras

Conversation

@dimbleby
Copy link
Contributor

https://peps.python.org/pep-0685/#specification says both that all comparisons should be done with normalized extra names, and that normalized extra names should be written to metadata.

Simplest and surest approach seems to be just to deal with normalized names everywhere.

Fixes python-poetry/poetry#6321.

will cause CI failures in the downstream tests because poetry now records normalized extra names in lockfiles. I think that's correct and will follow up with a poetry MR to fix the unit tests against this.

However this presents some poetry / poetry-core challenges re merge order and version numbering. As in other MRs, I'd advocate for allowing such things and being comfortable going 2.0 here - though even then the cross-repository pipelines want some disentangling.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@radoering radoering merged commit 0ee61e2 into python-poetry:main Oct 3, 2022
@radoering
Copy link
Member

@dimbleby Please don't delete your branch until we don't depend on it in poetry anymore.

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.

Poetry doesn't install extra dependencies when the extra is capitalised

2 participants