From 6f0eb17f2fb89689eb5f57d05aafab9c9ad68077 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 22 Jul 2024 12:05:31 -0500 Subject: [PATCH] tasks: copy source function --- tasks.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tasks.py b/tasks.py index 25a54c7..75fda68 100755 --- a/tasks.py +++ b/tasks.py @@ -33,9 +33,7 @@ def write_docs_src(tag): (verdir / "swydd.py").write_text(src_text) -@s.task -def docs(): - """build docs""" +def copy_source(): p = s.Exec("git tag --list", output=True).get() versions = [line for line in p.stdout.splitlines() if line.startswith("v")] for ver in versions: @@ -46,4 +44,10 @@ def docs(): ) +@s.task +def docs(): + """build docs""" + copy_source() + + s.cli()