Skip to content

Commit 59a848f

Browse files
authored
Merge pull request #1 from nschloe/version
fail on unsuccessful README read
2 parents 1ab4117 + b139a8e commit 59a848f

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ before_install:
1919
- sudo apt update -qq
2020
- sudo apt-get -y install libcgal-dev libeigen3-dev swig python-numpy
2121
- sudo apt-get -y install libcgal-qt5-11 # bug in cgal, should be installed automatically
22+
- sudo apt-get -y install pandoc
2223
- sudo pip install meshio
2324
- sudo pip install nose2
2425

2526
install:
2627
- export PATH="/home/travis/bin:/home/travis/.local/bin:/home/travis/.gimme/versions/go1.5.1.linux.amd64/bin:/home/travis/.local/bin:/usr/local/rvm/gems/ruby-2.2.3/bin:/usr/local/rvm/gems/ruby-2.2.3@global/bin:/usr/local/rvm/rubies/ruby-2.2.3/bin:/home/travis/.phpenv/shims:/usr/local/phantomjs/bin:/usr/local/phantomjs:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v4.1.2/bin:./node_modules/.bin:/usr/local/maven-3.1.1/bin:/usr/local/gradle/bin:/usr/local/clang-3.5.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/travis/.phpenv/bin:/usr/local/rvm/bin"
2728
- sudo pip install -r requirements.txt
29+
- pandoc README.md -o README.rst
2830
- python setup.py build
2931
- sudo python setup.py install
3032
# - sudo pip install .

setup.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,17 @@
44
import os
55
import codecs
66

7-
__version__ = '0.1.0'
7+
__version__ = '0.1.1'
88
__license__ = 'MIT License'
99
__author__ = 'Nico Schlömer'
1010
__email__ = 'nico.schloemer@gmail.com'
1111

1212

1313
def read(fname):
14-
try:
15-
content = codecs.open(
16-
os.path.join(os.path.dirname(__file__), fname),
17-
encoding='utf-8'
18-
).read()
19-
except Exception:
20-
content = ''
14+
content = codecs.open(
15+
os.path.join(os.path.dirname(__file__), fname),
16+
encoding='utf-8'
17+
).read()
2118
return content
2219

2320
setup(

src/frentos.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%module(directors="1") frentos
22

33
%pythoncode %{
4-
__version__ = '0.1.0'
4+
__version__ = '0.1.1'
55
__license__ = 'MIT License'
66
__author__ = 'Nico Schlömer'
77
__email__ = 'nico.schloemer@gmail.com'

0 commit comments

Comments
 (0)