-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial virtual environment and package files for Flask, Werkzeug…
…, and Setuptools
- Loading branch information
Showing
837 changed files
with
152,692 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+983 Bytes
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_fileno.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+13.9 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_inspect.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+4.66 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_log_render.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+2.07 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_loop.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+4.08 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_null_file.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+5.13 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_palettes.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+802 Bytes
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_pick.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+7.75 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_ratio.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+13.4 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_spinners.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+1.11 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_stack.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+989 Bytes
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_timer.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+29.5 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_win32_console.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+2.77 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_windows.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+3.93 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_windows_renderer.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+3.77 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_wrap.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+1.89 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/abc.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+13.2 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/align.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+10.3 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/ansi.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+4.45 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/bar.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+12.7 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/box.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+6.49 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/cells.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+27.2 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/color.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+1.84 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/color_triplet.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+10.4 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/columns.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+121 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/console.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+2.42 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/constrain.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+10.6 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/containers.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+11.6 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/control.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+12.3 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/default_styles.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+1.79 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/diagnose.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+4.69 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/emoji.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+2.28 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/errors.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+3.95 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/file_proxy.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+3.23 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/filesize.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+10.7 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/highlighter.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+6.4 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/json.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+6.26 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/jupyter.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+22.8 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/layout.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+20.8 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/live.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+5.03 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/live_render.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+14.2 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/logging.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+10.5 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/markup.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+7.11 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/measure.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+7.32 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/padding.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+2.2 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/pager.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+5.85 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/palette.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+12.5 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/panel.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+43.5 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/pretty.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+80.7 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/progress.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+10.8 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/progress_bar.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+16 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/prompt.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+2.05 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/protocol.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+667 Bytes
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/region.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+7.45 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/repr.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+7 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/rule.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+4.26 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/scope.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+2.72 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/screen.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+30.9 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/segment.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+6.73 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/spinner.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+6.61 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/status.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+34.4 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/style.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+2.39 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/styled.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+42 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/syntax.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+47.7 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/table.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+3.63 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/terminal_theme.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+65.6 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/text.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+7.14 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/theme.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+363 Bytes
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/themes.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+33.8 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/traceback.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+12.2 KB
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/tree.cpython-311.pyc
Binary file not shown.
454 changes: 454 additions & 0 deletions
454
venv/Lib/site-packages/pip/_vendor/rich/_cell_widths.py
Large diffs are not rendered by default.
Oops, something went wrong.
3,610 changes: 3,610 additions & 0 deletions
3,610
venv/Lib/site-packages/pip/_vendor/rich/_emoji_codes.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from typing import Callable, Match, Optional | ||
import re | ||
|
||
from ._emoji_codes import EMOJI | ||
|
||
|
||
_ReStringMatch = Match[str] # regex match object | ||
_ReSubCallable = Callable[[_ReStringMatch], str] # Callable invoked by re.sub | ||
_EmojiSubMethod = Callable[[_ReSubCallable, str], str] # Sub method of a compiled re | ||
|
||
|
||
def _emoji_replace( | ||
text: str, | ||
default_variant: Optional[str] = None, | ||
_emoji_sub: _EmojiSubMethod = re.compile(r"(:(\S*?)(?:(?:\-)(emoji|text))?:)").sub, | ||
) -> str: | ||
"""Replace emoji code in text.""" | ||
get_emoji = EMOJI.__getitem__ | ||
variants = {"text": "\uFE0E", "emoji": "\uFE0F"} | ||
get_variant = variants.get | ||
default_variant_code = variants.get(default_variant, "") if default_variant else "" | ||
|
||
def do_replace(match: Match[str]) -> str: | ||
emoji_code, emoji_name, variant = match.groups() | ||
try: | ||
return get_emoji(emoji_name.lower()) + get_variant( | ||
variant, default_variant_code | ||
) | ||
except KeyError: | ||
return emoji_code | ||
|
||
return _emoji_sub(do_replace, text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
CONSOLE_HTML_FORMAT = """\ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<style> | ||
{stylesheet} | ||
body {{ | ||
color: {foreground}; | ||
background-color: {background}; | ||
}} | ||
</style> | ||
</head> | ||
<body> | ||
<pre style="font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace"><code style="font-family:inherit">{code}</code></pre> | ||
</body> | ||
</html> | ||
""" | ||
|
||
CONSOLE_SVG_FORMAT = """\ | ||
<svg class="rich-terminal" viewBox="0 0 {width} {height}" xmlns="http://www.w3.org/2000/svg"> | ||
<!-- Generated with Rich https://www.textualize.io --> | ||
<style> | ||
@font-face {{ | ||
font-family: "Fira Code"; | ||
src: local("FiraCode-Regular"), | ||
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Regular.woff2") format("woff2"), | ||
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Regular.woff") format("woff"); | ||
font-style: normal; | ||
font-weight: 400; | ||
}} | ||
@font-face {{ | ||
font-family: "Fira Code"; | ||
src: local("FiraCode-Bold"), | ||
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Bold.woff2") format("woff2"), | ||
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Bold.woff") format("woff"); | ||
font-style: bold; | ||
font-weight: 700; | ||
}} | ||
.{unique_id}-matrix {{ | ||
font-family: Fira Code, monospace; | ||
font-size: {char_height}px; | ||
line-height: {line_height}px; | ||
font-variant-east-asian: full-width; | ||
}} | ||
.{unique_id}-title {{ | ||
font-size: 18px; | ||
font-weight: bold; | ||
font-family: arial; | ||
}} | ||
{styles} | ||
</style> | ||
<defs> | ||
<clipPath id="{unique_id}-clip-terminal"> | ||
<rect x="0" y="0" width="{terminal_width}" height="{terminal_height}" /> | ||
</clipPath> | ||
{lines} | ||
</defs> | ||
{chrome} | ||
<g transform="translate({terminal_x}, {terminal_y})" clip-path="url(#{unique_id}-clip-terminal)"> | ||
{backgrounds} | ||
<g class="{unique_id}-matrix"> | ||
{matrix} | ||
</g> | ||
</g> | ||
</svg> | ||
""" | ||
|
||
_SVG_FONT_FAMILY = "Rich Fira Code" | ||
_SVG_CLASSES_PREFIX = "rich-svg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from typing import Any | ||
|
||
|
||
def load_ipython_extension(ip: Any) -> None: # pragma: no cover | ||
# prevent circular import | ||
from pip._vendor.rich.pretty import install | ||
from pip._vendor.rich.traceback import install as tr_install | ||
|
||
install() | ||
tr_install() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from __future__ import annotations | ||
|
||
from typing import IO, Callable | ||
|
||
|
||
def get_fileno(file_like: IO[str]) -> int | None: | ||
"""Get fileno() from a file, accounting for poorly implemented file-like objects. | ||
Args: | ||
file_like (IO): A file-like object. | ||
Returns: | ||
int | None: The result of fileno if available, or None if operation failed. | ||
""" | ||
fileno: Callable[[], int] | None = getattr(file_like, "fileno", None) | ||
if fileno is not None: | ||
try: | ||
return fileno() | ||
except Exception: | ||
# `fileno` is documented as potentially raising a OSError | ||
# Alas, from the issues, there are so many poorly implemented file-like objects, | ||
# that `fileno()` can raise just about anything. | ||
return None | ||
return None |
Oops, something went wrong.