Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: convert setup.py to pyproject.toml #18

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
58 changes: 58 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[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",
]

[project.urls]
Homepage = "https://github.com/EveryVoiceTTS/wav2vec2aligner"
Repository = "https://github.com/EveryVoiceTTS/wav2vec2aligner"
Issues = "https://github.com/EveryVoiceTTS/wav2vec2aligner/issues"
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.