mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
* AIOG-T-20 Bot API 4.8 * AIOG-T-20 Update aliases * AIOG-T-20 Add parse mode passing in sendPoll method * AIOG-T-20 Small changes in docs * AIOG-T-20 Revert overriding remove keyboard default value and add tests * AIOG-T-20 Bot API 4.8
18 lines
499 B
Python
18 lines
499 B
Python
from pathlib import Path
|
|
from typing import Any, Dict
|
|
|
|
BUILD_PATH: Path = Path(__file__).parent
|
|
META_PATH: Path = BUILD_PATH / "aiogram" / "_meta.py"
|
|
|
|
|
|
def write_metadata(setup_kwargs: Dict[str, Any]) -> None:
|
|
version = setup_kwargs["version"]
|
|
description = setup_kwargs["description"]
|
|
|
|
content = [f"VERSION = {version!r}", f"DESCRIPTION = {description!r}"]
|
|
|
|
META_PATH.write_text("\n".join(content + [""]))
|
|
|
|
|
|
def build(setup_kwargs: Dict[str, Any]):
|
|
write_metadata(setup_kwargs)
|