Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new conan.tools.files #8550

Merged
merged 26 commits into from Mar 1, 2021
Merged

Conversation

czoido
Copy link
Contributor

@czoido czoido commented Feb 24, 2021

Changelog: Feature: Create new conan.tools.files for 2.0.
Docs: omit

Now conan.tools.file will have load, save, mkdir, download, get, ftp_download in the beginning.

Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

conan/tools/files/__init__.py Outdated Show resolved Hide resolved
conan/tools/files/files.py Show resolved Hide resolved
conan/tools/files/files.py Outdated Show resolved Hide resolved
conans/client/conan_api.py Outdated Show resolved Hide resolved
conans/test/functional/tools/test_files.py Outdated Show resolved Hide resolved
conans/test/assets/genconanfile.py Outdated Show resolved Hide resolved
config = conanfile.conf

# It might be possible that users provide their own requester
retry = retry if retry is not None else int(config["tools.files.download"].retry)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be discussed: if recipe defines retry=1, that is hardcoded. Trying to configure it downstream in [conf] will have no effect, I am not sure about this.

We are good as-is now, but we want to review this later.

@memsharded memsharded added this to the 1.35 milestone Feb 25, 2021
czoido and others added 2 commits February 25, 2021 17:08
Co-authored-by: James <james@conan.io>
@czoido czoido merged commit e7fe5f0 into conan-io:develop Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants