Fromager 0.82 and earlier only supports a single constraints file with unique entries. packaging 26.1 added a new feature to check if a SpecifierSet is satisfiable. This feature finally allows us to support multiple constraints and constraints files safely.
>>> from packaging.specifiers import SpecifierSet
>>> SpecifierSet("<1").is_unsatisfiable()
False
>>> SpecifierSet("<1,>2").is_unsatisfiable()
True
- extend
fromager.constraints.Constraints.add_constraint to combine constraints and verify that the combined constraints are satisfiable.
- update the global
-c / --constraints-file option to support multiple constraints files
Fromager 0.82 and earlier only supports a single constraints file with unique entries.
packaging26.1 added a new feature to check if a SpecifierSet is satisfiable. This feature finally allows us to support multiple constraints and constraints files safely.fromager.constraints.Constraints.add_constraintto combine constraints and verify that the combined constraints are satisfiable.-c/--constraints-fileoption to support multiple constraints files