zut.build.compile_requirements

zut.build.compile_requirements(project: str | PathLike | None = None, out: str | PathLike | IO[str] = 'requirements.txt')

Simple compilation of requirements.txt from pyproject.toml.

Useful for Python 3.7 where pip-compile is known to have issues with PEP-621 projects.

Parameters:
  • project – Path to pyproject.toml file.

  • out – Path to requirements.txt file.