mkrecipe¶
A tool to create recipes for building conda packages from distributions on PyPI.
Classes:
|
Builder of Conda |
Functions:
|
Exclude requirements based on a used-specified (partial) range of Python versions. |
|
Remove Windows, pypy, aarch64 etc. |
|
Make a Conda |
-
class
MaryBerry(project_dir)[source]¶ Builder of Conda
meta.yamlrecipes.Methods:
Returns an iterable over the names of the project’s maintainers.
Returns a list of the project’s runtime requirements.
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.
Returns the URL of the project’s binary wheel on PyPI.
Load the
mkrecipeconfiguration.make()Make the recipe.
Create a description for the Conda package from its summary and a list of channels required to install it.
Make the recipe for creating a conda package from a wheel.
-
get_runtime_requirements()[source]¶ Returns a list of the project’s runtime requirements.
- Return type
-
get_wheel_url()[source]¶ Returns the URL of the project’s binary wheel on PyPI.
New in version 0.3.0.
- Return type
-
-
filter_reqs_by_py_version(config, reqs)[source]¶ Exclude requirements based on a used-specified (partial) range of Python versions. E.g. to skip Python 3.6-only requirements or requirements for prerelease Pythons.
- Parameters
reqs (
List[ComparableRequirement])
- Return type
- Returns
The remaining requirements.
New in version 0.9.0.
-
filter_reqs_with_markers(config, reqs)[source]¶ Remove Windows, pypy, aarch64 etc. specific requirements.
- Parameters
reqs (
Iterable[ComparableRequirement])
- Return type
- Returns
An iterable of remaining requirements.
New in version 0.9.0.