Build System partis.pyproj#

class PyProjBase(*, root, config_settings=None, logger=None)[source]#

Bases: object

Minimal build system for a Python project

Extends beyond PEP 517 and PEP 621

Parameters:
  • root (str | pathlib.Path) – Path to the root project directory containing ‘pyproject.toml’.

  • logger (logging.Logger) – Parent logger to use when processing project.

property pptoml#

Parsed and validated pyproject.toml document

Type:

pptoml

property project#

partis.pyproj.pptoml.project

property pyproj#

partis.pyproj.pptoml.pyproj

property config#

partis.pyproj.pptoml.pyproj_config

property targets#
property meson#

partis.pyproj.pptoml.pyproj_meson

Deprecated since version 0.1.0: Use PyProjBase.targets to access all build targets. These are no longer restricted to meson, but this attribute kept for backward compatability.

property dist#

partis.pyproj.pptoml.pyproj_dist

property source#

partis.pyproj.pptoml.pyproj_dist_source

property binary#

partis.pyproj.pptoml.pyproj_dist_binary

property add_legacy_setup#

bool

property build_requires#

set[PkgInfoReq]

prep()[source]#

Prepares project metadata

dist_prep()[source]#

Prepares project files for a distribution

dist_source_prep()[source]#

Prepares project files for a source distribution

dist_source_copy(*, dist)[source]#

Copies prepared files into a source distribution

Parameters:

sdist (dist_base) – Builder used to write out source distribution files

dist_binary_prep()[source]#

Prepares project files for a binary distribution

dist_binary_copy(*, dist)[source]#

Copies prepared files into a binary distribution

Parameters:

bdist (dist_base) – Builder used to write out binary distribution files