當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。