You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2026/08/04 14:40:44 UTC
(tooling-trusted-releases) branch sbp updated: Use RE2 instead of Hyperscan
This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/sbp by this push:
new 865fc77e Use RE2 instead of Hyperscan
865fc77e is described below
commit 865fc77ea0b00ad01665a4de65f303be78a53c55
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Tue Aug 4 15:40:26 2026 +0100
Use RE2 instead of Hyperscan
---
Dockerfile.alpine | 5 ++-
atr/cycles.py | 4 +--
atr/models/api.py | 5 ++-
atr/models/safe.py | 4 +++
atr/models/validation.py | 66 ++++++++++++++++++-------------------
atr/shared/projects.py | 8 ++---
atr/storage/writers/policy.py | 9 +++--
atr/storage/writers/release.py | 9 ++++-
atr/util.py | 2 ++
atr/validate.py | 9 ++---
pip-audit.requirements | 4 +--
pyproject.toml | 5 ++-
scripts/check_models_imports.py | 2 +-
tests/unit/test_ignore_patterns.py | 12 +++----
tests/unit/test_project_patterns.py | 44 +++++++++++++++++++++++++
tests/unit/test_safe_types.py | 5 +++
tests/unit/test_util.py | 5 +++
typestubs/re2/__init__.pyi | 24 ++++++++++++++
uv.lock | 45 ++++++++++++-------------
19 files changed, 179 insertions(+), 88 deletions(-)
diff --git a/Dockerfile.alpine b/Dockerfile.alpine
index 150e70d4..e551da25 100644
--- a/Dockerfile.alpine
+++ b/Dockerfile.alpine
@@ -8,9 +8,11 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
RUN apk update && \
apk add --no-cache \
+ build-base \
git \
make \
- patch
+ patch \
+ re2-dev
RUN pip3 install uv==${UV_VERSION}
@@ -107,6 +109,7 @@ RUN apk update && \
gpg-agent \
icu-libs \
openjdk17 \
+ re2 \
rsync \
subversion
diff --git a/atr/cycles.py b/atr/cycles.py
index 41cc45eb..fda8f452 100644
--- a/atr/cycles.py
+++ b/atr/cycles.py
@@ -25,13 +25,13 @@ via re.fullmatch; capture-group 1 is the cycle name.
from __future__ import annotations
-import re
from typing import TYPE_CHECKING, Final
import semver
import atr.models.calver as calver
import atr.models.sql as sql
+import atr.models.validation as validation
if TYPE_CHECKING:
import datetime
@@ -55,7 +55,7 @@ def cycle_name_for_version(project: sql.Project, version: str) -> str:
if project.cycle_match is None:
return DEFAULT_CYCLE
- match = re.fullmatch(project.cycle_match, version)
+ match = validation.compile_project_pattern(project.cycle_match, captures=True).fullmatch(version)
if match is None:
raise ValueError(f"Version {version!r} does not match cycle_match for project {project.key!r}")
diff --git a/atr/models/api.py b/atr/models/api.py
index 42de1878..30402737 100644
--- a/atr/models/api.py
+++ b/atr/models/api.py
@@ -17,7 +17,6 @@
import dataclasses
import datetime
-import re
from collections.abc import Callable, Sequence
from typing import Annotated, Any, Literal, Self, TypeVar
@@ -573,8 +572,8 @@ class ProjectConfigProjectArgs(schema.Strict):
if not (isinstance(value, str) and value.strip()):
continue
try:
- compiled = re.compile(value.strip())
- except re.error as exc:
+ compiled = validation.compile_project_pattern(value.strip(), captures=True)
+ except ValueError as exc:
raise ValueError(f"Invalid {field} regex: {exc}") from exc
if (field == "cycle_match") and (compiled.groups < 1):
raise ValueError("cycle_match must contain at least one capture group")
diff --git a/atr/models/safe.py b/atr/models/safe.py
index 0bef31da..12919efe 100644
--- a/atr/models/safe.py
+++ b/atr/models/safe.py
@@ -32,6 +32,8 @@ _PATH_CHARS: Final = frozenset(string.ascii_letters + string.digits + "-._+~/()"
_OWNER_NAMESPACE_CHARS: Final = _ALPHANUM | frozenset(".")
_VERSION_CHARS: Final = _ALPHANUM | frozenset(".+")
+MAX_VERSION_LENGTH: Final[int] = 128
+
class SafeType:
__slots__ = ("_value",)
@@ -310,6 +312,8 @@ class VersionKey(Alphanumeric):
return _VERSION_CHARS
def _additional_validations(self, value: str):
+ if len(value) > MAX_VERSION_LENGTH:
+ raise ValueError(f"A version should be at most {MAX_VERSION_LENGTH} characters")
if value[0] not in _ALPHANUM:
raise ValueError("A version should start with an alphanumeric character")
if value[-1] not in _ALPHANUM:
diff --git a/atr/models/validation.py b/atr/models/validation.py
index 5581aaf0..7dbebffb 100644
--- a/atr/models/validation.py
+++ b/atr/models/validation.py
@@ -15,42 +15,19 @@
# specific language governing permissions and limitations
# under the License.
-import re
from typing import Any, Final
-import hyperscan
+import re2
from . import safe
MAX_IGNORE_PATTERN_LENGTH: Final[int] = 128
-
-
-class HyperscanPattern:
- __slots__ = ("_db",)
-
- def __init__(self, db: hyperscan.Database) -> None:
- self._db = db
-
- def search(self, value: str):
- matched = False
-
- def on_match(_id: int, _start: int, _end: int, _flags: int, _context: object) -> bool:
- nonlocal matched
- matched = True
- return True
-
- try:
- self._db.scan(value.encode("utf-8"), on_match)
- except hyperscan.ScanTerminated:
- return True
- except hyperscan.HyperscanError:
- return None
-
- return True if matched else None
+MAX_PROJECT_PATTERN_LENGTH: Final[int] = 128
+RE2_MAX_MEM: Final[int] = 1 << 20
def compile_ignore_pattern(pattern: str):
- # TODO: This requires importing Hyperscan in atr/models
+ # TODO: This requires importing re2 in atr/models
# We want to avoid such dependencies
# But if we move this out, we can't do full validation in the models
if len(pattern) > MAX_IGNORE_PATTERN_LENGTH:
@@ -58,15 +35,21 @@ def compile_ignore_pattern(pattern: str):
if pattern.startswith("^") or pattern.endswith("$"):
regex_pattern = pattern
else:
- regex_pattern = re.escape(pattern).replace(r"\*", ".*")
+ regex_pattern = re2.escape(pattern).replace(r"\*", ".*")
# Should maybe add .replace(r"\?", ".?")
- # We must turn off Chimera mode to avoid backtracking
- db = hyperscan.Database(mode=hyperscan.HS_MODE_BLOCK, chimera=False)
try:
- db.compile([regex_pattern])
- except hyperscan.HyperscanError as exc:
- raise ValueError(f"Invalid ignore pattern: {exc}") from exc
- return HyperscanPattern(db)
+ return re2.compile(regex_pattern, options=_pattern_options(captures=False))
+ except re2.error as exc:
+ raise ValueError(f"Invalid ignore pattern: {_pattern_error(exc)}") from exc
+
+
+def compile_project_pattern(pattern: str, captures: bool = False):
+ if len(pattern) > MAX_PROJECT_PATTERN_LENGTH:
+ raise ValueError(f"Pattern exceeds {MAX_PROJECT_PATTERN_LENGTH} characters")
+ try:
+ return re2.compile(pattern, options=_pattern_options(captures=captures))
+ except re2.error as exc:
+ raise ValueError(_pattern_error(exc)) from exc
def pagination_args_validate(query_args: Any) -> None:
@@ -154,3 +137,18 @@ def validate_vote_recipients(committee_key: str, recipients: list[str]) -> None:
def _email_domain(address: str) -> str:
return address.rpartition("@")[2].lower()
+
+
+def _pattern_error(exc: re2.error) -> str:
+ message = exc.args[0] if exc.args else "invalid pattern"
+ if isinstance(message, bytes):
+ return message.decode("utf-8", "replace")
+ return str(message)
+
+
+def _pattern_options(captures: bool) -> re2.Options:
+ options = re2.Options()
+ options.max_mem = RE2_MAX_MEM
+ options.log_errors = False
+ options.never_capture = not captures
+ return options
diff --git a/atr/shared/projects.py b/atr/shared/projects.py
index 0690a61c..92cafd9c 100644
--- a/atr/shared/projects.py
+++ b/atr/shared/projects.py
@@ -410,8 +410,8 @@ class EditVersionSchemeForm(form.Form):
version_pattern = val.strip()
if version_pattern:
try:
- re.compile(version_pattern)
- except re.error as e:
+ validation.compile_project_pattern(version_pattern)
+ except ValueError as e:
raise ValueError(f"Version pattern is not a valid regex: {e}")
return val
@@ -421,8 +421,8 @@ class EditVersionSchemeForm(form.Form):
cycle_match = val.strip()
if cycle_match:
try:
- compiled = re.compile(cycle_match)
- except re.error as e:
+ compiled = validation.compile_project_pattern(cycle_match, captures=True)
+ except ValueError as e:
raise ValueError(f"Cycle match is not a valid regex: {e}")
# capture group 1 is the cycle name
if compiled.groups < 1:
diff --git a/atr/storage/writers/policy.py b/atr/storage/writers/policy.py
index df95d111..f34c8f78 100644
--- a/atr/storage/writers/policy.py
+++ b/atr/storage/writers/policy.py
@@ -19,7 +19,6 @@
from __future__ import annotations
import datetime
-import re
from typing import TYPE_CHECKING, Any, Final
import sqlmodel
@@ -294,8 +293,8 @@ class ReleaseManager(CommitteeParticipant):
cycle_match = form.cycle_match.strip() or None
if cycle_match is not None:
try:
- compiled = re.compile(cycle_match)
- except re.error as exc:
+ compiled = models.validation.compile_project_pattern(cycle_match, captures=True)
+ except ValueError as exc:
raise ValueError(f"Invalid cycle_match regex: {exc}") from exc
if compiled.groups < 1:
raise ValueError("cycle_match must contain at least one capture group")
@@ -303,8 +302,8 @@ class ReleaseManager(CommitteeParticipant):
version_pattern = form.version_pattern.strip() or None
if version_pattern is not None:
try:
- re.compile(version_pattern)
- except re.error as exc:
+ models.validation.compile_project_pattern(version_pattern)
+ except ValueError as exc:
raise ValueError(f"Invalid version_pattern regex: {exc}") from exc
project.version_method = version_method
diff --git a/atr/storage/writers/release.py b/atr/storage/writers/release.py
index 42393a04..e767d908 100644
--- a/atr/storage/writers/release.py
+++ b/atr/storage/writers/release.py
@@ -48,6 +48,7 @@ import atr.models.attestable as attestable
import atr.models.results as results
import atr.models.safe as safe
import atr.models.sql as sql
+import atr.models.validation as validation
import atr.paths as paths
import atr.shared.start as start
import atr.storage as storage
@@ -341,7 +342,13 @@ def _validate_version(project: sql.Project, version: safe.VersionKey) -> None:
# have the packaging library as a dependency, but it's Python specific.
if version_key_error := util.version_key_error(str(version)):
raise storage.AccessError(f'Invalid version name "{version!s}": {version_key_error}', status=400)
- if (project.version_pattern is not None) and (not re.fullmatch(project.version_pattern, str(version))):
+ if project.version_pattern is None:
+ return
+ try:
+ pattern = validation.compile_project_pattern(project.version_pattern)
+ except ValueError as exc:
+ raise storage.AccessError(f"The project's version pattern is invalid: {exc}", status=400) from exc
+ if pattern.fullmatch(str(version)) is None:
raise storage.AccessError(
f'Version "{version!s}" does not match the project\'s version pattern',
status=400,
diff --git a/atr/util.py b/atr/util.py
index 00cc645c..1a9b5020 100644
--- a/atr/util.py
+++ b/atr/util.py
@@ -1680,6 +1680,8 @@ def version_key_error(version_key: str) -> str | None:
"""Check if the given version name is valid."""
if version_key == "":
return "Must not be empty"
+ if len(version_key) > safe.MAX_VERSION_LENGTH:
+ return f"Must be at most {safe.MAX_VERSION_LENGTH} characters"
if version_key.lower() == "version":
return "Must not be 'version'"
if not re.match(r"^[a-zA-Z0-9]", version_key):
diff --git a/atr/validate.py b/atr/validate.py
index 9b3c419a..6c09c80b 100644
--- a/atr/validate.py
+++ b/atr/validate.py
@@ -24,6 +24,7 @@ from typing import Final, NamedTuple, TypeVar
import atr.db as db
import atr.models.safe as safe
import atr.models.sql as sql
+import atr.models.validation as validation
import atr.paths as paths
@@ -317,8 +318,8 @@ def project_cycle_match(p: sql.Project) -> Divergences:
if not pattern:
return True
try:
- compiled = re.compile(pattern)
- except re.error:
+ compiled = validation.compile_project_pattern(pattern, captures=True)
+ except ValueError:
return False
# Capture group 1 carries the cycle name, so we need at least one
return compiled.groups >= 1
@@ -384,8 +385,8 @@ def project_version_pattern(p: sql.Project) -> Divergences:
if not pattern:
return True
try:
- re.compile(pattern)
- except re.error:
+ validation.compile_project_pattern(pattern)
+ except ValueError:
return False
return True
diff --git a/pip-audit.requirements b/pip-audit.requirements
index a885b821..405aeda6 100644
--- a/pip-audit.requirements
+++ b/pip-audit.requirements
@@ -126,6 +126,8 @@ frozenlist==1.8.0
# aiosignal
gitignore-parser==0.1.13
# via tooling-trusted-releases
+google-re2==1.1.20251105
+ # via tooling-trusted-releases
greenlet==3.5.4
# via
# sqlalchemy
@@ -146,8 +148,6 @@ hypercorn==0.18.0
# tooling-trusted-releases
hyperframe==6.1.0
# via h2
-hyperscan==0.8.2
- # via tooling-trusted-releases
identify==2.6.19
# via pre-commit
idna==3.18
diff --git a/pyproject.toml b/pyproject.toml
index 668c787b..7012434b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -31,10 +31,10 @@ dependencies = [
"email-validator>=2.2.0,<3.0.0",
"exarch>=0.2.7,<0.4",
"gitignore-parser (>=0.1.12,<0.2.0)",
+ "google-re2>=1.1.20251105",
"greenlet>=3.1.1,<4.0.0",
"htpy (>=25.7.0,<26.0.0)",
"hypercorn[uvloop]>=0.17,<1.0.0",
- "hyperscan>=0.8.0",
"jsonpatch>=1.33",
"ldap3 (==2.10.2rc3)",
"orjson>=3.11.9",
@@ -175,3 +175,6 @@ exclude-newer = "5 days"
exclude-newer-package = { cryptography = "2026-08-04" }
override-dependencies = ["cryptography>=50.0,<51.0.0"]
required-version = ">=0.9.17"
+
+[tool.uv.extra-build-dependencies]
+google-re2 = ["pybind11==3.0.4"]
diff --git a/scripts/check_models_imports.py b/scripts/check_models_imports.py
index 271b9690..0262042e 100755
--- a/scripts/check_models_imports.py
+++ b/scripts/check_models_imports.py
@@ -23,9 +23,9 @@ from typing import Final
_ALLOWED_PACKAGES: Final = frozenset(
{
- "hyperscan",
"pydantic",
"pydantic_core",
+ "re2",
"sqlalchemy",
"sqlmodel",
}
diff --git a/tests/unit/test_ignore_patterns.py b/tests/unit/test_ignore_patterns.py
index 47bd213b..d0378812 100644
--- a/tests/unit/test_ignore_patterns.py
+++ b/tests/unit/test_ignore_patterns.py
@@ -34,13 +34,13 @@ def test_validate_ignore_pattern_allows_literal_lookaround_tokens() -> None:
validation.validate_ignore_pattern("(?=a)")
-def test_validate_ignore_pattern_hyperscan_supported_constructs() -> None:
- pattern = r"^(?i)apple(?-i)banana[[:digit:]]{2}\b(?#fruit)|^cherry\s+date$"
+def test_validate_ignore_pattern_re2_supported_constructs() -> None:
+ pattern = r"^(?i)apple(?-i)banana[[:digit:]]{2}\b|^cherry\s+date$"
regex = validation.compile_ignore_pattern(pattern)
- assert regex.search("APPLEbanana12 ") is True
- assert regex.search("applebanana99-") is True
- assert regex.search("cherry date") is True
- assert regex.search("cherry\tdate") is True
+ assert regex.search("APPLEbanana12 ") is not None
+ assert regex.search("applebanana99-") is not None
+ assert regex.search("cherry date") is not None
+ assert regex.search("cherry\tdate") is not None
assert regex.search("APPLEBANANA12 ") is None
assert regex.search("applebanana123 ") is None
diff --git a/tests/unit/test_project_patterns.py b/tests/unit/test_project_patterns.py
new file mode 100644
index 00000000..85e5b8a4
--- /dev/null
+++ b/tests/unit/test_project_patterns.py
@@ -0,0 +1,44 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import pytest
+
+import atr.models.validation as validation
+
+
+def test_compile_project_pattern_avoids_redos() -> None:
+ pattern = validation.compile_project_pattern("^(a+)+$")
+ assert pattern.fullmatch(("a" * 4096) + "X") is None
+
+
+def test_compile_project_pattern_captures() -> None:
+ compiled = validation.compile_project_pattern(r"^(\d+)\.\d+\.\d+$", captures=True)
+ assert compiled.groups == 1
+ match = compiled.fullmatch("4.12.3")
+ assert match is not None
+ assert match.group(1) == "4"
+
+
+def test_compile_project_pattern_rejects_backreferences() -> None:
+ with pytest.raises(ValueError):
+ validation.compile_project_pattern(r"^(a)\1$")
+
+
+def test_compile_project_pattern_rejects_too_long() -> None:
+ pattern = "a" * (validation.MAX_PROJECT_PATTERN_LENGTH + 1)
+ with pytest.raises(ValueError, match="Pattern exceeds"):
+ validation.compile_project_pattern(pattern)
diff --git a/tests/unit/test_safe_types.py b/tests/unit/test_safe_types.py
index 2bc46335..2420ccea 100644
--- a/tests/unit/test_safe_types.py
+++ b/tests/unit/test_safe_types.py
@@ -66,3 +66,8 @@ def test_safe_types_accept_valid_alpha(cls: type[safe.Alphanumeric]):
def test_safe_version_types_accept_valid_version(cls: type[safe.Alphanumeric]):
value = cls("0.1+def")
assert str(value) == "0.1+def"
+
+
+def test_safe_version_types_reject_too_long():
+ with pytest.raises(ValueError, match="at most"):
+ safe.VersionKey("1" * (safe.MAX_VERSION_LENGTH + 1))
diff --git a/tests/unit/test_util.py b/tests/unit/test_util.py
index 623b136b..02ac2112 100644
--- a/tests/unit/test_util.py
+++ b/tests/unit/test_util.py
@@ -177,3 +177,8 @@ async def test_public_resolver_rejects_non_global_addresses():
with pytest.raises(aiohttp.ClientConnectionError):
await resolver.resolve("internal.apache.org", 443)
+
+
+def test_version_key_error_rejects_too_long():
+ assert util.version_key_error("1" * safe.MAX_VERSION_LENGTH) is None
+ assert util.version_key_error("1" * (safe.MAX_VERSION_LENGTH + 1)) is not None
diff --git a/typestubs/re2/__init__.pyi b/typestubs/re2/__init__.pyi
new file mode 100644
index 00000000..0b315141
--- /dev/null
+++ b/typestubs/re2/__init__.pyi
@@ -0,0 +1,24 @@
+from typing import overload
+
+class Match:
+ @overload
+ def group(self, group: int | str = 0, /) -> str | None: ...
+ @overload
+ def group(self, group1: int | str, group2: int | str, /, *groups: int | str) -> tuple[str | None, ...]: ...
+ def groups(self, default: str | None = None) -> tuple[str | None, ...]: ...
+
+class Options:
+ log_errors: bool
+ max_mem: int
+ never_capture: bool
+
+class Pattern:
+ @property
+ def groups(self) -> int: ...
+ def fullmatch(self, text: str, pos: int | None = None, endpos: int | None = None) -> Match | None: ...
+ def search(self, text: str, pos: int | None = None, endpos: int | None = None) -> Match | None: ...
+
+class error(Exception): ...
+
+def compile(pattern: str | Pattern, options: Options | None = None) -> Pattern: ...
+def escape(pattern: str) -> str: ...
diff --git a/uv.lock b/uv.lock
index 065aebca..5e4c9928 100644
--- a/uv.lock
+++ b/uv.lock
@@ -779,6 +779,25 @@ version = "0.1.13"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/e5/51/e391a1a4238f18d0abb47be479b07af265ad4519022cf51b7da47ef82487/gitignore_parser-0.1.13.tar.gz", hash = "sha256:c7e10c8190accb8ae57fb3711889e73a9c0dbc04d4222b91ace8a4bf64d2f746", size = 5603, upload-time = "2025-08-25T06:33:22.704Z" }
+[[package]]
+name = "google-re2"
+version = "1.1.20251105"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/6b/60/805c654ba53d685513df955ee745f71920fe8e6a284faf0f9b9dc19b659c/google_re2-1.1.20251105.tar.gz", hash = "sha256:1db14a292ee8303b91e91e7c37e05ac17d3c467f29416c79ac70a78be3e65bda", size = 11676, upload-time = "2025-11-05T14:58:07.324Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/5e/7f/7eb238bdcd06182b5f427afd305cf413b7cf4ea71047308bbf35912cf923/google_re2-1.1.20251105-1-cp314-cp314-macosx_13_0_arm64.whl", hash = "sha256:cc151cf6a585d9ebe711da32b23683fcff40f78db8c8587c7f4b209ef4658809", size = 484719, upload-time = "2025-11-05T14:57:51.326Z" },
+ { url = "https://files.pythonhosted.org/packages/6d/62/eed28eab67f939f4b9383c47b1db11638ade6ac30785c15cb960de85ba43/google_re2-1.1.20251105-1-cp314-cp314-macosx_13_0_x86_64.whl", hash = "sha256:7e2186d2c90488c1e11895343941f35ca2f58e9ba6c6b034fd531abe22ef77cc", size = 517698, upload-time = "2025-11-05T14:57:52.597Z" },
+ { url = "https://files.pythonhosted.org/packages/f7/16/a1e6768513f788bf9c67a1cfe379ef34a793983eee46e4b653e42b558b78/google_re2-1.1.20251105-1-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:41be22359c3dceb582937739b4365dd8e279de24ad0a5b10e653503abaff2ed7", size = 486421, upload-time = "2025-11-05T14:57:53.852Z" },
+ { url = "https://files.pythonhosted.org/packages/ca/fc/7a97ffd36d451e5a8bfaff2f9022b14807795d588f98227ff96e8da99856/google_re2-1.1.20251105-1-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:f3168d7bbac247c862ea85b2f3c011d3a04bedcb6892b37f14d488f4133b206e", size = 519037, upload-time = "2025-11-05T14:57:55.078Z" },
+ { url = "https://files.pythonhosted.org/packages/5f/ee/8b6f7d94bb689dafdf60de8dd8f8f6296ad40d4d15c933fcda4da7a3a06b/google_re2-1.1.20251105-1-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:79ce664038194a31bbcf422137f9607ae3d9946a5cff98cf0efbeb7f9411e64b", size = 483373, upload-time = "2025-11-05T14:57:56.297Z" },
+ { url = "https://files.pythonhosted.org/packages/d1/a6/16a09e03d1de128f821869e4252688c21319f5017d9209f4d0e71ea5c951/google_re2-1.1.20251105-1-cp314-cp314-macosx_15_0_x86_64.whl", hash = "sha256:0476b07421b8882b279d5ceb5b760c15c62d581ded95274697fc1227e3869ee6", size = 510167, upload-time = "2025-11-05T14:57:57.653Z" },
+ { url = "https://files.pythonhosted.org/packages/c4/9d/213dce5de401527369fb5af11096b18c06001d9eb71f3318fe5eba1ec706/google_re2-1.1.20251105-1-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85feec3161ffdc12f6b144e37a2f91f80b771c72ffadde60191e89a49f6d7e81", size = 573176, upload-time = "2025-11-05T14:57:59.211Z" },
+ { url = "https://files.pythonhosted.org/packages/03/be/a8def96aa4a80b233e105767d22e3de961dcde5a04f0a05cb4f3ddb4df78/google_re2-1.1.20251105-1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a7bfaa2cf55daf0c5c650e68526bb20b61e37d7f3ae53f6893013acc1c91c116", size = 591483, upload-time = "2025-11-05T14:58:00.416Z" },
+ { url = "https://files.pythonhosted.org/packages/14/ea/144bbc4b9359da89aec07b4c2a91a6bfe7119914885386577c665b07bb01/google_re2-1.1.20251105-1-cp314-cp314-win32.whl", hash = "sha256:214c1accdc60fff9ce1bf812b157147ca361844f496ed9e0d5f357b0e562ced8", size = 433773, upload-time = "2025-11-05T14:58:01.594Z" },
+ { url = "https://files.pythonhosted.org/packages/96/b3/74e301211699f1b650ba7690a3e4e52146ac4266fcd62f3ea0a945b9eda4/google_re2-1.1.20251105-1-cp314-cp314-win_amd64.whl", hash = "sha256:6d4d5fdadd329a2ed193463899d00ef2fd126172f36a4c01c9def271f19801b6", size = 491893, upload-time = "2025-11-05T14:58:02.969Z" },
+ { url = "https://files.pythonhosted.org/packages/6f/d1/4adcfcb9c95e3d064c9f7aaf6cb3a4fc842d86115014b9d4094db4d465b5/google_re2-1.1.20251105-1-cp314-cp314-win_arm64.whl", hash = "sha256:1d27f3a2a947ec1f721d0f14f661108acfd4f4d34f357ce28db951cc036656e5", size = 643093, upload-time = "2025-11-05T14:58:05.761Z" },
+]
+
[[package]]
name = "greenlet"
version = "3.5.4"
@@ -878,28 +897,6 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/48/30/47d0bf6072f7252e6521f3447ccfa40b421b6824517f82854703d0f5a98b/hyperframe-6.1.0-py3-none-any.whl", hash = "sha256:b03380493a519fce58ea5af42e4a42317bf9bd425596f7a0835ffce80f1a42e5", size = 13007, upload-time = "2025-01-22T21:41:47.295Z" },
]
-[[package]]
-name = "hyperscan"
-version = "0.8.2"
-source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/c3/26/21daad311299a416059cf1919c51410573180cf7133b42927693f19c0af7/hyperscan-0.8.2.tar.gz", hash = "sha256:1724e87e8f77f033a4592dc2cda7aecd10c91dfc718b55fa5379d0c95cff28e8", size = 125600, upload-time = "2026-03-19T01:47:34.538Z" }
-wheels = [
- { url = "https://files.pythonhosted.org/packages/22/ed/9c45c468fd6c31df3fe0622394b1853c00b86545d1e297f3fb9fba1232ce/hyperscan-0.8.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:2c579c1ebccc384d904de4a20e7a105df6041dd82adb54cb9acd5bb19b9b07dc", size = 2044182, upload-time = "2026-03-19T01:47:08.646Z" },
- { url = "https://files.pythonhosted.org/packages/d8/da/a8bb48a4fee86b5dad8a358559b70b010cd7effaa70ca5bb4e6e82e13703/hyperscan-0.8.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4e9f8d1ae2c9596385d906e062b9e0081ae843e3975fd4a656e5fcf6bbc48c13", size = 2033127, upload-time = "2026-03-19T01:47:10.06Z" },
- { url = "https://files.pythonhosted.org/packages/d0/23/49cf8ea1d129637941f06fb78f5f66077bf362762c5f6c01712c4cd0e87f/hyperscan-0.8.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0c0af5d882bd6afb61e2b9a13c0d39fcbcee49c62f392096d6303bd34452813f", size = 2763734, upload-time = "2026-03-19T01:47:11.978Z" },
- { url = "https://files.pythonhosted.org/packages/75/59/efd759feafd2e43e7e3d5c70ff9ce432f57f8a7ae99e118323f5a4e07b48/hyperscan-0.8.2-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a89fa851d005e1da98c8e86eafe833ce3d6eb94403a28ee2474c76a0d3549c8f", size = 2567828, upload-time = "2026-03-19T01:47:13.575Z" },
- { url = "https://files.pythonhosted.org/packages/29/a0/b87aca2d65a25f1bc86b6a9feedae742ce46fa28130d71d527073f14e0b5/hyperscan-0.8.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7e3a50d4ed6013ee806b7a1d9df3b7e4e9bd3cdb1c100646c1108099c65c0e49", size = 2389751, upload-time = "2026-03-19T01:47:15.297Z" },
- { url = "https://files.pythonhosted.org/packages/27/0d/b4b7d35ffb318f2c1dca5386a32cb81dfa1bda3b6531ec5e00e9ac212b23/hyperscan-0.8.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:a15b320331397174dc3bb2165cb777e17efec63ca98e6e2b0e746f1d91783eb3", size = 2428970, upload-time = "2026-03-19T01:47:17.087Z" },
- { url = "https://files.pythonhosted.org/packages/8c/eb/c3ce0663887d42c91c866c253968bd487130fce8803d6f3d394f2f867ce1/hyperscan-0.8.2-cp314-cp314-win_amd64.whl", hash = "sha256:97901184d32f3f4f55942a95554eefa6ab518d3dab89ac40fbc671aa3e74cee9", size = 2018309, upload-time = "2026-03-19T01:47:18.536Z" },
- { url = "https://files.pythonhosted.org/packages/80/4c/e8efb8f89beb77a650c6a0d6256c8b1446741ab527887f89e9c7650a8336/hyperscan-0.8.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:db1746044bf93d678d659b54c27a89db908ece22d9791356be43988b1595708f", size = 2045411, upload-time = "2026-03-19T01:47:20.272Z" },
- { url = "https://files.pythonhosted.org/packages/c0/45/9fca5f1007fa73c5543224a51c2ac54061057efd5f605fa73f2b4491d4ec/hyperscan-0.8.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e3336020dbf09fccb13a31214bd9144b90efdb5b7d5dbfb6bbcb4ffdf766b089", size = 2033635, upload-time = "2026-03-19T01:47:21.751Z" },
- { url = "https://files.pythonhosted.org/packages/0b/12/9e64ff95f12c59160caffa89f7bc464c9e333e085bd8a3bb2b5e9724ac91/hyperscan-0.8.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f786cce45929f6e89b65c51491cf0220a2c0aa3986a4de59add1544c35a4eed8", size = 2764102, upload-time = "2026-03-19T01:47:23.489Z" },
- { url = "https://files.pythonhosted.org/packages/21/cb/752517d150f13a25642356782bc6ff347780a082190886aeb4df294cf053/hyperscan-0.8.2-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d2b87370fce6d263fadd3e7f29cb9312e6bd23246c1f368f7a798cff20acea2c", size = 2568323, upload-time = "2026-03-19T01:47:25.099Z" },
- { url = "https://files.pythonhosted.org/packages/5f/0a/ea830ff2b5c0f2bad632f5cadef67170a2bfa82b68fb426113f414d67770/hyperscan-0.8.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:087bd427d35d21c813977cb3f4b053cac7627f4189c99ebf07c58f2c24a9f4f6", size = 2391147, upload-time = "2026-03-19T01:47:27.263Z" },
- { url = "https://files.pythonhosted.org/packages/80/00/8a234cec06d7d01656c2a81bf21d2a3b49b6217f695de3efa88fa0e6d87b/hyperscan-0.8.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:7c23b9fe69fd65b70d62a4b63287d25a448def8128ce078c8c73d93f516c25f8", size = 2429993, upload-time = "2026-03-19T01:47:28.863Z" },
- { url = "https://files.pythonhosted.org/packages/3e/6f/ac64a368ecc5fde5e4d4498ad91d638baf0a9f324f25ea2205acf49d94eb/hyperscan-0.8.2-cp314-cp314t-win_amd64.whl", hash = "sha256:3c8ede76d732ca8daf75bb93a3edfc1b6bea38ffd19dcb989f78159f2f5550c5", size = 2019620, upload-time = "2026-03-19T01:47:30.356Z" },
-]
-
[[package]]
name = "identify"
version = "2.6.19"
@@ -2095,10 +2092,10 @@ dependencies = [
{ name = "email-validator" },
{ name = "exarch" },
{ name = "gitignore-parser" },
+ { name = "google-re2" },
{ name = "greenlet" },
{ name = "htpy" },
{ name = "hypercorn", extra = ["uvloop"] },
- { name = "hyperscan" },
{ name = "jsonpatch" },
{ name = "ldap3" },
{ name = "orjson" },
@@ -2163,10 +2160,10 @@ requires-dist = [
{ name = "email-validator", specifier = ">=2.2.0,<3.0.0" },
{ name = "exarch", specifier = ">=0.2.7,<0.4" },
{ name = "gitignore-parser", specifier = ">=0.1.12,<0.2.0" },
+ { name = "google-re2", specifier = ">=1.1.20251105" },
{ name = "greenlet", specifier = ">=3.1.1,<4.0.0" },
{ name = "htpy", specifier = ">=25.7.0,<26.0.0" },
{ name = "hypercorn", extras = ["uvloop"], specifier = ">=0.17,<1.0.0" },
- { name = "hyperscan", specifier = ">=0.8.0" },
{ name = "jsonpatch", specifier = ">=1.33" },
{ name = "ldap3", specifier = "==2.10.2rc3" },
{ name = "orjson", specifier = ">=3.11.9" },
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org