A base CLI entrypoint supporting Anaconda CLI plugins
pip install -i https://pypi.anaconda.org/anaconda-cloud/simple anaconda-cli-base
pip install -i https://pypi.anaconda.org/anaconda-cloud/label/dev/simple anaconda-cli-base
conda install anaconda-cloud::anaconda-cli-base
conda install anaconda-cloud/label/dev::anaconda-cli-base
A base CLI entrypoint supporting Anaconda CLI plugins
Subcommands can be registered as follows:
# In pyproject.toml
[project.entry-points."anaconda_cli.subcommand"]
auth = "anaconda_cloud_auth.cli:app"
In the example above:
"anaconda_cloud_cli.subcommand"
is the required string to use for registration. The quotes are important.auth
is the name of the new subcommand, i.e. anaconda auth
anaconda_cloud_auth.cli:app
signifies the object named app
in the anaconda_cloud_auth.cli
module is the entry point for the subcommand.Ensure you have conda
installed.
Then run:
make setup
make test
make tox