pyproject_patcher.requirements
Manage requirements expressions, with or without version constraints.
Classes
A list of requirements expressions. |
Module Contents
- class pyproject_patcher.requirements.RequirementsSection(array)
A list of requirements expressions.
For example:
`py ["setuptools", "wheel", "setuptools-git-versioning<2"] `- Parameters:
array (tomlkit.items.Array)
- array: tomlkit.items.Array
- remove_dependency(module_name)
Removes a Python module dependency from this section.
- Parameters:
module_name (str) – The name of a module that is declared in this section.
- Return type:
None
- strip_constraint(module_name)
For a Python module dependency in this section, remove its version constraint.
- Parameters:
module_name (str) – The name of a module that is declared in this section.
- Return type:
None