Skip to content

Commit 9699c69

Browse files
Further fixes
We'd need to add back python 3.14, though.
1 parent 8981ec6 commit 9699c69

4 files changed

Lines changed: 7 additions & 15 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ["3.11", "3.12", "3.13", "3.14"]
20+
python-version: ["3.11", "3.12", "3.13"]
2121
resolution: ["highest", "lowest-direct"]
2222
env:
2323
# Shared env variables for all the tests

protovalidate/internal/rules.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from __future__ import annotations
16+
1517
import dataclasses
1618
import datetime
1719
import typing
@@ -195,7 +197,7 @@ def done(self) -> bool:
195197
def has_errors(self) -> bool:
196198
return len(self._violations) > 0
197199

198-
def sub_context(self) -> "RuleContext":
200+
def sub_context(self) -> RuleContext:
199201
return RuleContext(fail_fast=self._fail_fast)
200202

201203

pyproject.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,13 @@ classifiers = [
1515
"Programming Language :: Python :: 3.11",
1616
"Programming Language :: Python :: 3.12",
1717
"Programming Language :: Python :: 3.13",
18-
"Programming Language :: Python :: 3.14",
1918
"Operating System :: OS Independent",
2019
"Typing :: Typed",
2120
]
2221
dynamic = ["version"]
2322
dependencies = [
24-
# We need at least this version, which fixed Python 3.14 compatibility (tp_new metaclass issue).
25-
# The fix was never backported to the 5.x series.
26-
# Ref: https://github.com/protocolbuffers/protobuf/pull/20594
27-
"protobuf>=6.31.0; python_version >= '3.14'",
2823
"protobuf>=5",
29-
"cel-expr-python>=0.1.1; python_version >= '3.11' and sys_platform == 'linux'",
30-
# We need at least this version, which started publishing wheels for Python 3.14.
31-
# Ref: https://github.com/google/re2/issues/580
32-
"google-re2>=1.1.20251105; python_version == '3.14'",
24+
"cel-expr-python>=0.1.1; python_version >= '3.11' and python_version < '3.14' and sys_platform == 'linux'",
3325
# We need at least this version, which started publishing wheels for Python 3.13.
3426
# Ref: https://github.com/google/re2/issues/516
3527
"google-re2>=1.1.20250722; python_version == '3.13'",

uv.lock

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)