Current File : /home/mmdealscpanel/yummmdeals.com/operations.zip
PK�F[__init__.pynu�[���PK�F[�"33JJ	freeze.pynu�[���from __future__ import absolute_import

import logging
import re

import pip
from pip.req import InstallRequirement
from pip.req.req_file import COMMENT_RE
from pip.utils import get_installed_distributions
from pip._vendor import pkg_resources
from pip._vendor.packaging.utils import canonicalize_name
from pip._vendor.pkg_resources import RequirementParseError


logger = logging.getLogger(__name__)


def freeze(
        requirement=None,
        find_links=None, local_only=None, user_only=None, skip_regex=None,
        default_vcs=None,
        isolated=False,
        wheel_cache=None,
        skip=()):
    find_links = find_links or []
    skip_match = None

    if skip_regex:
        skip_match = re.compile(skip_regex).search

    dependency_links = []

    for dist in pkg_resources.working_set:
        if dist.has_metadata('dependency_links.txt'):
            dependency_links.extend(
                dist.get_metadata_lines('dependency_links.txt')
            )
    for link in find_links:
        if '#egg=' in link:
            dependency_links.append(link)
    for link in find_links:
        yield '-f %s' % link
    installations = {}
    for dist in get_installed_distributions(local_only=local_only,
                                            skip=(),
                                            user_only=user_only):
        try:
            req = pip.FrozenRequirement.from_dist(
                dist,
                dependency_links
            )
        except RequirementParseError:
            logger.warning(
                "Could not parse requirement: %s",
                dist.project_name
            )
            continue
        installations[req.name] = req

    if requirement:
        # the options that don't get turned into an InstallRequirement
        # should only be emitted once, even if the same option is in multiple
        # requirements files, so we need to keep track of what has been emitted
        # so that we don't emit it again if it's seen again
        emitted_options = set()
        for req_file_path in requirement:
            with open(req_file_path) as req_file:
                for line in req_file:
                    if (not line.strip() or
                            line.strip().startswith('#') or
                            (skip_match and skip_match(line)) or
                            line.startswith((
                                '-r', '--requirement',
                                '-Z', '--always-unzip',
                                '-f', '--find-links',
                                '-i', '--index-url',
                                '--pre',
                                '--trusted-host',
                                '--process-dependency-links',
                                '--extra-index-url'))):
                        line = line.rstrip()
                        if line not in emitted_options:
                            emitted_options.add(line)
                            yield line
                        continue

                    if line.startswith('-e') or line.startswith('--editable'):
                        if line.startswith('-e'):
                            line = line[2:].strip()
                        else:
                            line = line[len('--editable'):].strip().lstrip('=')
                        line_req = InstallRequirement.from_editable(
                            line,
                            default_vcs=default_vcs,
                            isolated=isolated,
                            wheel_cache=wheel_cache,
                        )
                    else:
                        line_req = InstallRequirement.from_line(
                            COMMENT_RE.sub('', line).strip(),
                            isolated=isolated,
                            wheel_cache=wheel_cache,
                        )

                    if not line_req.name:
                        logger.info(
                            "Skipping line in requirement file [%s] because "
                            "it's not clear what it would install: %s",
                            req_file_path, line.strip(),
                        )
                        logger.info(
                            "  (add #egg=PackageName to the URL to avoid"
                            " this warning)"
                        )
                    elif line_req.name not in installations:
                        logger.warning(
                            "Requirement file [%s] contains %s, but that "
                            "package is not installed",
                            req_file_path, COMMENT_RE.sub('', line).strip(),
                        )
                    else:
                        yield str(installations[line_req.name]).rstrip()
                        del installations[line_req.name]

        yield(
            '## The following requirements were added by '
            'pip freeze:'
        )
    for installation in sorted(
            installations.values(), key=lambda x: x.name.lower()):
        if canonicalize_name(installation.name) not in skip:
            yield str(installation).rstrip()
PK�F[)���xx __pycache__/check.cpython-36.pycnu�[���3

�Pf6�@sdd�Zdd�Zdd�ZdS)cCsbi}i}xP|D]H}d|j|jf}tt||��}|r<|||<tt||��}|r|||<qW||fS)Nz%s==%s)�project_name�version�list�get_missing_reqs�get_incompatible_reqs)�installed_distsZmissing_reqs_dictZincompatible_reqs_dict�dist�keyZmissing_reqsZincompatible_reqs�r	�/usr/lib/python3.6/check.py�check_requirementss

rccsLtdd�|D��}t�}x.|j�D]"}|jj�|kr"|j|�|Vq"WdS)z\Return all of the requirements of `dist` that aren't present in
    `installed_dists`.

    css|]}|jj�VqdS)N)r�lower)�.0�dr	r	r
�	<genexpr>sz#get_missing_reqs.<locals>.<genexpr>N)�set�requiresrr�add)rrZinstalled_namesZmissing_requirements�requirementr	r	r
rs
rccsTi}x|D]}|||j<q
Wx2|j�D]&}|j|j�}|r&||kr&||fVq&WdS)zyReturn all of the requirements of `dist` that are present in
    `installed_dists`, but have incompatible versions.

    N)rr�get)rrZinstalled_dists_by_nameZinstalled_distrZpresent_distr	r	r
