Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions vendor/bin/idna
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/home/runner/.local/share/virtualenvs/policy-as-code-60-4XQbQ/bin/python
import sys
from idna.cli import main
if __name__ == '__main__':
sys.argv[0] = sys.argv[0].removesuffix('.exe')
sys.exit(main())
10 changes: 4 additions & 6 deletions vendor/bin/normalizer
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/home/geekmasher/.local/share/virtualenvs/policy-as-code-ys9TzZIz/bin/python
# -*- coding: utf-8 -*-
import re
#!/home/runner/.local/share/virtualenvs/policy-as-code-60-4XQbQ/bin/python
import sys
from charset_normalizer import cli
from charset_normalizer.cli import cli_detect
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cli.cli_detect())
sys.argv[0] = sys.argv[0].removesuffix('.exe')
sys.exit(cli_detect())
2 changes: 1 addition & 1 deletion vendor/certifi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .core import contents, where

__all__ = ["contents", "where"]
__version__ = "2025.04.26"
__version__ = "2026.07.22"
1,347 changes: 315 additions & 1,032 deletions vendor/certifi/cacert.pem

Large diffs are not rendered by default.

33 changes: 1 addition & 32 deletions vendor/certifi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def where() -> str:
def contents() -> str:
return files("certifi").joinpath("cacert.pem").read_text(encoding="ascii")

elif sys.version_info >= (3, 7):
else:

from importlib.resources import path as get_path, read_text

Expand Down Expand Up @@ -81,34 +81,3 @@ def where() -> str:

def contents() -> str:
return read_text("certifi", "cacert.pem", encoding="ascii")

else:
import os
import types
from typing import Union

Package = Union[types.ModuleType, str]
Resource = Union[str, "os.PathLike"]

# This fallback will work for Python versions prior to 3.7 that lack the
# importlib.resources module but relies on the existing `where` function
# so won't address issues with environments like PyOxidizer that don't set
# __file__ on modules.
def read_text(
package: Package,
resource: Resource,
encoding: str = 'utf-8',
errors: str = 'strict'
) -> str:
with open(where(), encoding=encoding) as data:
return data.read()

# If we don't have importlib.resources, then we will just do the old logic
# of assuming we're on the filesystem and munge the path directly.
def where() -> str:
f = os.path.dirname(__file__)

return os.path.join(f, "cacert.pem")

def contents() -> str:
return read_text("certifi", "cacert.pem", encoding="ascii")
Empty file.
18 changes: 18 additions & 0 deletions vendor/certifi/tests/test_certify.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import os
import unittest

import certifi


class TestCertifi(unittest.TestCase):
def test_cabundle_exists(self) -> None:
assert os.path.exists(certifi.where())

def test_read_contents(self) -> None:
content = certifi.contents()
assert "-----BEGIN CERTIFICATE-----" in content

def test_py_typed_exists(self) -> None:
assert os.path.exists(
os.path.join(os.path.dirname(certifi.__file__), 'py.typed')
)
2 changes: 1 addition & 1 deletion vendor/charset_normalizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

Others methods and usages are available - see the full documentation
at <https://github.com/Ousret/charset_normalizer>.
:copyright: (c) 2021 by Ahmed TAHRI
:copyright: (c) Ahmed TAHRI
:license: MIT, see LICENSE for more details.
"""

Expand Down
Loading
Loading