Skip to content

Commit de32c37

Browse files
Update bufbuild-protovalidate-protocolbuffers to python3.10
1 parent 8a743dc commit de32c37

File tree

4 files changed

+9
-33
lines changed

4 files changed

+9
-33
lines changed

bufbuild-protovalidate-protocolbuffers/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Messages, enum types and stubs for buf.build/bufbuild/protovalida
55
readme = "README.md"
66
license = "Apache-2.0"
77
license-files = ["LICENSE"]
8-
requires-python = ">=3.9"
8+
requires-python = ">=3.10"
99
classifiers = [
1010
"License :: OSI Approved :: Apache Software License",
1111
"Operating System :: OS Independent",
@@ -27,6 +27,7 @@ dev = ["cyclopts>=3.24.0", "httpx>=0.28.1", "loguru>=0.7.3", "ruff>=0.12.12"]
2727

2828
[tool.ruff]
2929
line-length = 120
30+
target-version = "py310"
3031
exclude = ["buf/validate/proto*/**"]
3132

3233
[[tool.uv.index]]

bufbuild-protovalidate-protocolbuffers/sync_to_pypi.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# /// script
16-
# requires-python = ">=3.9"
16+
# requires-python = ">=3.10"
1717
# dependencies = [
1818
# "cyclopts",
1919
# "httpx",
@@ -39,7 +39,6 @@
3939
import subprocess
4040
import sys
4141
import tempfile
42-
from typing import Optional, Set, Tuple
4342
from cyclopts import App
4443
import httpx
4544
from loguru import logger
@@ -63,7 +62,7 @@ def query_pypi_versions(pypi_url: str) -> set[str]:
6362
return set(response.json()["releases"].keys())
6463

6564

66-
def query_buf_module_tags() -> Set[str]:
65+
def query_buf_module_tags() -> set[str]:
6766
"""
6867
Query the buf registry for a list of tags for the bufbuild/protovalidate module
6968
@@ -80,7 +79,7 @@ def query_buf_module_tags() -> Set[str]:
8079
return tags
8180

8281

83-
def _query_buf_module_labels(page_token: Optional[str] = None) -> Tuple[Set[str], Optional[str]]:
82+
def _query_buf_module_labels(page_token: str | None = None) -> tuple[set[str], str | None]:
8483
"""Fetch a single page of tags for the bufbuild/protovalidate module."""
8584
request_data = {
8685
"pageSize": 100,

bufbuild-protovalidate-protocolbuffers/uv.lock

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

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ raw-options = { fallback_version = "0.0.0" }
6464

6565
[tool.ruff]
6666
line-length = 120
67+
target-version = "py310"
6768
lint.select = [
6869
"A",
6970
"ARG",

0 commit comments

Comments
 (0)