From 349c9075e084b4e91cf31d055c2bf44853f98dee Mon Sep 17 00:00:00 2001 From: Ivan <42346810+i-vainn@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:14:21 +0500 Subject: [PATCH] made setup.py read requirements from file (#78) Signed-off-by: i-vainn Co-authored-by: i-vainn <1vanmoshkov@mail.ru> --- setup.py | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/setup.py b/setup.py index 1a9ff605..d3684256 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,15 @@ from setuptools import find_packages, setup + +def parse_requirements(filename): + with open(filename) as f: + return f.read().splitlines() + + +# Read the requirements from the requirements/main.txt file +requirements = parse_requirements('requirements/main.txt') + setup( name="sdp", version="0.1.0", @@ -24,22 +33,7 @@ url="https://github.com/NVIDIA/NeMo-speech-data-processor", packages=find_packages(include=["sdp*"]), python_requires=">=3.10", - install_requires=[ - 'diff_match_patch', - 'editdistance', - 'hydra-core', - 'joblib', - 'librosa>=0.10.0', # specify >=0.10.0 so that librosa.get_duration(path=...) will work - 'numpy', - 'omegaconf', - 'pandas', - 'regex', - 'sox', - 'tqdm', - 'wget', - 'ffmpeg', - 'rarfile', - ], + install_requires=requirements, classifiers=[ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10",