r$s
rN)rrrr	r	r	r
�<module>sPK�F[�P�H))!__pycache__/freeze.cpython-36.pycnu�[���3

�PfJ�	@s�ddlmZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZddl
mZddlmZeje�Zddddddd	dff	d
d�ZdS)�)�absolute_importN)�InstallRequirement)�
COMMENT_RE)�get_installed_distributions)�
pkg_resources)�canonicalize_name)�RequirementParseErrorFc	cs�|pg}d}	|rtj|�j}	g}
x(tjD]}|jd�r(|
j|jd��q(Wx|D]}d|krP|
j|�qPWx|D]}d|VqpWi}
xXt	|f|d�D]F}yt
jj||
�}Wn$t
k
r�tjd|j�w�YnX||
|j<q�W|�rvt�}�x�|D�]v}t|���b}�xX|D�]N}|j��sL|j�jd��sL|	�r@|	|��sL|jd!��rr|j�}||k�r|j|�|V�q|jd��s�|jd��r�|jd��r�|dd�j�}n|td�d�j�jd�}tj||||d�}ntjtjd|�j�||d�}|j�stjd||j��tjd�nD|j|
k�r@tjd|tjd|�j��nt |
|j�j�V|
|j=�qWWdQRXq�WdVx<t!|
j"�dd�d �D]$}t#|j�|k�r�t |�j�V�q�WdS)"Nzdependency_links.txtz#egg=z-f %s)�
local_only�skip�	user_onlyzCould not parse requirement: %s�#�-r�
--requirement�-Z�--always-unzip�-f�--find-links�-i�--index-url�--pre�--trusted-host�--process-dependency-links�--extra-index-urlz-ez
--editable��=)�default_vcs�isolated�wheel_cache�)rrzWSkipping line in requirement file [%s] because it's not clear what it would install: %sz9  (add #egg=PackageName to the URL to avoid this warning)zDRequirement file [%s] contains %s, but that package is not installedz7## The following requirements were added by pip freeze:cSs
|jj�S)N)�name�lower)�x�r"�/usr/lib/python3.6/freeze.py�<lambda>�szfreeze.<locals>.<lambda>)�key)r
rrrrrrrrrrr)$�re�compile�searchrZworking_setZhas_metadata�extendZget_metadata_lines�appendr�pipZFrozenRequirementZ	from_distr�loggerZwarningZproject_namer�set�open�strip�
startswith�rstrip�add�len�lstriprZ
from_editableZ	from_liner�sub�info�str�sorted�valuesr)ZrequirementZ
find_linksr	rZ
skip_regexrrrr
Z
skip_matchZdependency_linksZdist�linkZ
installationsZreqZemitted_optionsZ
req_file_pathZreq_file�lineZline_reqZinstallationr"r"r#�freezes�






r<)Z
__future__rZloggingr&r+Zpip.reqrZpip.req.req_filerZ	pip.utilsrZpip._vendorrZpip._vendor.packaging.utilsrZpip._vendor.pkg_resourcesrZ	getLogger�__name__r,r<r"r"r"r#�<module>s 
PK�F[)���xx&__pycache__/check.cpython-36.opt-1.pycnu�[���3

�Pf6�@sdd�Zdd�Zdd�ZdS)cCsbi}i}xP|D]H}d|j|jf}tt||��}|r<|||<tt||��}|r|||<qW||fS)Nz%s==%s)�project_name�version�list�get_missing_reqs�get_incompatible_reqs)�installed_distsZmissing_reqs_dictZincompatible_reqs_dict�dist�keyZmissing_reqsZincompatible_reqs�r	�/usr/lib/python3.6/check.py�check_requirementss

rccsLtdd�|D��}t�}x.|j�D]"}|jj�|kr"|j|�|Vq"WdS)z\Return all of the requirements of `dist` that aren't present in
    `installed_dists`.

    css|]}|jj�VqdS)N)r�lower)�.0�dr	r	r
�	<genexpr>sz#get_missing_reqs.<locals>.<genexpr>N)�set�requiresrr�add)rrZinstalled_namesZmissing_requirements�requirementr	r	r
rs
rccsTi}x|D]}|||j<q
Wx2|j�D]&}|j|j�}|r&||kr&||fVq&WdS)zyReturn all of the requirements of `dist` that are present in
    `installed_dists`, but have incompatible versions.

    N)rr�get)rrZinstalled_dists_by_nameZinstalled_distrZpresent_distr	r	r
r$s
rN)rrrr	r	r	r
�<module>sPK�F[m-Wqq#__pycache__/__init__.cpython-36.pycnu�[���3

�Pf�@sdS)N�rrr�/usr/lib/python3.6/__init__.py�<module>sPK�F[m-Wqq)__pycache__/__init__.cpython-36.opt-1.pycnu�[���3

�Pf�@sdS)N�rrr�/usr/lib/python3.6/__init__.py�<module>sPK�F[�P�H))'__pycache__/freeze.cpython-36.opt-1.pycnu�[���3

