-
Notifications
You must be signed in to change notification settings - Fork 946
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/6207 config single file (#7840)
* feat(client): Specify configuration file installation * In order to specify a file configuration for the command `conan config install`, we test if the file is a zip file first. If it is not a zip, then we use the same logic in the function _process_folder, by using the name file. * For some convinance, we have comment the all other files copy during made by the command `conan config install` * fix(pep8): Fixed pep8 intendation * chore(tools): Implement is_compressed_file * is_compressed_file permit to test if a file is a zip, or a gzip, or a targz file * Remove the check is_zipfile in unzip function, in order to test if a file is a zip in the ./client/conf/config_installer.py file * chore(conf): Keep custom files install and specify compressed files * Keep custom files installation * Test if the uri is a compressed file and use decompression configuration function * Test if the uri is a regular file and use file configuration function * fix(tools): Fixed is_compressed_file function * Add first, if the filename is a file in order to remove the `compressed` state * chore(conf): Remove `compressed` state * Remove the `compressed` state, by checking if a `file` type is a zip or a tar* or a gzip * refactor(conf): Remove commented code * chore(tools): Open a file first in is_compressed_file * In order to raise an exception if a file exist or not, open a file in order to check if it is a gzip file first, then check if it is a zip or a tar* file * test(functional): Add a test for file installation * Test the command conan config install with a specific file * fix(test): Use mkdtemp instead of TemporaryDirectory Co-authored-by: Marian GAPPA <marian.gappa@zenika.com>
- Loading branch information
Showing
3 changed files
with
84 additions
and
38 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