Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (54 loc) · 1.71 KB
/
Copy pathpyproject.toml
File metadata and controls
63 lines (54 loc) · 1.71 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
[project]
name = "teletype-py"
version = "0.1.0"
description = "Async Python API wrapper for Teletype.in"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.12"
authors = [{ name = "zlexdev" }]
keywords = ["teletype", "api", "async", "blog", "cms"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Framework :: AsyncIO",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.27",
"pydantic>=2.0",
]
[project.optional-dependencies]
aiohttp = ["aiohttp>=3.9"]
sqlite = ["aiosqlite>=0.20"]
redis = ["redis>=5.0"]
mongo = ["motor>=3.3"]
cli = ["click>=8.1"]
all = ["aiohttp>=3.9", "aiosqlite>=0.20", "redis>=5.0", "motor>=3.3", "click>=8.1"]
dev = ["pytest>=8.0", "pytest-asyncio>=0.23", "ruff>=0.4"]
[project.scripts]
teletype = "teletype.utils.cli:main"
[project.urls]
Repository = "https://github.com/zlexdev/teletype-py"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["teletype"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
# Integration tests hit the live teletype.in API and CREATE real content — opt in explicitly
# with `pytest -m integration` and a valid token.
addopts = "-m 'not integration'"
markers = ["integration: hits the live teletype.in API with a real token"]
[tool.ruff]
target-version = "py312"
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.ruff.lint.per-file-ignores]
# Package __init__ files exist to re-export; F401 there is the whole point.
"teletype/**/__init__.py" = ["F401"]