当前位置: 首页>>代码示例>>Python>>正文


Python wheel.__version__方法代码示例

本文整理汇总了Python中wheel.__version__方法的典型用法代码示例。如果您正苦于以下问题:Python wheel.__version__方法的具体用法?Python wheel.__version__怎么用?Python wheel.__version__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在wheel的用法示例。


在下文中一共展示了wheel.__version__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: write_wheelfile

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def write_wheelfile(
        self, wheelfile_base, generator="bdist_wheel (" + wheel_version + ")"
    ):
        from email.message import Message

        msg = Message()
        msg["Wheel-Version"] = "1.0"  # of the spec
        msg["Generator"] = generator
        msg["Root-Is-Purelib"] = str(self.root_is_pure).lower()

        # Doesn't work for bdist_wininst
        impl_tag, abi_tag, plat_tag = self.get_tag()
        for impl in impl_tag.split("."):
            for abi in abi_tag.split("."):
                for plat in plat_tag.split("."):
                    msg["Tag"] = "-".join((impl, abi, plat))

        wheelfile_path = os.path.join(wheelfile_base, "WHEEL")
        logger.info("creating %s", wheelfile_path)
        with open(wheelfile_path, "w") as f:
            Generator(f, maxheaderlen=0).flatten(msg) 
开发者ID:microsoft,项目名称:botbuilder-python,代码行数:23,代码来源:azure_bdist_wheel.py

示例2: write_wheelfile

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def write_wheelfile(self, wheelfile_base, generator='bdist_wheel (' + wheel.__version__ + ')'):
        from email.message import Message
        msg = Message()
        msg['Wheel-Version'] = '1.0'  # of the spec
        msg['Generator'] = generator
        msg['Root-Is-Purelib'] = str(self.root_is_pure).lower()

        # Doesn't work for bdist_wininst
        impl_tag, abi_tag, plat_tag = self.get_tag()
        for impl in impl_tag.split('.'):
            for abi in abi_tag.split('.'):
                for plat in plat_tag.split('.'):
                    msg['Tag'] = '-'.join((impl, abi, plat))

        wheelfile_path = os.path.join(wheelfile_base, 'WHEEL')
        logger.info('creating %s', wheelfile_path)
        with open(wheelfile_path, 'w') as f:
            Generator(f, maxheaderlen=0).flatten(msg) 
开发者ID:jpush,项目名称:jbox,代码行数:20,代码来源:bdist_wheel.py

示例3: write_wheelfile

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def write_wheelfile(self, wheelfile_base, generator='bdist_wheel (' + wheel.__version__ + ')'):
        from email.message import Message
        msg = Message()
        msg['Wheel-Version'] = '1.0'  # of the spec
        msg['Generator'] = generator
        msg['Root-Is-Purelib'] = str(self.root_is_purelib).lower()

        # Doesn't work for bdist_wininst
        impl_tag, abi_tag, plat_tag = self.get_tag()
        for impl in impl_tag.split('.'):
            for abi in abi_tag.split('.'):
                for plat in plat_tag.split('.'):
                    msg['Tag'] = '-'.join((impl, abi, plat))

        wheelfile_path = os.path.join(wheelfile_base, 'WHEEL')
        logger.info('creating %s', wheelfile_path)
        with open(wheelfile_path, 'w') as f:
            Generator(f, maxheaderlen=0).flatten(msg) 
开发者ID:chalasr,项目名称:Flask-P2P,代码行数:20,代码来源:bdist_wheel.py

示例4: get_version

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def get_version(*file_paths):
    """Retrieves the version from django_json_widget/__init__.py"""
    filename = os.path.join(os.path.dirname(__file__), *file_paths)
    version_file = open(filename).read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError('Unable to find version string.')


# version = get_version("django_json_widget", "__init__.py") 
开发者ID:jmrivas86,项目名称:django-json-widget,代码行数:14,代码来源:setup.py

示例5: get_version

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def get_version(*file_paths):
    """Retrieves the version from django_mptt_comments/__init__.py"""
    filename = os.path.join(os.path.dirname(__file__), *file_paths)
    version_file = open(filename).read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError('Unable to find version string.') 
开发者ID:zmrenwu,项目名称:django-mptt-comments,代码行数:11,代码来源:setup.py

