[project] name = "audioforge" version = "0.1.0" description = "Open-source Suno-style music generation platform" requires-python = ">=3.11" dependencies = [ "fastapi>=0.109.0", "uvicorn[standard]>=0.27.0", "pydantic>=2.5.0", "pydantic-settings>=2.1.0", "sqlalchemy>=2.0.25", "alembic>=1.13.0", "asyncpg>=0.29.0", "redis>=5.0.1", "aioredis>=2.0.1", "python-multipart>=0.0.6", "structlog>=24.1.0", "prometheus-client>=0.19.0", "opentelemetry-api>=1.22.0", "opentelemetry-sdk>=1.22.0", "opentelemetry-instrumentation-fastapi>=0.42b0", "librosa>=0.10.2", "scipy>=1.11.0", "soundfile>=0.12.1", "numpy>=1.26.0", "httpx>=0.26.0", "python-jose[cryptography]>=3.3.0", "passlib[bcrypt]>=1.7.4", "python-dotenv>=1.0.0", ] [project.optional-dependencies] dev = [ "pytest>=7.4.4", "pytest-asyncio>=0.23.3", "pytest-cov>=4.1.0", "httpx>=0.26.0", "black>=24.1.0", "ruff>=0.1.11", "mypy>=1.8.0", "pre-commit>=3.6.0", ] ml = [ "transformers>=4.37.0", "torch>=2.0.0", # AudioCraft requires torch<2.1.2 but we are on py3.12 "torchaudio>=2.0.0", # AudioCraft requires torchaudio<2.1.2 but we are on py3.12 "audiocraft @ git+https://github.com/facebookresearch/audiocraft.git", # xformers is optional and will be installed by audiocraft if needed "einops>=0.7.0", ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.metadata] allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["app"] [tool.black] line-length = 100 target-version = ["py311"] [tool.ruff] line-length = 100 target-version = "py311" [tool.mypy] python_version = "3.11" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true [tool.pytest.ini_options] asyncio_mode = "auto" testpaths = ["tests"] python_files = ["test_*.py"] python_classes = ["Test*"] python_functions = ["test_*"]