Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
language: python | ||
|
||
# sudo false implies containerized builds | ||
sudo: false | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- ffmpeg | ||
|
||
notifications: | ||
email: false | ||
|
||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
|
||
cache: | ||
directories: | ||
- $HOME/env | ||
|
||
before_install: | ||
- bash .travis_dependencies.sh | ||
- export PATH="$HOME/env/miniconda$TRAVIS_PYTHON_VERSION/bin:$PATH"; | ||
- hash -r | ||
- source activate test-environment | ||
|
||
install: | ||
- pip install -e .[docs,tests] | ||
|
||
script: | ||
- py.test | ||
|
||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
#!/bin/sh | ||
|
||
ENV_NAME="test-environment" | ||
set -e | ||
|
||
conda_create () | ||
{ | ||
|
||
hash -r | ||
conda config --set always_yes yes --set changeps1 no | ||
conda update -q conda | ||
conda config --add channels pypi | ||
conda info -a | ||
deps='pip numpy scipy scikit-learn' | ||
|
||
conda create -q -n $ENV_NAME "python=$TRAVIS_PYTHON_VERSION" $deps | ||
conda update --all | ||
} | ||
|
||
src="$HOME/env/miniconda$TRAVIS_PYTHON_VERSION" | ||
if [ ! -d "$src" ]; then | ||
mkdir -p $HOME/env | ||
pushd $HOME/env | ||
|
||
# Download miniconda packages | ||
wget http://repo.continuum.io/miniconda/Miniconda-3.16.0-Linux-x86_64.sh -O miniconda.sh; | ||
|
||
# Install both environments | ||
bash miniconda.sh -b -p $src | ||
|
||
export PATH="$src/bin:$PATH" | ||
conda_create | ||
|
||
source activate $ENV_NAME | ||
|
||
conda install -c conda-forge librosa | ||
pip install python-coveralls pytest-faulthandler | ||
|
||
source deactivate | ||
popd | ||
else | ||
echo "Using cached dependencies" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env python | ||
# -*- encoding: utf-8 -*- | ||
'''Convolutional-recurrent estimators for music analysis''' | ||
|
||
from .version import version as __version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
"""Version info""" | ||
|
||
short_version = '0.0' | ||
version = '0.0.1pre' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[tool:pytest] | ||
addopts = -v --cov-report term-missing --cov crema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from setuptools import setup, find_packages | ||
|
||
import imp | ||
|
||
version = imp.load_source('crema.version', 'crema/version.py') | ||
|
||
setup( | ||
name='crema', | ||
version=version.version, | ||
description="Convolutional-recurrent estimators for music analysis", | ||
author='Brian McFee', | ||
url='http://github.com/bmcfee/crema', | ||
download_url='http://github.com/bmcfee/crema/releases', | ||
packages=find_packages(), | ||
long_description="Convolutional-recurrent estimators for music analysis", | ||
classifiers=[ | ||
"License :: OSI Approved :: ISC License (ISCL)", | ||
"Programming Language :: Python", | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
], | ||
keywords='audio music learning', | ||
license='ISC', | ||
install_requires=['six', | ||
'librosa>=0.5.0', | ||
'jams>=0.2.2', | ||
'scikit-learn>=0.19', | ||
'keras>=2.0', | ||
'tensorflow>=1.0', | ||
'mir_eval>=0.4', | ||
'h5py>=2.7'], | ||
extras_require={ | ||
'docs': ['numpydoc'], | ||
'tests': ['pytest', 'pytest-cov'], | ||
} | ||
) |