mkrecipe.config¶
PEP 621 configuration parser.
Changed in version 0.2.0: BuildSystemParser moved to pyproject_parser.parsers
Classes:
Parser for the |
|
Parser for PEP 621 metadata from |
Functions:
|
Load the |
-
class
MkrecipeParser[source]¶ Bases:
AbstractConfigParserParser for the
[tool.mkrecipe]table frompyproject.toml.Attributes:
The keys to parse from the TOML file.
Methods:
parse_conda_channels(config)Parse the
conda-channelskey, giving a list of required conda channels to build and use the package.parse_extras(config)Parse the
extraskey, giving a list of extras to include as requirements in the conda package.parse_license_key(config)Parse the
license-keykey, giving the identifier of the project’s license.parse_max_python_version(config)Parse the
max-python-versionkey, giving the maximum Python 3.x version to consider requirements for.parse_min_python_version(config)Parse the
min-python-versionkey, giving the minimum Python 3.x version to consider requirements for.parse_package(config)Parse the
packagekey, giving the name of the importable package.-
parse_conda_channels(config)[source]¶ Parse the
conda-channelskey, giving a list of required conda channels to build and use the package.
-
parse_extras(config)[source]¶ Parse the
extraskey, giving a list of extras to include as requirements in the conda package.The special keyword
'all'indicates all extras should be included.The special keyword
'none'indicates no extras should be included.
-
parse_license_key(config)[source]¶ Parse the
license-keykey, giving the identifier of the project’s license. Optional.
-
parse_max_python_version(config)[source]¶ Parse the
max-python-versionkey, giving the maximum Python 3.x version to consider requirements for.
-
-
class
PEP621Parser[source]¶ Bases:
PEP621ParserParser for PEP 621 metadata from
pyproject.toml.Methods:
parse(config[, set_defaults])Parse the TOML configuration.
parse_name(config)Parse the name key.
-
parse(config, set_defaults=False)[source]¶ Parse the TOML configuration.
- Parameters
set_defaults (
bool) – IfTrue, the values indom_toml.parser.AbstractConfigParser.defaultsanddom_toml.parser.AbstractConfigParser.factorieswill be set as defaults for the returned mapping. DefaultFalse.
- Return type
-