Your IP : 216.73.217.88
�
�/6R� c @ sT d Z d d l Z d d l Z d d l m Z m Z m Z Gd d � d e � Z d S( u Store and retrieve wheel signing / verifying keys.
Given a scope (a package name, + meaning "all packages", or - meaning
"no packages"), return a list of verifying keys that are trusted for that
scope.
Given a package name, return a list of (scope, key) suggested keys to sign
that package (only the verifying keys; the private signing key is stored
elsewhere).
Keys here are represented as urlsafe_b64encoded strings with no padding.
Tentative command line interface:
# list trusts
wheel trust
# trust a particular key for all
wheel trust + key
# trust key for beaglevote
wheel trust beaglevote key
# stop trusting a key for all
wheel untrust + key
# generate a key pair
wheel keygen
# import a signing key from a file
wheel import keyfile
# export a signing key
wheel export key
i N( u nativeu load_config_pathsu save_config_pathc B s� | Ee Z d Z d Z d Z d d � Z d d � Z d d � Z d d
� Z d d � Z d d
d � Z d d � Z d d � Z
d S( u WheelKeysi u
wheel.jsonc C s i g d 6g d 6| _ d S( Nu signersu verifiers( u data( u self( ( uF /opt/alt/python33/lib/python3.3/site-packages/wheel/signatures/keys.pyu __init__* s u WheelKeys.__init__c C s x� t d � D]� } t j j t | � | j � } t j j | � r
t | d � �� } t j | � | _
x- d D]% } | | j
k rn g | j
| <qn qn Wd | j
k r� | j | j
d <n; | j
d | j k r� t d j
| j
d | j � � � n Wd QXPq
q
W| S( Nu wheelu ru signersu verifiersu schemau( Bad wheel.json version {0}, expected {1}( u signersu verifiers( u load_config_pathsu osu pathu joinu nativeu CONFIG_NAMEu existsu openu jsonu loadu datau SCHEMAu
ValueErroru format( u selfu pathu confu infileu x( ( uF /opt/alt/python33/lib/python3.3/site-packages/wheel/signatures/keys.pyu load- s
"u WheelKeys.loadc C s_ t d � } t j j t | � | j � } t | d � � } t j | j | d d �Wd QX| S( Nu wheelu w+u indenti (
u save_config_pathu osu pathu joinu nativeu CONFIG_NAMEu openu jsonu dumpu data( u selfu pathu confu out( ( uF /opt/alt/python33/lib/python3.3/site-packages/wheel/signatures/keys.pyu save@ s
u WheelKeys.savec C s&