mirror of
https://github.com/jongracecox/anybadge.git
synced 2026-01-06 20:31:03 +01:00
- Add `--version` to cli - Add invoke tasks: - `package.build` - `package.install` - `test.cli` - Refactor invoke task implementation - Refactor `run_pypi_tests.sh` - Split into separate files to support running locally
27 lines
542 B
Python
27 lines
542 B
Python
"""Invoke tasks for the project."""
|
|
import glob
|
|
import os
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
from invoke import task, Collection
|
|
from tasks import test, server, housekeeping, colors, package
|
|
|
|
PROJECT_DIR = Path(__file__).parent.parent
|
|
|
|
os.chdir(PROJECT_DIR)
|
|
|
|
|
|
@task
|
|
def examples(c):
|
|
"""Generate examples markdown."""
|
|
print("Generating examples markdown...")
|
|
from build_examples import main
|
|
|
|
main()
|
|
|
|
|
|
namespace = Collection(test, server, housekeeping, colors, package)
|
|
for fn in [examples]:
|
|
namespace.add_task(fn)
|