2014-11-27 21:56:25 +00:00
|
|
|
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
|
|
|
|
|
2014-11-27 22:36:12 +00:00
|
|
|
PACKAGE_NAME = "PyDejavu"
|
2014-12-02 10:12:09 +00:00
|
|
|
PACKAGE_VERSION = "0.1.2"
|
|
|
|
SUMMARY = 'Dejavu: Audio Fingerprinting in Python'
|
|
|
|
DESCRIPTION = """
|
|
|
|
Audio fingerprinting and recognition algorithm implemented in Python
|
|
|
|
|
|
|
|
See the explanation here:
|
|
|
|
|
|
|
|
`http://willdrevo.com/fingerprinting-and-audio-recognition-with-python/`__
|
|
|
|
|
|
|
|
Dejavu can memorize recorded audio by listening to it once and fingerprinting
|
|
|
|
it. Then by playing a song and recording microphone input or on disk file,
|
|
|
|
Dejavu attempts to match the audio against the fingerprints held in the
|
|
|
|
database, returning the song or recording being played.
|
|
|
|
|
|
|
|
__ http://willdrevo.com/fingerprinting-and-audio-recognition-with-python/
|
|
|
|
"""
|
2014-11-27 21:56:25 +00:00
|
|
|
REQUIREMENTS = parse_requirements("requirements.txt")
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name=PACKAGE_NAME,
|
|
|
|
version=PACKAGE_VERSION,
|
|
|
|
description=SUMMARY,
|
|
|
|
long_description=DESCRIPTION,
|
2014-12-02 10:12:09 +00:00
|
|
|
author='Will Drevo',
|
2014-11-27 21:56:25 +00:00
|
|
|
author_email='will.drevo@gmail.com',
|
2014-12-02 10:12:09 +00:00
|
|
|
maintainer="Saleem Ansari",
|
|
|
|
maintainer_email="tuxdna@gmail.com",
|
2014-11-27 21:56:25 +00:00
|
|
|
url='http://github.com/tuxdna/dejavu',
|
2014-12-02 10:12:09 +00:00
|
|
|
license='MIT License',
|
2014-11-27 21:56:25 +00:00
|
|
|
include_package_data=True,
|
|
|
|
packages=find_packages(),
|
2014-12-02 10:12:09 +00:00
|
|
|
platforms=['Unix'],
|
2014-11-27 21:56:25 +00:00
|
|
|
install_requires=REQUIREMENTS,
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
'Environment :: Console',
|
|
|
|
'Intended Audience :: Developers',
|
2014-12-02 10:12:09 +00:00
|
|
|
'License :: OSI Approved :: MIT License',
|
2014-11-27 21:56:25 +00:00
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
|
|
],
|
2014-12-02 10:12:09 +00:00
|
|
|
keywords="python, audio, fingerprinting, music, numpy, landmark",
|
2014-11-27 21:56:25 +00:00
|
|
|
)
|