Skip to content

Commit 2b2eee3

Browse files
committed
build: convert setup.py to pyproject.toml
1 parent 9b9d109 commit 2b2eee3

File tree

5 files changed

+54
-57
lines changed

5 files changed

+54
-57
lines changed

aligner/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VERSION = "1.0"

pyproject.toml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "ctc-segmentation-aligner"
7+
dynamic = ["version"]
8+
description = "Module for performing zero-shot forced alignment"
9+
readme = "README.md"
10+
license = "MIT"
11+
requires-python = ">=3.8"
12+
authors = [
13+
{ name = "Aidan Pine", email = "[email protected]" },
14+
{ name = "Eric Joanis", email = "[email protected]" },
15+
]
16+
classifiers = [
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent",
19+
"Programming Language :: Python :: 3",
20+
]
21+
dependencies = [
22+
"g2p>=1.0.20230417",
23+
"pydub>=0.23.1",
24+
"pympi-ling",
25+
"rich>=10.11.0",
26+
"shellingham>=1.3.0",
27+
"soundfile>=0.10.2",
28+
"torch>=2.1.0",
29+
"torchaudio>=2.1.0",
30+
"typer>=0.12.4",
31+
]
32+
33+
[project.scripts]
34+
ctc-segmenter = "aligner.cli:app"
35+
36+
[tool.hatch.version]
37+
path = "aligner/_version.py"
38+
39+
[tool.hatch.build.targets.sdist]
40+
include = ["/aligner"]
41+
42+
[tool.hatch.build.targets.wheel]
43+
include = ["/aligner"]
44+
45+
[project.optional-dependencies]
46+
dev = [
47+
"black~=24.3",
48+
"flake8>=4.0.1",
49+
"gitlint-core>=0.19.0",
50+
"isort>=5.10.1",
51+
"mypy>=1.8.0",
52+
"pre-commit>=3.2.0",
53+
]

requirements.dev.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)