whey.config¶
pyproject.toml configuration parsing.
Functions:
|
Load the |
whey.config.pep621¶
PEP 621 configuration parser.
Classes:
Parser for PEP 621 metadata from |
-
class
PEP621Parser[source]¶ Bases:
PEP621ParserParser for PEP 621 metadata from
pyproject.toml.Methods:
parse(config[, set_defaults])Parse the TOML configuration.
-
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
-
whey.config.whey¶
Parser for whey’s own configuration.
Classes:
Parser for the |
Functions:
|
Backfill trove classifiers for supported platforms, Python versions and implementations, and the project’s license, as appropriate. |
Returns a mapping of builder categories to builder classes to use as the default builders. |
|
|
Returns an iterable over EntryPoint objects in the |
Data:
Mapping of license short codes to license names used in trove classifiers. |
-
class
WheyParser[source]¶ Bases:
AbstractConfigParserParser for the
[tool.whey]table frompyproject.toml.-
parse_additional_files(config)[source]¶ Parse the
additional-fileskey, giving MANIFEST.in-style entries for additional files to include in distributions.
-
parse_base_classifiers(config)[source]¶ Parse the
base-classifierskey, giving a list trove classifiers.This list will be extended with the appropriate classifiers for supported platforms, Python versions and implementations, and the project’s license. Ignored if classifiers is not listed in dynamic
-
parse_builders(config)[source]¶ Parse the
builderstable, which lists gives the entry points to use for the sdist and wheel builders.This allows the user to select a custom builder with additional functionality.
-
parse_license_key(config)[source]¶ Parse the
license-keykey, giving the identifier of the project’s license. Optional.
-
parse_package(config)[source]¶ Parse the
packagekey, giving the name of the importable package.This defaults to project.name if unspecified.
-
parse_platforms(config)[source]¶ Parse the
platformskey, giving a list of supported platforms. Optional.
-
parse_python_implementations(config)[source]¶ Parse the
python-implementationskey, giving a list of supported Python implementations. Optional.
-
-
backfill_classifiers(config)[source]¶ Backfill trove classifiers for supported platforms, Python versions and implementations, and the project’s license, as appropriate.
-
get_default_builders()[source]¶ Returns a mapping of builder categories to builder classes to use as the default builders.
- Return type
-
get_entry_points(group='whey.builder')[source]¶ Returns an iterable over EntryPoint objects in the
groupgroup.- Parameters
group (
str) – Default'whey.builder'.- Return type