-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (116 loc) · 4.3 KB
/
Copy pathpyproject.toml
File metadata and controls
131 lines (116 loc) · 4.3 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[build-system]
requires = ["hatchling>=1.27", "hatch-vcs>=0.4,<1"]
build-backend = "hatchling.build"
[project]
name = "onepin"
dynamic = ["version"]
description = "Onepin Python SDK + CLI — orchestrate, validate & ship production-ready voice audio across 100+ TTS models"
readme = "README.md"
keywords = [
"onepin", "tts", "text-to-speech", "speech-synthesis", "voice",
"voice-ai", "voice-agents", "audio", "workflow", "sdk", "cli",
"elevenlabs", "cartesia",
]
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.10"
authors = [{ name = "Podonos", email = "support@onepin.ai" }]
dependencies = [
"click>=8.1",
"httpx>=0.27,<1.0",
"typer>=0.12,<1.0",
"rich>=13",
"pydantic>=2.7,<3.0",
"packaging>=23",
"tomli; python_version<\"3.11\"",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
"Topic :: Multimedia :: Sound/Audio :: Speech",
"Topic :: Software Development :: Libraries :: Python Modules",
"Environment :: Console",
"Operating System :: OS Independent",
]
[project.scripts]
onepin = "onepin._cli.main:app"
[project.urls]
Homepage = "https://onepin.ai"
Documentation = "https://onepin.ai/docs"
Source = "https://github.com/podonos/onepin-python"
Issues = "https://github.com/podonos/onepin-python/issues"
Changelog = "https://github.com/podonos/onepin-python/blob/main/CHANGELOG.md"
[dependency-groups]
dev = [
"pytest>=8",
"pytest-asyncio",
"pytest-cov",
"respx>=0.22",
"ruff>=0.6",
"mypy>=1.11",
"diff-cover>=8",
"build",
"twine",
"trove-classifiers",
"check-wheel-contents",
]
[tool.hatch.version]
source = "vcs"
# setuptools_scm's default appends a local segment (+gHASH) which PyPI/TestPyPI reject.
# no-local-version yields clean PEP 440 dev releases (e.g. 0.5.1.dev4) that upload cleanly.
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.hatch.build.targets.wheel]
packages = ["src/onepin"]
[tool.hatch.build.targets.wheel.force-include]
"src/onepin/py.typed" = "onepin/py.typed"
"src/onepin/_cli/py.typed" = "onepin/_cli/py.typed"
# Bundled agent skill data so `onepin skill install` can materialize it. Only the .md files
# need forcing — the package's .py (incl. _skill/__init__.py) already ship via `packages`, and
# force-including the whole dir would double-add __init__.py and fail the wheel build.
"src/onepin/_cli/_skill/onepin/SKILL.md" = "onepin/_cli/_skill/onepin/SKILL.md"
"src/onepin/_cli/_skill/onepin/reference.md" = "onepin/_cli/_skill/onepin/reference.md"
[tool.check-wheel-contents]
# W002 flags byte-identical files as "duplicates". The Fern-generated SDK ships many
# empty package-marker `__init__.py` files (api_keys, billing, webhooks, workspace_*, ...)
# which are legitimately identical — a benign false positive that fails `check-wheel-contents`
# in the publish build. Ignore it; all other wheel-content checks still run.
ignore = ["W002"]
[tool.ruff]
line-length = 120
target-version = "py310"
extend-exclude = [
# Fern-generated SDK is not subject to project style rules. Ruff's exclude
# is path-prefix only, so CI explicitly runs `ruff check src/onepin/_cli`
# to lint the hand-rolled CLI subpackage that lives under the same root.
"src/onepin",
]
[tool.mypy]
strict = true
# Typer/click register commands via decorators mypy reads as untyped; strict's
# untyped-decorator check is noise here, not a real type gap.
disallow_untyped_decorators = false
# The Fern-generated SDK (everything under src/onepin/ except _cli/) is not gated
# by our type checks. Follow imports for inference, but never report its errors.
[[tool.mypy.overrides]]
module = [
"onepin.core.*",
"onepin.client",
"onepin.environment",
"onepin._default_clients",
]
follow_imports = "skip"
ignore_errors = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "-q --strict-markers"
# Restrict collection to top-level tests/ — Fern-generated SDK ships its own
# tests under src/onepin/tests/ with markers we don't register.
testpaths = ["tests"]