packaging

Manage configuration files for packaging tools.

Functions:

make_manifest(repo_path, templates)

Update the MANIFEST.in file for setuptools.

make_pkginfo(repo_path, templates)

Update the __pkginfo__.py file.

make_pyproject(repo_path, templates)

Create the pyproject.toml file for PEP 517.

make_setup(repo_path, templates)

Update the setup.py script.

make_setup_cfg(repo_path, templates)

Update the setup.py script.

make_manifest(repo_path, templates)[source]

Update the MANIFEST.in file for setuptools.

Parameters
  • repo_path (Path) – Path to the repository root.

  • templates (Environment)

Return type

List[str]

make_pkginfo(repo_path, templates)[source]

Update the __pkginfo__.py file.

Parameters
  • repo_path (Path) – Path to the repository root.

  • templates (Environment)

Return type

List[str]

make_pyproject(repo_path, templates)[source]

Create the pyproject.toml file for PEP 517.

Parameters
  • repo_path (Path) – Path to the repository root.

  • templates (Environment)

Return type

List[str]

make_setup(repo_path, templates)[source]

Update the setup.py script.

Parameters
  • repo_path (Path) – Path to the repository root.

  • templates (Environment)

Return type

List[str]

make_setup_cfg(repo_path, templates)[source]

Update the setup.py script.

Parameters
  • repo_path (Path) – Path to the repository root.

  • templates (Environment)

Return type

List[str]