�PfJ�	@s�ddlmZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZddl
mZddlmZeje�Zddddddd	dff	d
d�ZdS)�)�absolute_importN)�InstallRequirement)�
COMMENT_RE)�get_installed_distributions)�
pkg_resources)�canonicalize_name)�RequirementParseErrorFc	cs�|pg}d}	|rtj|�j}	g}
x(tjD]}|jd�r(|
j|jd��q(Wx|D]}d|krP|
j|�qPWx|D]}d|VqpWi}
xXt	|f|d�D]F}yt
jj||
�}Wn$t
k
r�tjd|j�w�YnX||
|j<q�W|�rvt�}�x�|D�]v}t|���b}�xX|D�]N}|j��sL|j�jd��sL|	�r@|	|��sL|jd!��rr|j�}||k�r|j|�|V�q|jd��s�|jd��r�|jd��r�|dd�j�}n|td�d�j�jd�}tj||||d�}ntjtjd|�j�||d�}|j�stjd||j��tjd�nD|j|
k�r@tjd|tjd|�j��nt |
|j�j�V|
|j=�qWWdQRXq�WdVx<t!|
j"�dd�d �D]$}t#|j�|k�r�t |�j�V�q�WdS)"Nzdependency_links.txtz#egg=z-f %s)�
local_only�skip�	user_onlyzCould not parse requirement: %s�#�-r�
--requirement�-Z�--always-unzip�-f�--find-links�-i�--index-url�--pre�--trusted-host�--process-dependency-links�--extra-index-urlz-ez
--editable��=)�default_vcs�isolated�wheel_cache�)rrzWSkipping line in requirement file [%s] because it's not clear what it would install: %sz9  (add #egg=PackageName to the URL to avoid this warning)zDRequirement file [%s] contains %s, but that package is not installedz7## The following requirements were added by pip freeze:cSs
|jj�S)N)�name�lower)�x�r"�/usr/lib/python3.6/freeze.py�<lambda>�szfreeze.<locals>.<lambda>)�key)r
rrrrrrrrrrr)$�re�compile�searchrZworking_setZhas_metadata�extendZget_metadata_lines�appendr�pipZFrozenRequirementZ	from_distr�loggerZwarningZproject_namer�set�open�strip�
startswith�rstrip�add�len�lstriprZ
from_editableZ	from_liner�sub�info�str�sorted�valuesr)ZrequirementZ
find_linksr	rZ
skip_regexrrrr
Z
skip_matchZdependency_linksZdist�linkZ
installationsZreqZemitted_optionsZ
req_file_pathZreq_file�lineZline_reqZinstallationr"r"r#�freezes�






r<)Z
__future__rZloggingr&r+Zpip.reqrZpip.req.req_filerZ	pip.utilsrZpip._vendorrZpip._vendor.packaging.utilsrZpip._vendor.pkg_resourcesrZ	getLogger�__name__r,r<r"r"r"r#�<module>s 
PK�F[�eb�66check.pynu�[���

def check_requirements(installed_dists):
    missing_reqs_dict = {}
    incompatible_reqs_dict = {}

    for dist in installed_dists:
        key = '%s==%s' % (dist.project_name, dist.version)

        missing_reqs = list(get_missing_reqs(dist, installed_dists))
        if missing_reqs:
            missing_reqs_dict[key] = missing_reqs

        incompatible_reqs = list(get_incompatible_reqs(
            dist, installed_dists))
        if incompatible_reqs:
            incompatible_reqs_dict[key] = incompatible_reqs

    return (missing_reqs_dict, incompatible_reqs_dict)


def get_missing_reqs(dist, installed_dists):
    """Return all of the requirements of `dist` that aren't present in
    `installed_dists`.

    """
    installed_names = set(d.project_name.lower() for d in installed_dists)
    missing_requirements = set()

    for requirement in dist.requires():
        if requirement.project_name.lower() not in installed_names:
            missing_requirements.add(requirement)
            yield requirement


def get_incompatible_reqs(dist, installed_dists):
    """Return all of the requirements of `dist` that are present in
    `installed_dists`, but have incompatible versions.

    """
    installed_dists_by_name = {}
    for installed_dist in installed_dists:
        installed_dists_by_name[installed_dist.project_name] = installed_dist

    for requirement in dist.requires():
        present_dist = installed_dists_by_name.get(requirement.project_name)

        if present_dist and present_dist not in requirement:
            yield (requirement, present_dist)
PK�F[__init__.pynu�[���PK�F[�"33JJ	;freeze.pynu�[���PK�F[)���xx �__pycache__/check.cpython-36.pycnu�[���PK�F[�P�H))!�__pycache__/freeze.cpython-36.pycnu�[���PK�F[)���xx&&__pycache__/check.cpython-36.opt-1.pycnu�[���PK�F[m-Wqq#�+__pycache__/__init__.cpython-36.pycnu�[���PK�F[m-Wqq)�,__pycache__/__init__.cpython-36.opt-1.pycnu�[���PK�F[�P�H))'\-__pycache__/freeze.cpython-36.opt-1.pycnu�[���PK�F[�eb�66�8check.pynu�[���PK		6J?