Python pip.utils.deprecation 模块,RemovedInPip9Warning() 实例源码

我们从Python开源项目中,提取了以下46个代码示例,用于说明如何使用pip.utils.deprecation.RemovedInPip9Warning()

项目:swjtu-pyscraper    作者:Desgard    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:noc-orchestrator    作者:DirceuSilvaLabs    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:noc-orchestrator    作者:DirceuSilvaLabs    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:noc-orchestrator    作者:DirceuSilvaLabs    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:noc-orchestrator    作者:DirceuSilvaLabs    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:zanph    作者:zanph    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:hostapd-mana    作者:adde88    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:threatdetectionservice    作者:flyballlabs    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:oa_qian    作者:sunqb    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:pyetje    作者:rorlika    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:Problematica-public    作者:TechMaz    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:bawk    作者:jttwnsnd    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:fieldsight-kobocat    作者:awemulya    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:sslstrip-hsts-openwrt    作者:adde88    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:My-Web-Server-Framework-With-Python2.7    作者:syjsu    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:WebAct    作者:CreatCodeBuild    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:python-on    作者:hemangsk    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:python-on    作者:hemangsk    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:python-on    作者:hemangsk    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:remoteControlPPT    作者:htwenning    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:ASE-Fall2016    作者:Dai0526    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:vmmenu    作者:piggyking    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:vmmenu    作者:piggyking    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:APIGateway    作者:n89nanda    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:mibici-tools    作者:regenhans    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:Flask-SocketIO    作者:cutedogspark    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:metrics    作者:Jeremy-Friedman    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:metrics    作者:Jeremy-Friedman    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:projeto    作者:BarmyPenguin    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:Tweetme_Django    作者:wycliff    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:Data-visualization    作者:insta-code1    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:aweasome_learning    作者:Knight-ZXW    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:Salonniere    作者:txizzle    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:Sommarprojekt16    作者:fregu856    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:beepboop    作者:nicolehe    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:quizwizard    作者:naveensaikiran    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:PyEloqua-Examples    作者:colemanja91    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:bc-7-Todo-Console-Application    作者:Onikah    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:Financial-Portfolio-Flask    作者:Ryan-Gordon    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:slantline    作者:masakistewart    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:subroofer    作者:Sypherio    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:subroofer    作者:Sypherio    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:Lixiang_zhaoxin    作者:hejaxian    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:dubhacks-2017    作者:austinc88    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:Django-Tutorial    作者:noahpresler    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req
项目:ngx_status    作者:YoYoAdorkable    | 项目源码 | 文件源码
def _build_req_from_url(url):

    parts = [p for p in url.split('#', 1)[0].split('/') if p]

    req = None
    if len(parts) > 2 and parts[-2] in ('tags', 'branches', 'tag', 'branch'):
        req = parts[-3]
    elif len(parts) > 1 and parts[-1] == 'trunk':
        req = parts[-2]
    if req:
        warnings.warn(
            'Sniffing the requirement name from the url is deprecated and '
            'will be removed in the future. Please specify an #egg segment '
            'instead.', RemovedInPip9Warning,
            stacklevel=2)
    return req