mkrecipe

A tool to create recipes for building conda packages from distributions on PyPI.

Classes:

MaryBerry(project_dir)

Builder of Conda meta.yaml recipes.

Functions:

make_recipe(project_dir, recipe_file)

Make a Conda meta.yaml recipe.

class MaryBerry(project_dir)[source]

Builder of Conda meta.yaml recipes.

Parameters

project_dir (Union[str, Path, PathLike]) – The project directory.

Methods:

get_maintainers()

Returns an iterable over the names of the project’s maintainers.

get_runtime_requirements()

Returns a list of the project’s runtime requirements.

get_sdist_url()

Returns the URL of the project’s source distribution on PyPI.

get_urls()

Returns an iterable of URL entries for the “about” section of the recipe.

get_wheel_url()

Returns the URL of the project’s binary wheel on PyPI.

load_config()

Load the mkrecipe configuration.

make()

Make the recipe.

make_conda_description()

Create a description for the Conda package from its summary and a list of channels required to install it.

make_for_wheel()

Make the recipe for creating a conda package from a wheel.

get_maintainers()[source]

Returns an iterable over the names of the project’s maintainers.

Return type

Iterable[str]

get_runtime_requirements()[source]

Returns a list of the project’s runtime requirements.

Return type

List[ComparableRequirement]

get_sdist_url()[source]

Returns the URL of the project’s source distribution on PyPI.

Return type

str

get_urls()[source]

Returns an iterable of URL entries for the “about” section of the recipe.

Return type

Iterable[str]

get_wheel_url()[source]

Returns the URL of the project’s binary wheel on PyPI.

New in version 0.3.0.

Return type

str

load_config()[source]

Load the mkrecipe configuration.

Return type

Dict[str, Any]

make()[source]

Make the recipe.

Return type

str

Returns

The meta.yaml recipe as a string.

make_conda_description()[source]

Create a description for the Conda package from its summary and a list of channels required to install it.

Return type

str

make_for_wheel()[source]

Make the recipe for creating a conda package from a wheel.

New in version 0.3.0.

Return type

str

Returns

The meta.yaml recipe as a string.

make_recipe(project_dir, recipe_file)[source]

Make a Conda meta.yaml recipe.

Parameters