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 47a31c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes/1719.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The transitive requirements for an app are now eagerly updated when an app's requirements are installed for the ``briefcase dev`` command.
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 47a31c1

Please sign in to comment.