90 lines
No EOL
2.6 KiB
Python
90 lines
No EOL
2.6 KiB
Python
#!/usr/bin/env python3
|
|
|
|
from setuptools import setup, find_packages
|
|
from pathlib import Path
|
|
|
|
# Read README file
|
|
readme_path = Path(__file__).parent / "README.md"
|
|
long_description = readme_path.read_text(encoding="utf-8") if readme_path.exists() else ""
|
|
|
|
# Read requirements
|
|
requirements_path = Path(__file__).parent / "requirements.txt"
|
|
if requirements_path.exists():
|
|
with open(requirements_path, encoding="utf-8") as f:
|
|
requirements = [
|
|
line.strip()
|
|
for line in f
|
|
if line.strip() and not line.startswith("#")
|
|
]
|
|
else:
|
|
requirements = []
|
|
|
|
setup(
|
|
name="vtbp",
|
|
version="1.0.0",
|
|
author="VTBP Development Team",
|
|
author_email="dev@example.com",
|
|
description="Voice Translate Bed Preserve - Translate video voice while preserving music/SFX",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
url="https://github.com/example/vtbp",
|
|
packages=find_packages(),
|
|
classifiers=[
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"Intended Audience :: End Users/Desktop",
|
|
"Topic :: Multimedia :: Video",
|
|
"Topic :: Multimedia :: Sound/Audio",
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Operating System :: OS Independent",
|
|
],
|
|
python_requires=">=3.9",
|
|
install_requires=requirements,
|
|
extras_require={
|
|
"dev": [
|
|
"pytest>=7.0.0",
|
|
"pytest-cov>=4.0.0",
|
|
"black>=22.0.0",
|
|
"flake8>=5.0.0",
|
|
"mypy>=1.0.0",
|
|
],
|
|
"gpu": [
|
|
"torch[cuda]>=2.0.0", # For CUDA support
|
|
],
|
|
},
|
|
entry_points={
|
|
"console_scripts": [
|
|
"vtbp=vtbp.cli:main",
|
|
],
|
|
},
|
|
package_data={
|
|
"vtbp": [
|
|
"*.md",
|
|
"*.txt",
|
|
],
|
|
},
|
|
include_package_data=True,
|
|
zip_safe=False,
|
|
keywords=[
|
|
"video",
|
|
"audio",
|
|
"translation",
|
|
"speech",
|
|
"AI",
|
|
"machine learning",
|
|
"voice synthesis",
|
|
"dubbing",
|
|
"localization",
|
|
],
|
|
project_urls={
|
|
"Bug Reports": "https://github.com/example/vtbp/issues",
|
|
"Source": "https://github.com/example/vtbp",
|
|
"Documentation": "https://github.com/example/vtbp/blob/main/README.md",
|
|
},
|
|
) |