-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
176 lines (157 loc) · 4.22 KB
/
pyproject.toml
File metadata and controls
176 lines (157 loc) · 4.22 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
[project]
name = "aiola"
version = "0.4.0"
description = "The official Python SDK for aiOla API - Speech-to-Text and Text-to-Speech"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.10"
authors = [
{name = "aiOla", email = "support@aiola.ai"},
]
maintainers = [
{name = "aiOla", email = "support@aiola.ai"},
]
keywords = ["speech", "stt", "tts", "speech-to-text", "text-to-speech", "audio", "microphone", "aiola"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Sound/Audio :: Speech",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"httpx>=0.27",
"python-socketio[client]>=5.11",
]
[project.urls]
Homepage = "https://aiola.ai"
Repository = "https://github.com/aiola-lab/aiola-python-sdk"
"Bug Tracker" = "https://github.com/aiola-lab/aiola-python-sdk/issues"
[project.optional-dependencies]
mic = [
"sounddevice>=0.5.2",
"numpy>=2.2.6",
]
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-asyncio>=1.0.0",
"pytest-mock>=3.14.1",
"ruff>=0.4",
"numpy>=2.2.6",
"sounddevice>=0.5.2",
"aiola[mic]",
"twine>=6.1.0",
"python-semantic-release>=8.0.0",
"build>=1.0.0",
"commitizen>=3.0.0",
"pre-commit>=3.0.0",
]
[tool.ruff]
line-length = 120
exclude = [".venv", "dist", "build", "tests", "examples"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = ["aiola"]
[tool.hatch.build.targets.wheel]
packages = ["aiola"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = "-ra"
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.coverage.run]
source = ["aiola"]
[tool.uv.sources]
aiola = { workspace = true }
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = [
# Use `X | Y` for type annotations
"UP007",
]
[tool.semantic_release]
version_variable = [
"pyproject.toml:project.version"
]
version_toml = ["pyproject.toml:project.version"]
dist_path = "dist/"
upload_to_pypi = true
upload_to_release = true
build_command = "uv build"
version_source = "tag_only"
commit_version_number = false
commit_subject = "chore(release): v{version}"
commit_message = "chore(release): v{version}\n\n{changelog}"
tag_format = "v{version}"
commit_parser = "conventional"
changelog_file = "CHANGELOG.md"
changelog_components = [
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"build",
"ci",
"chore"
]
# Enhanced branch configuration
[tool.semantic_release.branches.main]
match = "main"
prerelease = false
[tool.semantic_release.branches.rc]
match = "rc"
prerelease = true
prerelease_token = "rc"
# Commit parsing configuration with validation
[tool.semantic_release.commit_parser_options]
allowed_tags = ["feat", "fix", "docs", "style", "refactor", "perf", "test", "build", "ci", "chore"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
major_tags = []
# Enhanced changelog configuration
[tool.semantic_release.changelog]
sections = [
{ name = "feat", title = "✨ Features" },
{ name = "fix", title = "🐛 Bug Fixes" },
{ name = "perf", title = "⚡ Performance Improvements" },
{ name = "docs", title = "📚 Documentation" },
{ name = "style", title = "🎨 Code Style" },
{ name = "refactor", title = "♻️ Code Refactoring" },
{ name = "test", title = "🧪 Tests" },
{ name = "build", title = "🏗️ Build System" },
{ name = "ci", title = "👷 CI/CD" },
{ name = "chore", title = "🔧 Maintenance" }
]
# Commitizen configuration for conventional commits
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "semver"
version_provider = "pep621"
update_changelog_on_bump = true
major_version_zero = false