-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (133 loc) · 3.98 KB
/
pyproject.toml
File metadata and controls
154 lines (133 loc) · 3.98 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "readalongs"
dynamic = ["version"]
requires-python = ">= 3.8"
description = "ReadAlong Studio: Audiobook alignment for Indigenous languages"
readme = "README.md"
authors = [
{ name = "Aidan Pine", email = "Aidan.Pine@nrc-cnrc.gc.ca" },
{ name = "David Huggins-Daines", email = "dhd@ecolingui.ca" },
{ name = "Eric Joanis", email = "Eric.Joanis@nrc-cnrc.gc.ca" },
{ name = "Patrick Littell", email = "Patrick.Littell@nrc-cnrc.gc.ca" },
{ name = "Delasie Torkornoo", email = "Delasie.Torkornoo@nrc-cnrc.gc.ca" },
]
maintainers = [
{ name = "Eric Joanis", email = "Eric.Joanis@nrc-cnrc.gc.ca" },
{ name = "Aidan Pine", email = "Aidan.Pine@nrc-cnrc.gc.ca" },
{ name = "David Huggins-Daines", email = "dhd@ecolingui.ca" },
]
classifiers = [
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Multimedia :: Sound/Audio :: Speech",
"Typing :: Typed",
]
dependencies = [
"chevron==0.14.0",
"click>=8.0.4",
"coloredlogs>=10.0",
"fastapi>=0.103.0",
"g2p>=2.2.0, <3",
"lxml>=4.9.4",
"numpy>=1.20.2",
"pydantic>=1.8.2,<3",
"pydub>=0.25.1; python_version < '3.10'",
"pydub-ng==0.2.0; python_version >= '3.10'",
"pympi-ling>=1.69,<2.0",
"python-slugify==5.0.0",
"requests>=2.31.0",
"soundswallower~=0.6.0",
"webvtt-py==0.5.1",
]
[project.optional-dependencies]
dev = [
"readalongs[api]",
"gitlint-core>=0.17.0",
"httpx>=0.24.1",
"pep440>=0.1.2",
"prek",
"pytest",
]
api = [
# gunivorn is only available on *nix, but it's only required for production deployments
"gunicorn>=23.0.0; platform_system != 'Windows'",
# uvicorn works on all platforms and is required for both dev and prod deployments
"uvicorn>=0.30.1",
]
heroku = [
# We don't actually use the panphon 0.22 improvements on heroku so stick to
# 0.21 with its lighter weight dependencies
"ilt-panphon>=0.21.4,<0.22",
]
ci = [
"readalongs[api]",
"coverage",
"licensecheck",
]
docs = [
"mkdocs>=1.6.0",
"mkdocs-click>=0.8.1",
"mkdocs-material>=9.5.27",
"mkdocs-autorefs>=1.0.1",
"mkdocstrings[python]>=0.25.1",
"markdown-exec[ansi]",
"mike>=2.1.1",
]
all = [
"readalongs[dev]",
"readalongs[ci]",
"readalongs[docs]",
]
[project.scripts]
readalongs = "readalongs.cli:cli"
[tool.hatch.version]
path = "readalongs/_version.py"
[tool.hatch.build.targets.sdist]
include = [
"/readalongs",
]
[tool.hatch.env]
requires = [ "hatch-pip-compile" ]
[tool.hatch.envs.hatch-test]
features = [ "dev" ]
[tool.hatch.envs.prod]
features = [ "heroku", "api" ]
type = "pip-compile"
python = "3.13"
lock-filename = "requirements.txt"
[project.urls]
Homepage = "https://github.com/ReadAlongs/"
Documentation = "https://readalongs.github.io/Studio/"
Repository = "https://github.com/ReadAlongs/Studio"
Issues = "https://github.com/ReadAlongs/Studio/issues"
Changelog = "https://github.com/ReadAlongs/Studio/releases"
[tool.coverage.run]
source_pkgs = ["readalongs"]
branch = true
parallel = true
omit = ["readalongs/waveform2svg/*", "readalongs/epub/*"]
[tool.coverage.report]
precision = 2
exclude_also = ["if 0:", "if __name__ == .__main__.:"]
[tool.mypy]
plugins = ["pydantic.mypy"]
ignore_missing_imports = true
[tool.isort]
profile = "black"
[tool.pytest]
filterwarnings = [
"ignore:'audioop' is deprecated and slated for removal in Python 3.13:DeprecationWarning",
"ignore:.*codecs.open.. is deprecated. Use open.. instead.*:DeprecationWarning",
"ignore:.*Module already imported so cannot be rewritten; anyio.*",
]