Skip to content

Commit

Permalink
made setup.py read requirements from file (NVIDIA#78)
Browse files Browse the repository at this point in the history
Signed-off-by: i-vainn <[email protected]>
Co-authored-by: i-vainn <[email protected]>
  • Loading branch information
i-vainn and i-vainn authored Aug 23, 2024
1 parent f2b7643 commit 349c907
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 349c907

Please sign in to comment.