2bi S SK r S SKrS SKrS SKJr S SKJr S SKJr S SK J
r
Jr S SKJ
r
Jr S SKJrJr \R$ " \5 r " S S \5 rS
\S\S\4S
jrg) N)Values)List)Command)ERRORSUCCESS)
FAVORITE_HASH
STRONG_HASHES)read_chunkswrite_outputc F \ rS rSrSrSrSrSS jrS\S \ \
S\4S
jrSr
g)
HashCommand z}
Compute a hash of a local package archive.
These can be used with --hash in a requirements file to do repeatable
installs.
z%prog [options] ...TreturnNc
U R R SSS[ S[ SR SR [ 5 5 S9 U R R SU R 5 g ) Nz-az--algorithm algorithmstorez$The hash algorithm to use: one of {}z, )destchoicesactiondefaulthelpr )cmd_opts
add_optionr r formatjoinparserinsert_option_group)selfs ڍ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_internal/commands/hash.pyadd_optionsHashCommand.add_options s_
!!7>> -( !
''4==9 optionsargsc
U( d/ U R R [ R 5 [ $ UR
nU H n[
SXC[ XC5 5 M [ $ )Nz%s:
--hash=%s:%s) r print_usagesysstderrr r r
_hash_of_filer )r r# r$ r paths r runHashCommand.run( sP KK##CJJ/L%% D#TmD6T
r" )r N)__name__
__module____qualname____firstlineno____doc__usageignore_require_venvr r r strintr+ __static_attributes__r- r" r r
r
s7
)E:
6
c
s
r" r
r* r r c [ U S5 n[ R " U5 n[ U5 H nUR U5 M SSS5 UR 5 $ ! , ( d f WR 5 $ = f)z!Return the hash digest of a file.rbN)openhashlibnewr
update hexdigest)r* r archivehashchunks r r) r) 5 sc
dD W{{9% )EKK *
>>
>>s :A
A<)r; loggingr' optparser typingr pip._internal.cli.base_commandr pip._internal.cli.status_codesr r pip._internal.utils.hashesr r pip._internal.utils.miscr
r getLoggerr. loggerr
r5 r) r- r" r rK sW
2 9 C > 8 $#' #L r"