tasks: copy source function

This commit is contained in:
Daylin Morgan 2024-07-22 12:05:31 -05:00
parent 1330e339b0
commit 6f0eb17f2f
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -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()