Files
pyannote-audio/setup.py
T
Hervé BREDIN 9faa8fc8a8 setup: update most dependencies (#1323)
- setup: switch to torch 2.0+ and lightning 2.0+
- setup: switch to torchaudio 2.0+ and soundfile 0.12+
- setup: switch to pyannote.core 5.0+ and pyannote.database 5.0+
- setup: switch to speechbrain 0.5.14+

- BREAKING(task): rename `Segmentation` task to `SpeakerDiarization`
- BREAKING(task): remove support for variable chunk duration

- BREAKING(pipeline): remove `SpeakerSegmentation` pipeline (in favor of `SpeakerDiarization` pipeline)
- BREAKING(pipeline): remove support `FINCHClustering` and `HiddenMarkovModelClustering`

- BREAKING: drop support for Python 3.7
2023-04-17 15:32:37 +02:00

65 lines
1.9 KiB
Python

import os
import sys
from pathlib import Path
from pkg_resources import VersionConflict, require
from setuptools import find_packages, setup
with open("README.md", mode="r", encoding="utf-8") as f:
long_description = f.read()
with open("requirements.txt", mode="r", encoding="utf-8") as f:
requirements = f.read().splitlines()
try:
require("setuptools>=38.3")
except VersionConflict:
print("Error: version of setuptools is too old (<38.3)!")
sys.exit(1)
ROOT_DIR = Path(__file__).parent.resolve()
# Creating the version file
with open("version.txt", mode="r", encoding="utf-8") as f:
version = f.read()
version = version.strip()
sha = "Unknown"
if os.getenv("BUILD_VERSION"):
version = os.getenv("BUILD_VERSION")
elif sha != "Unknown":
version += "+" + sha[:7]
print("-- Building version " + version)
version_path = ROOT_DIR / "pyannote" / "audio" / "version.py"
with open(version_path, mode="w", encoding="utf-8") as f:
f.write("__version__ = '{}'\n".format(version))
if __name__ == "__main__":
setup(
name="pyannote.audio",
namespace_packages=["pyannote"],
version=version,
packages=find_packages(),
install_requires=requirements,
description="Neural building blocks for speaker diarization",
long_description=long_description,
long_description_content_type="text/markdown",
author="Hervé Bredin",
author_email="herve.bredin@irit.fr",
url="https://github.com/pyannote/pyannote-audio",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering",
],
)