|
| 1 | +import os |
1 | 2 | import setuptools |
2 | 3 |
|
| 4 | +PROJECT = os.path.abspath(os.path.dirname(__file__)) |
| 5 | +REQUIREMENTS_PATH = "requirements/requirements.txt" |
3 | 6 | # The text of the README file |
4 | 7 | with open("README.md", "r") as f: |
5 | 8 | long_description = f.read() |
6 | 9 |
|
| 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 | + |
7 | 19 | setuptools.setup( |
8 | 20 | name='pyAudioProcessing', |
9 | 21 | version='1.1.0', |
10 | 22 | description='Audio processing-feature extraction and building machine learning models from audio data.', |
11 | 23 | long_description=long_description, |
12 | 24 | long_description_content_type="text/markdown", |
13 | 25 | author='Jyotika Singh', |
14 | | - packages=setuptools.find_packages(),#['pyAudioProcessing'], |
| 26 | + packages=setuptools.find_packages(where=PROJECT), |
15 | 27 | 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', |
18 | 30 | py_modules=["pyAudioProcessing"], |
19 | 31 | classifiers=[ |
20 | 32 | "Programming Language :: Python :: 3", |
|
0 commit comments