mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-07 01:33:14 -06:00
tasks: copy source function
This commit is contained in:
parent
1330e339b0
commit
6f0eb17f2f
1 changed files with 7 additions and 3 deletions
10
tasks.py
10
tasks.py
|
@ -33,9 +33,7 @@ def write_docs_src(tag):
|
||||||
(verdir / "swydd.py").write_text(src_text)
|
(verdir / "swydd.py").write_text(src_text)
|
||||||
|
|
||||||
|
|
||||||
@s.task
|
def copy_source():
|
||||||
def docs():
|
|
||||||
"""build docs"""
|
|
||||||
p = s.Exec("git tag --list", output=True).get()
|
p = s.Exec("git tag --list", output=True).get()
|
||||||
versions = [line for line in p.stdout.splitlines() if line.startswith("v")]
|
versions = [line for line in p.stdout.splitlines() if line.startswith("v")]
|
||||||
for ver in versions:
|
for ver in versions:
|
||||||
|
@ -46,4 +44,10 @@ def docs():
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@s.task
|
||||||
|
def docs():
|
||||||
|
"""build docs"""
|
||||||
|
copy_source()
|
||||||
|
|
||||||
|
|
||||||
s.cli()
|
s.cli()
|
||||||
|
|
Loading…
Reference in a new issue