seed_intersphinx_mapping.​requirements_parsers

Contains functions for parsing requirements.

Functions:

parse_flit_requirements(​base_dir)

Returns a list of package names listed as requirements in the [tool.flit] section of pyproject.toml.

parse_pyproject_toml(​base_dir)

Returns a list of package names listed as requirements in the pyproject.toml file.

parse_requirements_txt(​base_dir)

Returns a list of package names listed as requirements in the requirements.txt file.

parse_flit_requirements(base_dir)[source]

Returns a list of package names listed as requirements in the [tool.flit] section of pyproject.toml.

New in version 0.4.0.

Parameters

base_dir (Union[str, Path, PathLike]) – The directory in which to find the pyproject.toml file.

Return type

List[str]

parse_pyproject_toml(base_dir)[source]

Returns a list of package names listed as requirements in the pyproject.toml file.

New in version 0.4.0.

Parameters

base_dir (Union[str, Path, PathLike]) – The directory in which to find the pyproject.toml file.

Return type

List[str]

parse_requirements_txt(base_dir)[source]

Returns a list of package names listed as requirements in the requirements.txt file.

Parameters

base_dir (Union[str, Path, PathLike]) – The directory in which to find the requirements.txt file.

Return type

List[str]