-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (85 loc) · 2.74 KB
/
Copy pathpyproject.toml
File metadata and controls
96 lines (85 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "telegram-assistant"
version = "0.12.0"
description = "Telegram automation service (MTProto/Telethon) with an optional Planfix integration plugin."
readme = "README.md"
requires-python = ">=3.12"
license = { text = "MIT" }
authors = [{ name = "Stanislav Popov", email = "popstas@gmail.com" }]
keywords = ["telegram", "telethon", "automation", "mtproto", "planfix"]
classifiers = [
"Programming Language :: Python :: 3.12",
"Framework :: FastAPI",
"Topic :: Communications :: Chat",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"telethon>=1.44,<2.0",
"fastapi>=0.115,<1.0",
"uvicorn[standard]>=0.30,<1.0",
"pydantic>=2.7,<3.0",
"pyyaml>=6.0,<7.0",
"typer>=0.12,<1.0",
"structlog>=24.1,<25.0",
"SQLAlchemy>=2.0,<3.0",
"httpx>=0.27,<1.0",
"python-socks[asyncio]>=2.4,<3.0",
"mcp>=1.27,<2.0",
"watchdog>=4.0,<7.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0,<9.0",
"pytest-asyncio>=0.23,<1.0",
"ruff>=0.5,<1.0",
"git-cliff>=2.0.0",
"pre-commit>=3.7,<5.0",
"build>=1.2,<2.0",
"twine>=5.0,<7.0",
# 1.x required: the 0.x line (0.33.0) crashes with click >= 8.2 (a Sentinel
# default in click_config.resolve_conf_location). 1.4.1 is verified working.
"bump-my-version>=1.4.1,<2.0",
]
[project.scripts]
telegram-assistant = "telegram_assistant.cli.main:app"
[project.urls]
Homepage = "https://github.com/popstas/telegram-assistant"
Repository = "https://github.com/popstas/telegram-assistant"
"Bug Tracker" = "https://github.com/popstas/telegram-assistant/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = "-ra"
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP"]
ignore = ["E501"]
# Version bumping: `bump-my-version bump patch|minor|major` updates both files,
# commits as `chore(release): vX.Y.Z`, and creates the `vX.Y.Z` tag. Pushing the
# tag triggers .github/workflows/release.yml (GitHub release + PyPI publish).
[tool.bumpversion]
current_version = "0.12.0"
allow_dirty = false
commit = true
message = "chore(release): v{new_version}"
tag = true
tag_name = "v{new_version}"
tag_message = "v{new_version}"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = '''name = "telegram-assistant"
version = "{current_version}"'''
replace = '''name = "telegram-assistant"
version = "{new_version}"'''
[[tool.bumpversion.files]]
filename = "src/telegram_assistant/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'