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
-
license_lookup¶ Type:
dictMapping of license short codes to license names used in trove classifiers.
{ "Apache-2.0": "Apache Software License", "BSD": "BSD License", "BSD-2-Clause": "BSD License", "BSD-3-Clause": "BSD License", "AGPL-3.0-only": "GNU Affero General Public License v3", "AGPL-3.0": "GNU Affero General Public License v3", "AGPL-3.0-or-later": "GNU Affero General Public License v3 or later (AGPLv3+)", "AGPL-3.0+": "GNU Affero General Public License v3 or later (AGPLv3+)", "FDL": "GNU Free Documentation License (FDL)", "GFDL-1.1-only": "GNU Free Documentation License (FDL)", "GFDL-1.1-or-later": "GNU Free Documentation License (FDL)", "GFDL-1.2-only": "GNU Free Documentation License (FDL)", "GFDL-1.2-or-later": "GNU Free Documentation License (FDL)", "GFDL-1.3-only": "GNU Free Documentation License (FDL)", "GFDL-1.3-or-later": "GNU Free Documentation License (FDL)", "GFDL-1.2": "GNU Free Documentation License (FDL)", "GFDL-1.1": "GNU Free Documentation License (FDL)", "GFDL-1.3": "GNU Free Documentation License (FDL)", "GPL": "GNU General Public License (GPL)", "GPL-1.0-only": "GNU General Public License (GPL)", "GPL-1.0-or-later": "GNU General Public License (GPL)", "GPLv2": "GNU General Public License v2 (GPLv2)", "GPL-2.0-only": "GNU General Public License v2 (GPLv2)", "GPLv2+": "GNU General Public License v2 or later (GPLv2+)", "GPL-2.0-or-later": "GNU General Public License v2 or later (GPLv2+)", "GPLv3": "GNU General Public License v3 (GPLv3)", "GPL-3.0-only": "GNU General Public License v3 (GPLv3)", "GPLv3+": "GNU General Public License v3 or later (GPLv3+)", "GPL-3.0-or-later": "GNU General Public License v3 or later (GPLv3+)", "LGPLv2": "GNU Lesser General Public License v2 (LGPLv2)", "LGPLv2+": "GNU Lesser General Public License v2 or later (LGPLv2+)", "LGPLv3": "GNU Lesser General Public License v3 (LGPLv3)", "LGPL-3.0-only": "GNU Lesser General Public License v3 (LGPLv3)", "LGPLv3+": "GNU Lesser General Public License v3 or later (LGPLv3+)", "LGPL-3.0-or-later": "GNU Lesser General Public License v3 or later (LGPLv3+)", "LGPL": "GNU Library or Lesser General Public License (LGPL)", "MIT": "MIT License", "PSF-2.0": "Python Software Foundation License" }