mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-23 15:20:43 -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)
|
||||
|
||||
|
||||
@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()
|
||||
|
|
Loading…
Reference in a new issue