Skip to content

Commit

Permalink
importing skeleton files
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Apr 26, 2017
1 parent 0823ba4 commit c5e2cb2
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .travis.yml
@@ -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
44 changes: 44 additions & 0 deletions .travis_dependencies.sh
@@ -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
5 changes: 5 additions & 0 deletions crema/__init__.py
@@ -0,0 +1,5 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''Convolutional-recurrent estimators for music analysis'''

from .version import version as __version__
6 changes: 6 additions & 0 deletions crema/version.py
@@ -0,0 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Version info"""

short_version = '0.0'
version = '0.0.1pre'
2 changes: 2 additions & 0 deletions setup.cfg
@@ -0,0 +1,2 @@
[tool:pytest]
addopts = -v --cov-report term-missing --cov crema
43 changes: 43 additions & 0 deletions setup.py
@@ -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'],
}
)

0 comments on commit c5e2cb2

Please sign in to comment.