Skip to content

Commit

Permalink
* feat: update specs and rebuild stubs
Browse files Browse the repository at this point in the history
* build: update buf and python3.12 and eliminate python3.8
  • Loading branch information
epikhinm committed Apr 17, 2024
1 parent 1c1dcf9 commit 18dd16f
Show file tree
Hide file tree
Showing 135 changed files with 2,154 additions and 1,062 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout sources
Expand All @@ -25,4 +25,4 @@ jobs:
run: make venv

- name: Run checks
run: make tox
run: make tox
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

REPO_ROOT:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))

BUF_VERSION="1.16.0"
BUF_VERSION="1.30.1"
BIN="venv/bin"

venv: ## install deps (library & development)
python -m venv venv
python3 -m venv venv
$(BIN)/python3 -m pip install --upgrade pip
$(BIN)/python3 -m pip install -r requirements-dev.txt
@ curl --fail --silent --show-error --location \
Expand Down
7 changes: 4 additions & 3 deletions doublecloud/clickhouse/v1/backup_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doublecloud/clickhouse/v1/backup_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Opti
DESCRIPTOR: _descriptor.FileDescriptor

class Backup(_message.Message):
__slots__ = ["id", "project_id", "name", "create_time", "start_time", "source_cluster_id", "size", "type"]
__slots__ = ("id", "project_id", "name", "create_time", "start_time", "source_cluster_id", "size", "type")
class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = []
__slots__ = ()
TYPE_INVALID: _ClassVar[Backup.Type]
TYPE_AUTOMATED: _ClassVar[Backup.Type]
TYPE_MANUAL: _ClassVar[Backup.Type]
Expand Down
7 changes: 4 additions & 3 deletions doublecloud/clickhouse/v1/backup_service_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions doublecloud/clickhouse/v1/backup_service_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,37 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
DESCRIPTOR: _descriptor.FileDescriptor

class GetBackupRequest(_message.Message):
__slots__ = ["backup_id"]
__slots__ = ("backup_id",)
BACKUP_ID_FIELD_NUMBER: _ClassVar[int]
backup_id: str
def __init__(self, backup_id: _Optional[str] = ...) -> None: ...

class ListBackupsRequest(_message.Message):
__slots__ = ["project_id", "paging"]
__slots__ = ("project_id", "paging")
PROJECT_ID_FIELD_NUMBER: _ClassVar[int]
PAGING_FIELD_NUMBER: _ClassVar[int]
project_id: str
paging: _paging_pb2.Paging
def __init__(self, project_id: _Optional[str] = ..., paging: _Optional[_Union[_paging_pb2.Paging, _Mapping]] = ...) -> None: ...

class ListBackupsResponse(_message.Message):
__slots__ = ["backups", "next_page"]
__slots__ = ("backups", "next_page")
BACKUPS_FIELD_NUMBER: _ClassVar[int]
NEXT_PAGE_FIELD_NUMBER: _ClassVar[int]
backups: _containers.RepeatedCompositeFieldContainer[_backup_pb2.Backup]
next_page: _paging_pb2.NextPage
def __init__(self, backups: _Optional[_Iterable[_Union[_backup_pb2.Backup, _Mapping]]] = ..., next_page: _Optional[_Union[_paging_pb2.NextPage, _Mapping]] = ...) -> None: ...

class CreateBackupRequest(_message.Message):
__slots__ = ["cluster_id", "name"]
__slots__ = ("cluster_id", "name")
CLUSTER_ID_FIELD_NUMBER: _ClassVar[int]
NAME_FIELD_NUMBER: _ClassVar[int]
cluster_id: str
name: str
def __init__(self, cluster_id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ...

class DeleteBackupRequest(_message.Message):
__slots__ = ["backup_id"]
__slots__ = ("backup_id",)
BACKUP_ID_FIELD_NUMBER: _ClassVar[int]
backup_id: str
def __init__(self, backup_id: _Optional[str] = ...) -> None: ...
33 changes: 18 additions & 15 deletions doublecloud/clickhouse/v1/cluster_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 18dd16f

Please sign in to comment.