Skip to content

Commit 099e847

Browse files
committed
Update setup
1 parent f6a5f91 commit 099e847

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

setup.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
1+
import os
12
import setuptools
23

4+
PROJECT = os.path.abspath(os.path.dirname(__file__))
5+
REQUIREMENTS_PATH = "requirements/requirements.txt"
36
# The text of the README file
47
with open("README.md", "r") as f:
58
long_description = f.read()
69

10+
def get_requirements(path=REQUIREMENTS_PATH):
11+
"""
12+
Returns a list of requirements defined by REQUIREMENTS_PATH.
13+
"""
14+
requirements = []
15+
for line in read(path).splitlines():
16+
requirements.append(line.strip())
17+
return requirements
18+
719
setuptools.setup(
820
name='pyAudioProcessing',
921
version='1.1.0',
1022
description='Audio processing-feature extraction and building machine learning models from audio data.',
1123
long_description=long_description,
1224
long_description_content_type="text/markdown",
1325
author='Jyotika Singh',
14-
packages=setuptools.find_packages(),#['pyAudioProcessing'],
26+
packages=setuptools.find_packages(where=PROJECT),
1527
url="https://github.com/jsingh811/pyAudioProcessing",
16-
include_package_data=True,
17-
python_requires='>=3.6',
28+
install_requires=get_requirements(),
29+
python_requires='>=3.6, <4',
1830
py_modules=["pyAudioProcessing"],
1931
classifiers=[
2032
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)