Skip to content

Commit c25a3f5

Browse files
authored
allow requirements.txt to not exist (#751)
1 parent 844bb49 commit c25a3f5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

rsconnect/main.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ def _warn_on_ignored_requirements(directory: str, requirements_file_name: str):
10211021
@click.option(
10221022
"--requirements-file",
10231023
"-r",
1024-
type=click.Path(exists=True, dir_okay=False),
1024+
type=click.Path(dir_okay=False),
10251025
default="requirements.txt",
10261026
help=(
10271027
"Path to requirements file to record in the manifest instead of detecting the environment. "
@@ -1191,7 +1191,7 @@ def deploy_notebook(
11911191
@click.option(
11921192
"--requirements-file",
11931193
"-r",
1194-
type=click.Path(exists=True, dir_okay=False),
1194+
type=click.Path(dir_okay=False),
11951195
default="requirements.txt",
11961196
help=(
11971197
"Path to requirements file to record in the manifest instead of detecting the environment. "
@@ -1425,7 +1425,7 @@ def deploy_manifest(
14251425
@click.option(
14261426
"--requirements-file",
14271427
"-r",
1428-
type=click.Path(exists=True, dir_okay=False),
1428+
type=click.Path(dir_okay=False),
14291429
default="requirements.txt",
14301430
help=(
14311431
"Path to requirements file to record in the manifest instead of detecting the environment. "
@@ -1824,7 +1824,7 @@ def generate_deploy_python(app_mode: AppMode, alias: str, min_version: str, desc
18241824
@click.option(
18251825
"--requirements-file",
18261826
"-r",
1827-
type=click.Path(exists=True, dir_okay=False),
1827+
type=click.Path(dir_okay=False),
18281828
help=(
18291829
"Path to requirements file to record in the manifest instead of detecting the environment. "
18301830
"Must be inside the deployment directory. Use 'none' to capture via pip freeze."
@@ -2032,7 +2032,7 @@ def write_manifest():
20322032
@click.option(
20332033
"--requirements-file",
20342034
"-r",
2035-
type=click.Path(exists=True, dir_okay=False),
2035+
type=click.Path(dir_okay=False),
20362036
help=(
20372037
"Path to requirements file to record in the manifest instead of detecting the environment. "
20382038
"Must be inside the notebook directory. Use 'none' to capture via pip freeze."
@@ -2302,7 +2302,7 @@ def write_manifest_voila(
23022302
@click.option(
23032303
"--requirements-file",
23042304
"-r",
2305-
type=click.Path(exists=True, dir_okay=False),
2305+
type=click.Path(dir_okay=False),
23062306
help=(
23072307
"Path to requirements file to record in the manifest instead of detecting the environment. "
23082308
"Must be inside the project directory."
@@ -2517,7 +2517,7 @@ def generate_write_manifest_python(app_mode: AppMode, alias: str, desc: Optional
25172517
@click.option(
25182518
"--requirements-file",
25192519
"-r",
2520-
type=click.Path(exists=True, dir_okay=False),
2520+
type=click.Path(dir_okay=False),
25212521
help=(
25222522
"Path to requirements file to record in the manifest instead of detecting the environment. "
25232523
"Must be inside the application directory. Use 'none' to capture via pip freeze."

0 commit comments

Comments
 (0)