forked from kivy/buildozer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to use Buildop's rmtree, file_copy, file_copytree and rename (k…
…ivy#1669) * Migrate to use Buildop's rmtree, file_copy, file_copytree and rename This is part of a bigger refactor to reduce the size and complexity of the Buildozer class. It adds no new functionality (apart from making logging more consistent) * Remove file_rename, file_copy and file_copytree from Buildozer. * Update all references to those Buildozer methods to refer to buildops equivalents. * Note: `file_rename` is now called rename as, in practice, it was also used to rename directories. * Updated all references to shutil.copyfile and shutil.rmtree to use the Buildops equivalents * Note this adds implicit debug logging, making them more consistent. * Updated all references to check_call() and check_output() that called the `rm` and `cp` shell commands. * Note this adds implicit debug logging, making them more consistent, and improves performance. * Updated mock in test. Cheekily, also removed some obsolete references to Python 2 (only) standard libraries to make my IDE stop warning me about them while I edited the file. * Fixed missed file_rename reference in IOS
- Loading branch information
Showing
6 changed files
with
35 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters