mirror of
https://github.com/correl/dejavu.git
synced 2024-12-28 03:00:04 +00:00
Added setup.py
This commit is contained in:
parent
b9efcd545d
commit
efe3a33915
2 changed files with 53 additions and 0 deletions
9
requirements.txt
Normal file
9
requirements.txt
Normal file
|
@ -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 ###
|
44
setup.py
Normal file
44
setup.py
Normal file
|
@ -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',
|
||||
],
|
||||
)
|
Loading…
Reference in a new issue