Skip to content

Commit

Permalink
build: convert setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Feb 4, 2025
1 parent 9b9d109 commit 2b2eee3
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 57 deletions.
1 change: 1 addition & 0 deletions aligner/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION = "1.0"

Check warning on line 1 in aligner/_version.py

View check run for this annotation

Codecov / codecov/patch

aligner/_version.py#L1

Added line #L1 was not covered by tests
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "ctc-segmentation-aligner"
dynamic = ["version"]
description = "Module for performing zero-shot forced alignment"
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
authors = [
{ name = "Aidan Pine", email = "[email protected]" },
{ name = "Eric Joanis", email = "[email protected]" },
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
dependencies = [
"g2p>=1.0.20230417",
"pydub>=0.23.1",
"pympi-ling",
"rich>=10.11.0",
"shellingham>=1.3.0",
"soundfile>=0.10.2",
"torch>=2.1.0",
"torchaudio>=2.1.0",
"typer>=0.12.4",
]

[project.scripts]
ctc-segmenter = "aligner.cli:app"

[tool.hatch.version]
path = "aligner/_version.py"

[tool.hatch.build.targets.sdist]
include = ["/aligner"]

[tool.hatch.build.targets.wheel]
include = ["/aligner"]

[project.optional-dependencies]
dev = [
"black~=24.3",
"flake8>=4.0.1",
"gitlint-core>=0.19.0",
"isort>=5.10.1",
"mypy>=1.8.0",
"pre-commit>=3.2.0",
]
13 changes: 0 additions & 13 deletions requirements.dev.txt

This file was deleted.

9 changes: 0 additions & 9 deletions requirements.txt

This file was deleted.

35 changes: 0 additions & 35 deletions setup.py

This file was deleted.

0 comments on commit 2b2eee3

Please sign in to comment.