conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.23k stars 979 forks source link

[bug] expose `conan.tools.files.sha256sum` #13073

Open SSE4 opened 1 year ago

SSE4 commented 1 year ago

Environment details

Steps to reproduce

  1. python -c "from conan.tools.files import sha256sum"

Logs

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'sha256sum' from 'conan.tools.files' (/home/sse4/.local/lib/python3.9/site-packages/conan/tools/files/__init__.py)
uilianries commented 1 year ago

We have only one case in ConanCenterIndex which uses it, the ICU recipe. I really don't know if worth porting it, it's a simple feature, but the chorus is too small.

SSE4 commented 1 year ago

besides conan center, there are billions of private (enterprise) recipes that we don't see. it's simple thing, so exposing it is not a big deal (especially given it's already implemented in the code).