File tree 2 files changed +43
-2
lines changed
2 files changed +43
-2
lines changed Original file line number Diff line number Diff line change
1
+ language : python
2
+ sudo : required
3
+ dist : trusty
4
+ python :
5
+ - " 2.7"
6
+ before_install :
7
+ # get a working ffmpeg
8
+ - sudo add-apt-repository --yes ppa:mc3man/trusty-media
9
+ - sudo apt-get update -qq
10
+ - sudo apt-get install -qq ffmpeg
11
+ # install numpy etc. via miniconda
12
+ - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
13
+ wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
14
+ else
15
+ wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
16
+ fi
17
+ - bash miniconda.sh -b -p $HOME/miniconda
18
+ - export PATH="$HOME/miniconda/bin:$PATH"
19
+ - hash -r
20
+ - conda config --set always_yes yes --set changeps1 no
21
+ - conda update -q conda
22
+ - conda config --add channels pypi
23
+ - conda info -a
24
+ - deps='pip cython numpy scipy nose pep8'
25
+ - conda create -q -n test-environment "python=$TRAVIS_PYTHON_VERSION" $deps
26
+ - source activate test-environment
27
+ install :
28
+ - pip install -e .
29
+ before_script :
30
+ - pep8 --ignore=E402 madmom bin
31
+ script :
32
+ - nosetests
Original file line number Diff line number Diff line change 10
10
from distutils .extension import Extension
11
11
from Cython .Distutils import build_ext
12
12
13
+ import io
13
14
import glob
14
15
import numpy as np
15
16
16
17
# define version
17
- version = '0.12'
18
+ version = '0.12.1 '
18
19
19
20
# define which extensions need to be compiled
20
21
extensions = [Extension ('madmom.ml.rnn' ,
58
59
'scipy>=0.14' ,
59
60
'cython>=0.22.1' ]
60
61
62
+ # obtain a long description from README
63
+ try :
64
+ # needed to be able to read unicode files in Python 2 and 3
65
+ with io .open ('README.rst' , encoding = 'utf-8' ) as f :
66
+ long_description = f .read ()
67
+ except IOError :
68
+ long_description = ''
69
+
61
70
# the actual setup routine
62
71
setup (name = 'madmom' ,
63
72
version = version ,
64
73
description = 'Python audio signal processing library' ,
65
- long_description = open ( 'README.rst' ). read () ,
74
+ long_description = long_description ,
66
75
author = 'Department of Computational Perception, Johannes Kepler '
67
76
'University, Linz, Austria and Austrian Research Institute for '
68
77
'Artificial Intelligence (OFAI), Vienna, Austria' ,
You can’t perform that action at this time.
0 commit comments