Skip to content

Commit

Permalink
added support for user specified requirements.txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
pancht committed Mar 23, 2024
1 parent 91a2a8f commit 6d73f2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nrobo/cli/install/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ def transfer_files_to_host_project() -> None:
"""force re-install"""
force_reinstall = True

if not (NP.EXEC_DIR / NP.REQUIREMENTS_TXT_FILE).exists():
"""Create if not exist"""
copy_file(NP.NROBO_DIR / NP.FRAMEWORK / NP.REQUIREMENTS_TXT_FILE, NP.EXEC_DIR / NP.REQUIREMENTS_TXT_FILE)

if force_reinstall:
print(f"Re-installing framework")
elif (NP.EXEC_DIR / NP.CONFTEST_PY).exists():
Expand Down
1 change: 1 addition & 0 deletions nrobo/framework/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# add project dependencies

0 comments on commit 6d73f2c

Please sign in to comment.