Skip to content

Commit bdac0cb

Browse files
author
Sebastian Böck
committed
Merge pull request #66 from CPJKU/release/0.12.1
add Python2/3 compatibility to setup.py; bump version to 0.12.1
2 parents 0cf1755 + d15c695 commit bdac0cb

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

Diff for: .travis.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

Diff for: setup.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
from distutils.extension import Extension
1111
from Cython.Distutils import build_ext
1212

13+
import io
1314
import glob
1415
import numpy as np
1516

1617
# define version
17-
version = '0.12'
18+
version = '0.12.1'
1819

1920
# define which extensions need to be compiled
2021
extensions = [Extension('madmom.ml.rnn',
@@ -58,11 +59,19 @@
5859
'scipy>=0.14',
5960
'cython>=0.22.1']
6061

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+
6170
# the actual setup routine
6271
setup(name='madmom',
6372
version=version,
6473
description='Python audio signal processing library',
65-
long_description=open('README.rst').read(),
74+
long_description=long_description,
6675
author='Department of Computational Perception, Johannes Kepler '
6776
'University, Linz, Austria and Austrian Research Institute for '
6877
'Artificial Intelligence (OFAI), Vienna, Austria',

0 commit comments

Comments
 (0)