GRAYBYTE WORDPRESS FILE MANAGER4498

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /lib/python2.7/site-packages/pip/utils/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /lib/python2.7/site-packages/pip/utils//packaging.py
from __future__ import absolute_import

from email.parser import FeedParser

import logging
import sys

from pip._vendor.packaging import specifiers
from pip._vendor.packaging import version
from pip._vendor import pkg_resources

from pip import exceptions

logger = logging.getLogger(__name__)


def check_requires_python(requires_python):
    """
    Check if the python version in use match the `requires_python` specifier.

    Returns `True` if the version of python in use matches the requirement.
    Returns `False` if the version of python in use does not matches the
    requirement.

    Raises an InvalidSpecifier if `requires_python` have an invalid format.
    """
    if requires_python is None:
        # The package provides no information
        return True
    requires_python_specifier = specifiers.SpecifierSet(requires_python)

    # We only use major.minor.micro
    python_version = version.parse('.'.join(map(str, sys.version_info[:3])))
    return python_version in requires_python_specifier


def get_metadata(dist):
    if (isinstance(dist, pkg_resources.DistInfoDistribution) and
            dist.has_metadata('METADATA')):
        return dist.get_metadata('METADATA')
    elif dist.has_metadata('PKG-INFO'):
        return dist.get_metadata('PKG-INFO')


def check_dist_requires_python(dist):
    metadata = get_metadata(dist)
    feed_parser = FeedParser()
    feed_parser.feed(metadata)
    pkg_info_dict = feed_parser.close()
    requires_python = pkg_info_dict.get('Requires-Python')
    try:
        if not check_requires_python(requires_python):
            raise exceptions.UnsupportedPythonVersion(
                "%s requires Python '%s' but the running Python is %s" % (
                    dist.project_name,
                    requires_python,
                    '.'.join(map(str, sys.version_info[:3])),)
            )
    except specifiers.InvalidSpecifier as e:
        logger.warning(
            "Package %s has an invalid Requires-Python entry %s - %s" % (
                dist.project_name, requires_python, e))
        return

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 20:23:47
root / root
0755
__init__.py
26.55 KB
April 21 2022 18:08:21
root / root
0644
__init__.pyc
27.075 KB
April 21 2022 18:08:35
root / root
0644
__init__.pyo
27.018 KB
April 21 2022 18:08:36
root / root
0644
appdirs.py
8.604 KB
April 21 2022 18:08:21
root / root
0644
appdirs.pyc
8.405 KB
April 21 2022 18:08:35
root / root
0644
appdirs.pyo
8.405 KB
April 21 2022 18:08:35
root / root
0644
build.py
1.281 KB
April 21 2022 18:08:21
root / root
0644
build.pyc
1.679 KB
April 21 2022 18:08:35
root / root
0644
build.pyo
1.679 KB
April 21 2022 18:08:35
root / root
0644
deprecation.py
2.18 KB
April 21 2022 18:08:21
root / root
0644
deprecation.pyc
2.263 KB
April 21 2022 18:08:35
root / root
0644
deprecation.pyo
2.263 KB
April 21 2022 18:08:35
root / root
0644
encoding.py
0.948 KB
April 21 2022 18:08:21
root / root
0644
encoding.pyc
1.252 KB
April 21 2022 18:08:35
root / root
0644
encoding.pyo
1.252 KB
April 21 2022 18:08:35
root / root
0644
filesystem.py
0.878 KB
April 21 2022 18:08:21
root / root
0644
filesystem.pyc
0.762 KB
April 21 2022 18:08:35
root / root
0644
filesystem.pyo
0.762 KB
April 21 2022 18:08:35
root / root
0644
glibc.py
2.87 KB
April 21 2022 18:08:21
root / root
0644
glibc.pyc
1.783 KB
April 21 2022 18:08:35
root / root
0644
glibc.pyo
1.783 KB
April 21 2022 18:08:35
root / root
0644
hashes.py
2.799 KB
April 21 2022 18:08:21
root / root
0644
hashes.pyc
3.868 KB
April 21 2022 18:08:35
root / root
0644
hashes.pyo
3.868 KB
April 21 2022 18:08:35
root / root
0644
logging.py
3.249 KB
April 21 2022 18:08:21
root / root
0644
logging.pyc
4.729 KB
April 21 2022 18:08:35
root / root
0644
logging.pyo
4.729 KB
April 21 2022 18:08:35
root / root
0644
outdated.py
5.849 KB
April 21 2022 18:08:21
root / root
0644
outdated.pyc
5.547 KB
April 21 2022 18:08:35
root / root
0644
outdated.pyo
5.547 KB
April 21 2022 18:08:35
root / root
0644
packaging.py
2.031 KB
April 21 2022 18:08:21
root / root
0644
packaging.pyc
2.403 KB
April 21 2022 18:08:35
root / root
0644
packaging.pyo
2.403 KB
April 21 2022 18:08:35
root / root
0644
setuptools_build.py
0.271 KB
April 21 2022 18:08:21
root / root
0644
setuptools_build.pyc
0.339 KB
April 21 2022 18:08:35
root / root
0644
setuptools_build.pyo
0.339 KB
April 21 2022 18:08:35
root / root
0644
ui.py
11.325 KB
April 21 2022 18:08:21
root / root
0644
ui.pyc
11.409 KB
April 21 2022 18:08:35
root / root
0644
ui.pyo
11.341 KB
April 21 2022 18:08:36
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF