Skip to content

Commit

Permalink
move to requirements dir
Browse files Browse the repository at this point in the history
  • Loading branch information
oraNod committed Feb 29, 2024
1 parent 5e43636 commit 8092ff7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import nox

requirements_files = list(
{path.stem for path in Path.cwd().glob("*.in")}
{path.stem for path in Path.cwd().glob("**/*.in")}
)


Expand All @@ -13,8 +13,8 @@ def pip_compile(session: nox.Session, req: str):
"""Generate lock files from input files or upgrade packages in lock files."""
# fmt: off
session.install(
"-r", "pip-tools.in",
"-c", "pip-tools.txt",
"-r", "requirements/pip-tools.in",
"-c", "requirements/pip-tools.txt",
)
# fmt: on

Expand All @@ -28,10 +28,10 @@ def pip_compile(session: nox.Session, req: str):
session.run(
"pip-compile",
"--output-file",
f"{req}.txt",
f"requirements/{req}.txt",
*session.posargs,
*injected_extra_cli_args,
f"{req}.in",
f"requirements/{req}.in",
)


Expand All @@ -40,8 +40,8 @@ def build(session: nox.Session):
"""Generate HTML files for the Ansible docsite."""
# fmt: off
session.install(
"-r", "requirements.in",
"-c", "requirements.txt",
"-r", "requirements/requirements.in",
"-c", "requirements/requirements.txt",
)
# fmt: on
session.run("python", "-I", "build.py", *session.posargs)
File renamed without changes.
4 changes: 2 additions & 2 deletions pip-tools.txt → requirements/pip-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --allow-unsafe --output-file=pip-tools.txt --strip-extras pip-tools.in
# pip-compile --allow-unsafe --output-file=requirements/pip-tools.txt --strip-extras requirements/pip-tools.in
#
build==1.0.3
# via pip-tools
Expand All @@ -11,7 +11,7 @@ click==8.1.7
packaging==23.2
# via build
pip-tools==7.4.0
# via -r pip-tools.in
# via -r requirements/pip-tools.in
pyproject-hooks==1.0.0
# via
# build
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 8092ff7

Please sign in to comment.