Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (64 loc) · 1.73 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (64 loc) · 1.73 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
[project]
name = "OpenAI_TTS_GUI"
version = "1.3.5"
description = "Desktop GUI for OpenAI text-to-speech"
readme = "README.md"
requires-python = ">=3.14,<3.15"
authors = [{ name = "sm18lr88", email = "smgithub@fastmail.us" }]
urls = { Homepage = "https://github.com/sm18lr88/OpenAI_TTS_GUI" }
# Production dependencies
dependencies = [
"openai>=2.9,<3",
"pyqt6>=6.10,<7",
"keyring>=25,<26",
"platformdirs>=4.5.1,<7",
]
[project.scripts]
openai-tts = "openai_tts_gui.cli:main"
# This standard location contains all optional dependencies, including development tools
[project.optional-dependencies]
dev = [
"pytest>=9.0,<10",
"pytest-qt>=4.5,<5",
"pytest-cov>=7.0,<8",
"pytest-benchmark>=5.2,<6",
"pytest-mock>=3.15,<4",
"pytest-timeout>=2.4,<3",
"pytest-xdist>=3.8,<4",
"ruff>=0.14,<0.15",
"mypy>=1.19,<2",
"pyinstaller>=6.17,<7",
"pyinstrument>=5.1,<6",
"py-spy>=0.4.1,<0.5",
"ty>=0.0.1a29,<0.0.2",
"pre-commit>=4.6.1,<5",
]
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
# --- Tool configuration ---
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-q --import-mode=importlib" # importlib mode is often more reliable
testpaths = ["tests"]
pythonpath = ["src"]
markers = [
"integration: integration tests that run locally",
"perf: performance and benchmark tests",
]
[tool.coverage.run]
branch = true
source = ["openai_tts_gui"]
[tool.coverage.report]
fail_under = 97
[tool.ruff]
line-length = 100
target-version = "py314"
lint.select = ["E","F","I","UP","B","SIM"] # A good modern default set
[tool.mypy]
python_version = "3.14"
ignore_missing_imports = true