From efe3a33915b1a0c49fe9311b449cfa549bbd0f9b Mon Sep 17 00:00:00 2001 From: Saleem Ansari Date: Fri, 28 Nov 2014 03:26:25 +0530 Subject: [PATCH] Added setup.py --- requirements.txt | 9 +++++++++ setup.py | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 requirements.txt create mode 100644 setup.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8b3eea8 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,9 @@ +# requirements file + +### BEGIN ### +pydub==0.9.4 +PyAudio==0.2.8 +numpy==1.8.2 +scipy==0.12.1 +matplotlib==1.3.1 +### END ### diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..39df5a4 --- /dev/null +++ b/setup.py @@ -0,0 +1,44 @@ +from setuptools import setup, find_packages +# import os, sys + + +def parse_requirements(requirements): + # load from requirements.txt + with open(requirements) as f: + lines = [l for l in f] + # remove spaces + stripped = map((lambda x: x.strip()), lines) + # remove comments + nocomments = filter((lambda x: not x.startswith('#')), stripped) + # remove empty lines + reqs = filter((lambda x: x), nocomments) + return reqs + +PACKAGE_NAME = "dejavu" +PACKAGE_VERSION = "0.1" +SUMMARY = 'Dejavu Audio Fingerprinting' +DESCRIPTION = """Dejavu Audio Fingerprinting""" +REQUIREMENTS = parse_requirements("requirements.txt") + +setup( + name=PACKAGE_NAME, + version=PACKAGE_VERSION, + description=SUMMARY, + long_description=DESCRIPTION, + author='worldveil', + author_email='will.drevo@gmail.com', + url='http://github.com/tuxdna/dejavu', + license='Apache 2.0', + include_package_data=True, + packages=find_packages(), + platforms=['Any'], + install_requires=REQUIREMENTS, + classifiers=[ + 'Development Status :: 4 - Beta', + 'Environment :: Console', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Operating System :: OS Independent', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], +)