python-wheel-build / fromager

Build your own wheels
https://pypi.org/project/fromager/
Apache License 2.0
3 stars 9 forks source link

include constraint info in comments in generated constraints.txt #213

Closed dhellmann closed 1 month ago

dhellmann commented 1 month ago

The constraints.txt file we produce includes comments about what depends on each package. It should also include constraint details that feed into fromager so a reader can understand if the original requirements were modified.

rd4398 commented 1 month ago

Can you please give an example of constraint info that should be included?

dhellmann commented 1 month ago

One of the inputs to the bootstrap process is a constraints file that looks just like a requirements file. If we have one, the bootstrap process uses a Constraints instance to look up whether a package has a constraint. That information is then included when the package is added to the build order.

The comment should include the contents of the "constraint" field in that build order entry.