Metadata-Version: 2.4
Name: conda-tasks
Version: 0.1.0
Summary: The missing task runner for conda, inspired by pixi.
Project-URL: homepage, https://github.com/conda-incubator/conda-tasks
Author: Jannis Leidel
License: BSD 3-Clause License
        
        Copyright (c) 2025, Jannis Leidel
        
        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:
        
        1. Redistributions of source code must retain the above copyright notice, this
           list of conditions and the following disclaimer.
        
        2. Redistributions in binary form must reproduce the above copyright notice,
           this list of conditions and the following disclaimer in the documentation
           and/or other materials provided with the distribution.
        
        3. Neither the name of the copyright holder nor the names of its
           contributors may be used to endorse or promote products derived from
           this software without specific prior written permission.
        
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
        FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
        CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
        OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
        OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License-File: LICENSE
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Requires-Dist: conda>=24.7
Requires-Dist: jinja2>=3.0
Requires-Dist: platformdirs>=3.0
Requires-Dist: tomlkit>=0.13
Provides-Extra: docs
Requires-Dist: conda-sphinx-theme; extra == 'docs'
Requires-Dist: linkify-it-py; extra == 'docs'
Requires-Dist: myst-parser; extra == 'docs'
Requires-Dist: sphinx; extra == 'docs'
Requires-Dist: sphinx-argparse; extra == 'docs'
Requires-Dist: sphinx-copybutton; extra == 'docs'
Requires-Dist: sphinx-design; extra == 'docs'
Requires-Dist: sphinx-reredirects; extra == 'docs'
Requires-Dist: sphinx-sitemap; extra == 'docs'
Provides-Extra: lint
Requires-Dist: pre-commit; extra == 'lint'
Requires-Dist: ruff; extra == 'lint'
Requires-Dist: ty>=0.0.18; extra == 'lint'
Provides-Extra: test
Requires-Dist: pytest-cov>=6.0; extra == 'test'
Requires-Dist: pytest>=8.0; extra == 'test'
Description-Content-Type: text/markdown

# conda-tasks

[![Tests](https://github.com/conda-incubator/conda-tasks/actions/workflows/test.yml/badge.svg)](https://github.com/conda-incubator/conda-tasks/actions/workflows/test.yml)
[![Docs](https://github.com/conda-incubator/conda-tasks/actions/workflows/docs.yml/badge.svg)](https://conda-incubator.github.io/conda-tasks/)
[![License](https://img.shields.io/github/license/conda-incubator/conda-tasks)](https://github.com/conda-incubator/conda-tasks/blob/main/LICENSE)
[![Python](https://img.shields.io/badge/python-3.10%E2%80%933.14-blue)](https://github.com/conda-incubator/conda-tasks)

The missing task runner for conda, inspired by [pixi](https://pixi.sh).

Define tasks in your project, wire up dependencies between them, and run
everything through `conda task`. Works with your existing conda environments
-- no new package manager required.

## Quick start

Create a `conda-tasks.yml` in your project root:

```yaml
tasks:
  build:
    cmd: "python -m build"
  test:
    cmd: "pytest tests/ -v"
    depends-on: [build]
  lint:
    cmd: "ruff check ."
  check:
    depends-on: [test, lint]
```

Running `check` resolves its dependencies and runs them in order:

```console
$ conda task run check
  [run] build: python -m build
  [run] lint: ruff check .
  [run] test: pytest tests/ -v
  [done] check
```

## Why?

Conda handles environments and packages. But there's no built-in way to
define project tasks -- the kind of thing you'd otherwise put in a `Makefile`,
`tox.ini`, or a pile of shell scripts. pixi solved this well, but it's a
separate tool with its own environment management.

conda-tasks brings the task runner part to conda as a plugin. You keep using
conda for environments, and get a proper task system on top.

## What it does

- Task dependencies with topological ordering (`depends-on`)
- Jinja2 templates in commands (`{{ conda.platform }}`, conditionals)
- Task arguments with defaults
- Input/output caching -- skip tasks when nothing changed
- Per-platform overrides for cross-platform projects
- Run tasks in any conda environment (`-n myenv`)
- Reads from `conda-tasks.yml`, `conda-tasks.toml`, `pixi.toml`,
  `pyproject.toml`, or `.condarc`

## Installation

```bash
conda install -c conda-forge conda-tasks
```

## What it doesn't do

conda-tasks is a task runner, not a package manager. It does not create
environments or install dependencies -- that's conda's job. If you're
coming from pixi where `pixi run` handles both, see the
[migration guide](https://conda-incubator.github.io/conda-tasks/tutorials/coming-from-pixi/).

## Documentation

https://conda-incubator.github.io/conda-tasks/

## Acknowledgements

The task system in conda-tasks is directly inspired by the work of the
[prefix.dev](https://prefix.dev) team on [pixi](https://github.com/prefix-dev/pixi).
Their design of task definitions, dependency graphs, platform overrides,
and caching provided the blueprint for this plugin. conda-tasks exists
because pixi demonstrated that a good task runner belongs in every
project workflow.

## License

BSD 3-Clause. See [LICENSE](LICENSE).
