Let us walk on the 3-isogeny graph
|
Data Structures | |
class | Cache |
class | cached_property |
class | Configurator |
class | CSVBase |
class | CSVReader |
class | CSVWriter |
class | EventMixin |
class | ExportEntry |
class | FileOperator |
class | HTTPSConnection |
class | HTTPSHandler |
class | HTTPSOnlyHandler |
class | Progress |
class | PyPIRCFile |
class | SafeTransport |
class | Sequencer |
class | ServerProxy |
class | SubprocessMixin |
class | Transport |
Variables | |
ssl = None | |
logger = logging.getLogger(__name__) | |
IDENTIFIER = re.compile(r'^([\w\.-]+)\s*') | |
VERSION_IDENTIFIER = re.compile(r'^([\w\.*+-]+)\s*') | |
COMPARE_OP = re.compile(r'^(<=?|>=?|={2,3}|[~!]=)\s*') | |
MARKER_OP = re.compile(r'^((<=?)|(>=?)|={2,3}|[~!]=|in|not\s+in)\s*') | |
OR = re.compile(r'^or\b\s*') | |
AND = re.compile(r'^and\b\s*') | |
NON_SPACE = re.compile(r'(\S+)\s*') | |
STRING_CHUNK = re.compile(r'([\s\w\.{}()*+#:;,/?!~`@$%^&=|<>\[\]-]+)') | |
ENTRY_RE = re.compile(, re.VERBOSE) | |
PROJECT_NAME_AND_VERSION | |
PYTHON_VERSION = re.compile(r'-py(\d\.?\d?)') | |
NAME_VERSION_RE | |
str | _external_data_base_url = 'https://www.red-dove.com/pypi/projects/' |
tuple | ARCHIVE_EXTENSIONS |
tuple | UNITS = ('', 'K', 'M', 'G','T','P') |
RICH_GLOB = re.compile(r'\{([^}]*)\}') | |
_CHECK_RECURSIVE_GLOB = re.compile(r'[^/\\,{]\*\*|\*\*[^/\\,}]') | |
_CHECK_MISMATCH_SET = re.compile(r'^[^{]*\}|\{[^}]*$') | |
dict | _TARGET_TO_PLAT |
|
protected |
Definition at line 1558 of file util.py.
References i.
|
protected |
Definition at line 913 of file util.py.
References i.
Referenced by pip._vendor.distlib.util.get_package_data(), and pip._vendor.distlib.util.get_project_data().
|
protected |
Definition at line 1388 of file util.py.
References pip._vendor.distlib.util._iglob(), and i.
Referenced by pip._vendor.distlib.util._iglob(), and pip._vendor.distlib.util.iglob().
|
protected |
|
protected |
chdir | ( | d | ) |
convert_path | ( | pathname | ) |
Return 'pathname' as a name that will work on the native filesystem. The path is split on '/' and put back together again using the current directory separator. Needed because filenames in the setup script are always supplied in Unix style, and have to be converted to the local convention before we can actually use them in the filesystem. Raises ValueError on non-Unix-ish systems if 'pathname' either starts or ends with a slash.
Definition at line 457 of file util.py.
References i.
extract_by_key | ( | d, | |
keys | |||
) |
Definition at line 340 of file util.py.
References i.
get_cache_base | ( | suffix = None | ) |
Return the default base location for distlib caches. If the directory does not exist, it is created. Use the suffix provided for the base directory, and default to '.distlib' if it isn't provided. On Windows, if LOCALAPPDATA is defined in the environment, then it is assumed to be a directory, and will be the parent directory of the result. On POSIX, and on Windows if LOCALAPPDATA is not defined, the user's home directory - using os.expanduser('~') - will be the parent directory of the result. The result is just the directory '.distlib' in the parent directory as determined above, or with the name specified with ``suffix``.
Definition at line 746 of file util.py.
References i.
get_executable | ( | ) |
Definition at line 306 of file util.py.
References i.
get_export_entry | ( | specification | ) |
Definition at line 715 of file util.py.
References i.
get_extras | ( | requested, | |
available | |||
) |
Definition at line 888 of file util.py.
References i.
get_host_platform | ( | ) |
Return a string that identifies the current platform. This is used mainly to distinguish platform-specific build directories and platform-specific built distributions. Typically includes the OS name and version and the architecture (as supplied by 'os.uname()'), although the exact information included depends on the OS; eg. on Linux, the kernel version isn't particularly important. Examples of returned values: linux-i586 linux-alpha (?) solaris-2.6-sun4u Windows will return one of: win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) win32 (all others - specifically, sys.platform is returned) For other non-POSIX platforms, currently just returns 'sys.platform'.
Definition at line 1838 of file util.py.
References i.
Referenced by pip._vendor.distlib.util.get_platform().
get_package_data | ( | name, | |
version | |||
) |
Definition at line 941 of file util.py.
References pip._vendor.distlib.util._get_external_data(), and i.
get_platform | ( | ) |
Definition at line 1926 of file util.py.
References pip._vendor.distlib.util.get_host_platform(), and i.
get_process_umask | ( | ) |
get_project_data | ( | name | ) |
Definition at line 935 of file util.py.
References pip._vendor.distlib.util._get_external_data(), and i.
get_resources_dests | ( | resources_root, | |
rules | |||
) |
Find destinations for resources files
Definition at line 270 of file util.py.
References i.
iglob | ( | path_glob | ) |
Extended globbing function that supports ** and {opt1,opt2,opt3}.
Definition at line 1377 of file util.py.
References pip._vendor.distlib.util._iglob(), and i.
in_venv | ( | ) |
is_string_sequence | ( | seq | ) |
normalize_name | ( | name | ) |
Normalize a python package name a la PEP 503
Definition at line 1728 of file util.py.
References i.
parse_credentials | ( | netloc | ) |
Definition at line 810 of file util.py.
References i.
parse_marker | ( | marker_string | ) |
Parse a marker string and return a dictionary containing a marker expression. The dictionary will contain keys "op", "lhs" and "rhs" for non-terminals in the expression grammar, or strings. A string contained in quotes is to be interpreted as a literal string, and a string not contained in quotes is a variable (such as os_name).
Definition at line 56 of file util.py.
References i.
parse_name_and_version | ( | p | ) |
A utility method used to get name and version from a string. From e.g. a Provides-Dist value. :param p: A value in a form 'foo (1.0)' :return: The name and version as a tuple.
Definition at line 873 of file util.py.
References i.
parse_requirement | ( | req | ) |
Parse a requirement passed in as a string. Return a Container whose attributes contain the various parts of the requirement.
Definition at line 145 of file util.py.
References i.
path_to_cache_dir | ( | path | ) |
Convert an absolute path to a directory name for use in a cache. The algorithm used is: #. On Windows, any ``':'`` in the drive is replaced with ``'---'``. #. Any occurrence of ``os.sep`` is replaced with ``'--'``. #. ``'.cache'`` is appended.
Definition at line 787 of file util.py.
References i.
Referenced by Cache.prefix_to_dir().
Definition at line 324 of file util.py.
References i.
read_exports | ( | stream | ) |
Definition at line 349 of file util.py.
References i.
resolve | ( | module_name, | |
dotted_path | |||
) |
Definition at line 667 of file util.py.
References i.
Referenced by ExportEntry.value().
socket_timeout | ( | seconds = 15 | ) |
Definition at line 434 of file util.py.
References i.
split_filename | ( | filename, | |
project_name = None |
|||
) |
Extract name, version, python version from a filename (no extension) Return name, version, pyver or None
Definition at line 845 of file util.py.
References i.
tempdir | ( | ) |
Definition at line 416 of file util.py.
References i.
unarchive | ( | archive_filename, | |
dest_dir, | |||
format = None , |
|||
check = True |
|||
) |
Definition at line 1205 of file util.py.
References i.
write_exports | ( | exports, | |
stream | |||
) |
Definition at line 396 of file util.py.
References i.
zip_dir | ( | directory | ) |
zip a directory tree into a BytesIO object
Definition at line 1259 of file util.py.
References i.
|
protected |
|
protected |
|
protected |
tuple ARCHIVE_EXTENSIONS |
NAME_VERSION_RE |
PROJECT_NAME_AND_VERSION |
STRING_CHUNK = re.compile(r'([\s\w\.{}()*+#:;,/?!~`@$%^&=|<>\[\]-]+)') |