Project to generate recipes for conda packages
Project description
Grayskull
"Skeletonr's main goal is to conquer the mysterious fortress of Castle Grayskull, from which He-Man draws his powers. If he succeeds, Skeletor would be able to conquer not only Eternia, but the whole universe."
Adapted from Wikipedia. Image credits: https://he-man.fandom.com
Introduction
Grayskull is an automatic conda recipe generator.
The main goal of this project is to generate concise recipes
for conda-forge.
The Grayskull project was created with the intention to eventually replace conda skeleton.
Presently Grayskull can generate recipes for Python packages available on PyPI and also those not published on PyPI but available as GitHub repositories.
Grayskull can also generate recipes for R packages published on CRAN.
Future versions of Grayskull will support recipe generation for packages of other repositories such as Conan and CPAN etc.
Installation
It is possible to install this project using pip:
pip install grayskull
or conda, using the conda-forge channel:
conda install -c conda-forge grayskull
It is also possible to clone this repo and install it using pip:
git clone https://github.com/conda/grayskull.git
cd grayskull
pip install -e .
Usage
It is pretty simple to use grayskull. Just call it, pass the repository
(pypi or cran) and the package name.
- Example:
grayskull pypi pytest
After that grayskull will create a folder with the same name as the package
and inside this folder the generated recipe will be present (meta.yaml).
- Example with
pytest(grayskull pypi pytest):
If your package is a GitHub repository just replace the package name with the GitHub repository URL.
For example:
grayskull pypi https://github.com/confluentinc/confluent-kafka-python
You can also generate a recipe from a local sdist archive:
grayskull pypi ./pytest-5.3.5.tar.gz
Note that such a recipe isn't really portable as it will depend on the local path of the sdist file. It can be useful if you want to automatically generate a conda package.
Use Grayskull with an internal package index
Grayskull can create recipes that point to any Python Package Index. Supply the --pypi-mirror-url keyword.
- Example:
grayskull pypi --pypi-mirror-url https://pypi.example.com pytest
The above will source packages from https://pypi.example.com/packages/source/...
This assumes that the mirror follows the same API as pypi including hosting metadata at the /pypi/{package_name}/json endpoint.
To specify an alternate metadata location use the --pypi-metadata-url option.
- Example:
grayskull pypi --pypi-mirror-url https://pypi.example.com --pypi-metadata-url https://pypi_meta.example.com pytest
Note:
--pypi-metadata-urlis a replacement for--pypi-url;--pypi-urlis deprecated and will be removed in a future release.
Checking package availability against custom indexes
By default, Grayskull checks if packages are available on conda-forge and highlights missing dependencies. You can specify custom package indexes to check against using the --package-indexes argument:
grayskull pypi --package-indexes my-channel company-channel conda-forge pytest
This will check if packages exist in my-channel, company-channel, or conda-forge (in that order) and mark them accordingly in the output.
You can also specify full URLs for internal package indexes that don't use anaconda.org:
grayskull pypi --package-indexes https://internal-conda.example.com http://another-conda.example.com conda-forge pytest
Both HTTP and HTTPS protocols are supported for custom package indexes. This is particularly useful for internal networks that don't have access to anaconda.org.
For internal package indexes with custom API structures, you can use the {pkg_name} placeholder in your URL:
grayskull pypi --package-indexes "https://internal-conda.example.com/api/{pkg_name}/available" conda-forge pytest
This allows you to specify exactly how your internal package index API works, rather than using the default /pkg_name/files path structure.
Online Grayskull
It is also possible to use Grayskull without any installation. You can go to this website marcelotrevisani.com/grayskull and inform the name and the version (optional) of the package and it will create the recipe for you.
License
Copyright Marcelo Duarte Trevisani and contributors, 2020-2026.
Distributed under the terms of the Apache 2.0 license, grayskull is free and open source software.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file grayskull-3.1.0.tar.gz.
File metadata
- Download URL: grayskull-3.1.0.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ccbcc7455c08b68d95ed880fe486d87ad321ee483ccb375bfd8163c19a0fdfa
|
|
| MD5 |
21c4cd5a6f06cbdd99983cd2df7242ad
|
|
| BLAKE2b-256 |
9eb33dc573164d215320b0f2ebd2da07352abb13a843d1dcae6e261d678aa712
|
File details
Details for the file grayskull-3.1.0-py3-none-any.whl.
File metadata
- Download URL: grayskull-3.1.0-py3-none-any.whl
- Upload date:
- Size: 136.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625a60a7036eaedcc5e4e44ed68eec79aaade35f662729ec564b6120d2b3b7c5
|
|
| MD5 |
d7712935c32203efc11404e320d4faf6
|
|
| BLAKE2b-256 |
a2521f9ff0935bf55cdddf4fbd01afbe67b7af891f5d35e09279c26ae8c5a52e
|