Metadata-Version: 2.4
Name: pytaskrunner
Version: 0.1.0
Summary: Tiny typed task runner (like a Python Makefile): deps, .env, sh(), dry-run, parallel jobs.
Author: Guillaume ONEill
License: python -m venv .venv
        source .venv/bin/activate   # windows: .venv\Scripts\activate
        pip install -U pip build hatchling
        python -m build
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Typing :: Typed
Requires-Python: >=3.10
Provides-Extra: dev
Requires-Dist: mypy>=1.8; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Description-Content-Type: text/markdown

# pytaskrunner

A tiny typed task runner for Python projects (a modern "Python Makefile").

## Install
pip install pytaskrunner

## Define tasks (tasks.py)

```python
from pytaskrunner import task, sh

@task(desc="Run unit tests")
def test(ctx):
    sh("pytest -q")

@task(desc="Build wheel")
def build(ctx):
    sh("python -m build")

@task(desc="Deploy", deps=["build", "test"])
def deploy(ctx):
    sh("rsync -av dist/ myserver:/srv/releases/")