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:
AbstractConfigParser
Parser for the
[tool.mkrecipe]
table frompyproject.toml
.Attributes:
The keys to parse from the TOML file.
Methods:
parse_conda_channels
(config)Parse the
conda-channels
key, giving a list of required conda channels to build and use the package.parse_extras
(config)Parse the
extras
key, giving a list of extras to include as requirements in the conda package.parse_license_key
(config)Parse the
license-key
key, giving the identifier of the project’s license.parse_package
(config)Parse the
package
key, giving the name of the importable package.-
parse_conda_channels
(config)[source]¶ Parse the
conda-channels
key, giving a list of required conda channels to build and use the package.
-
parse_extras
(config)[source]¶ Parse the
extras
key, 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.
-
-
class
PEP621Parser
[source]¶ Bases:
PEP621Parser
Parser 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.defaults
anddom_toml.parser.AbstractConfigParser.factories
will be set as defaults for the returned mapping. DefaultFalse
.
- Return type
-