示例6: get_version

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def get_version(*file_paths):
    """Retrieves the version from longclaw/__init__.py"""
    filename = os.path.join(os.path.dirname(__file__), *file_paths)
    version_file = open(filename).read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError('Unable to find version string.') 
开发者ID:JamesRamm,项目名称:longclaw,代码行数:11,代码来源:setup.py

示例7: get_version

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def get_version(*file_paths):
    """Retrieves the version from django_better_admin_arrayfield/__init__.py"""
    filename = os.path.join(os.path.dirname(__file__), *file_paths)
    version_file = open(filename).read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError("Unable to find version string.") 
开发者ID:gradam,项目名称:django-better-admin-arrayfield,代码行数:10,代码来源:setup.py

示例8: get_version

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def get_version(*file_paths):
    """Retrieves the version from django_cookies_samesite/__init__.py"""
    filename = os.path.join(os.path.dirname(__file__), *file_paths)
    version_file = open(filename).read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError('Unable to find version string.') 
开发者ID:jotes,项目名称:django-cookies-samesite,代码行数:11,代码来源:setup.py

示例9: get_version

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def get_version(*file_paths):
    """Retrieves the version from business_logic/__init__.py"""
    filename = os.path.join(os.path.dirname(__file__), *file_paths)
    version_file = open(filename).read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError('Unable to find version string.') 
开发者ID:Valian,项目名称:python-business-logic,代码行数:11,代码来源:setup.py

示例10: main

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def main():
    try:
        import pip
    except ImportError:
        raise EnvironmentError("pip installation is required")
    try:
        import wheel
    except ImportError:
        raise EnvironmentError("wheel installation is required")
    try:
        import packaging
    except ImportError:
        packaging_version = None
    else:
        packaging_version = packaging.__version__
    try:
        import setuptools
    except ImportError:
        setuptools_version = None
    else:
        setuptools_version = setuptools.__version__
    env = default_environment()
    env["python_executable"] = sys.executable
    env["pip_version"] = pip.__version__
    env["wheel_version"] = wheel.__version__
    env["packaging_version"] = packaging_version
    env["setuptools_version"] = setuptools_version
    env = sorted(env.items())
    result = json.dumps(env, indent=2)
    print(result) 
开发者ID:wimglenn,项目名称:johnnydep,代码行数:32,代码来源:env_check.py

示例11: get_version

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def get_version(*file_paths):
    """Retrieves the version from wagtailmath/__init__.py"""
    filename = os.path.join(os.path.dirname(__file__), *file_paths)
    version_file = open(filename).read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError('Unable to find version string.') 
开发者ID:JamesRamm,项目名称:wagtailmath,代码行数:11,代码来源:setup.py

示例12: get_version

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def get_version(*file_paths):
    """Retrieves the version from django_fine_uploader/__init__.py"""
    filename = os.path.join(os.path.dirname(__file__), *file_paths)
    version_file = open(filename).read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError('Unable to find version string.') 
开发者ID:douglasmiranda,项目名称:django-fine-uploader,代码行数:11,代码来源:setup.py

示例13: get_version

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def get_version(*file_paths):
    """Retrieves the version from django_zombodb/__init__.py"""
    filename = os.path.join(os.path.dirname(__file__), *file_paths)
    version_file = open(filename).read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError('Unable to find version string.') 
开发者ID:vintasoftware,项目名称:django-zombodb,代码行数:11,代码来源:setup.py

示例14: get_version

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def get_version(*file_paths):
    """Retrieves the version from djangocms_spa/__init__.py"""
    filename = os.path.join(os.path.dirname(__file__), *file_paths)
    version_file = open(filename).read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError('Unable to find version string.') 
开发者ID:dreipol,项目名称:djangocms-spa,代码行数:11,代码来源:setup.py

示例15: get_version

# 需要导入模块: import wheel [as 别名]
# 或者: from wheel import __version__ [as 别名]
def get_version(*file_paths):
    """Retrieves the version from rest_framework_tus/__init__.py"""
    filename = os.path.join(os.path.dirname(__file__), *file_paths)
    version_file = open(filename).read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError('Unable to find version string.') 
开发者ID:dirkmoors,项目名称:drf-tus,代码行数:11,代码来源:setup.py


注:本文中的wheel.__version__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。