Skip to content

Commit

Permalink
Eagerly update app requirements for DevCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed Apr 4, 2024
1 parent 9b28477 commit 19253a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/briefcase/commands/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def install_dev_requirements(self, app: AppConfig, **options):
"-m",
"pip",
"install",
"--upgrade-strategy=eager",
"--upgrade",
]
+ (["-vv"] if self.logger.is_deep_debug else [])
Expand Down
4 changes: 4 additions & 0 deletions tests/commands/dev/test_install_dev_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def test_install_requirements_no_error(dev_command, first_app, logging_level):
"-m",
"pip",
"install",
"--upgrade-strategy=eager",
"--upgrade",
]
+ (["-vv"] if logging_level == LogLevel.DEEP_DEBUG else [])
Expand Down Expand Up @@ -58,6 +59,7 @@ def test_install_requirements_error(dev_command, first_app):
"-m",
"pip",
"install",
"--upgrade-strategy=eager",
"--upgrade",
"package-one",
"package_two",
Expand Down Expand Up @@ -93,6 +95,7 @@ def test_install_requirements_test_mode(dev_command, first_app):
"-m",
"pip",
"install",
"--upgrade-strategy=eager",
"--upgrade",
"package-one",
"package_two",
Expand Down Expand Up @@ -121,6 +124,7 @@ def test_only_test_requirements(dev_command, first_app):
"-m",
"pip",
"install",
"--upgrade-strategy=eager",
"--upgrade",
"test-one",
"test_two",
Expand Down

0 comments on commit 19253a7

Please sign in to comment.