Skip to content

linter incorrectly limits duplicate requirements entries #874

@dhellmann

Description

@dhellmann

The lint-requirements command requires a single unique entry for each entry in a requirements.txt file based on the package name and the marker expression. That rule should only apply to constraints.txt files, not the requirements.txt files, because we want to allow and encourage building multiple versions of a package by specifying entries in the requirements.txt file.

The logic in https://github.com/python-wheel-build/fromager/blob/main/src/fromager/commands/lint_requirements.py#L29 will need to change to only apply the uniqueness rules when looking at a constraints.txt file.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions