File: //usr/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/hash.cpython-39.pyc
a
?�f3 � @ s� d dl mZ d dlZd dlZd dlZd dlmZ d dlmZm Z d dl
mZmZ d dl
mZmZ d dlmZ er�d dlmZ d d lmZ e�e�ZG d
d� de�Zdd
� ZdS )� )�absolute_importN)�Command)�ERROR�SUCCESS)�
FAVORITE_HASH�
STRONG_HASHES)�read_chunks�write_output)�MYPY_CHECK_RUNNING)�Values)�Listc @ s( e Zd ZdZdZdZdd� Zdd� ZdS ) �HashCommandz�
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] <file> ...Tc C s: | j jdddtdtd�d�t��d� | j�d| j � d S ) Nz-az--algorithm� algorithmZstorez$The hash algorithm to use: one of {}z, )�dest�choices�action�default�helpr )Zcmd_optsZ
add_optionr r �format�join�parserZinsert_option_group)�self� r �?/usr/lib/python3.9/site-packages/pip/_internal/commands/hash.py�add_options s ��zHashCommand.add_optionsc C s>