mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 22:48:03 +01:00
group common args in pip-compile task
This commit is contained in:
parent
994491b6d8
commit
92404832e5
1 changed files with 4 additions and 3 deletions
7
tasks.py
7
tasks.py
|
@ -13,19 +13,20 @@ TEST_ENV = {"ENV_FILE": BASE_DIR / "envs" / "test-envs.env"}
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def update_dependencies(ctx):
|
def update_dependencies(ctx):
|
||||||
|
common_args = "--allow-unsafe --resolver=backtracking --upgrade"
|
||||||
with ctx.cd(BASE_DIR):
|
with ctx.cd(BASE_DIR):
|
||||||
ctx.run(
|
ctx.run(
|
||||||
"pip-compile --allow-unsafe --resolver=backtracking --generate-hashes --upgrade requirements.in",
|
f"pip-compile {common_args} --generate-hashes requirements.in",
|
||||||
pty=True,
|
pty=True,
|
||||||
echo=True,
|
echo=True,
|
||||||
)
|
)
|
||||||
ctx.run(
|
ctx.run(
|
||||||
"pip-compile --allow-unsafe --resolver=backtracking --strip-extras --upgrade -o constraints.txt requirements.in",
|
f"pip-compile {common_args} --strip-extras -o constraints.txt requirements.in",
|
||||||
pty=True,
|
pty=True,
|
||||||
echo=True,
|
echo=True,
|
||||||
)
|
)
|
||||||
ctx.run(
|
ctx.run(
|
||||||
"pip-compile --allow-unsafe --resolver=backtracking --generate-hashes --upgrade requirements-dev.in",
|
f"pip-compile {common_args} --generate-hashes requirements-dev.in",
|
||||||
pty=True,
|
pty=True,
|
||||||
echo=True,
|
echo=True,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue