-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsetup.py
More file actions
112 lines (102 loc) · 3.48 KB
/
Copy pathsetup.py
File metadata and controls
112 lines (102 loc) · 3.48 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
# setup.py - Final Production Version
from setuptools import setup, find_packages
import os
# Read README for long description
def read_readme():
readme_path = os.path.join(os.path.dirname(__file__), "README.md")
if os.path.exists(readme_path):
with open(readme_path, "r", encoding="utf-8") as f:
return f.read()
return "Bournemouth Forced Aligner - Phoneme-level timestamp extraction"
setup(
name="bournemouth-forced-aligner",
version="1.1.5",
packages=find_packages(exclude=["tests*", "docs*", "examples*"]),
python_requires=">=3.8",
# Core dependencies
install_requires=[
"torch>=1.9.0",
"torchaudio>=0.9.0",
"huggingface_hub>=0.8.0",
"numpy>=1.19.0",
"click>=8.0.0",
"phonemizer>=3.3.0",
"librosa>=0.8.0"
],
# Optional dependencies
extras_require={
"dev": [
"pytest>=6.0",
"pytest-cov>=3.0.0",
"black>=22.0.0",
"flake8>=4.0.0",
"mypy>=0.950",
"pre-commit>=2.17.0",
],
"test": [
"pytest>=6.0",
"pytest-cov>=3.0.0",
"pytest-xdist>=2.5.0",
],
"docs": [
"sphinx>=4.0.0",
"sphinx-rtd-theme>=1.0.0",
"myst-parser>=0.17.0",
],
"audio": [
"librosa>=0.8.0",
"soundfile>=0.10.0",
"pydub>=0.25.0",
],
},
# CLI entry point
entry_points={
"console_scripts": [
"balign=bournemouth_aligner.cli:main",
],
},
# Package metadata
author="Tabahi",
author_email="tabahi@duck.com",
description="Bournemouth Forced Aligner - Phoneme-level timestamp extraction",
long_description=read_readme(),
long_description_content_type="text/markdown",
url="https://github.com/tabahi/bournemouth-forced-aligner",
project_urls={
"Documentation": "https://github.com/tabahi/bournemouth-forced-aligner#readme",
"Bug Tracker": "https://github.com/tabahi/bournemouth-forced-aligner/issues",
"Source Code": "https://github.com/tabahi/bournemouth-forced-aligner",
"CUPE Models": "https://huggingface.co/Tabahi/CUPE-2i",
},
# Package classification
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: GPL V3",
"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",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Text Processing :: Linguistic",
],
# Keywords for discovery
keywords=[
"phoneme", "alignment", "speech", "audio", "timestamp",
"forced-alignment", "bournemouth", "CUPE", "speech-recognition", "linguistics"
],
# Package data
package_data={
"bournemouth_aligner": ["py.typed", "*.txt", "*.md"],
},
include_package_data=True,
# Minimum Python version
zip_safe=False,
)