Skip to content

Commit

Permalink
[plotting_tests] failed, because of same name?
Browse files Browse the repository at this point in the history
  • Loading branch information
mzwiessele committed Nov 7, 2015
1 parent 8f19465 commit 0c11ba0
Show file tree
Hide file tree
Showing 43 changed files with 8 additions and 4 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion GPy/testing/plotting_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _image_directories():
Compute the baseline and result image directories for testing *func*.
Create the result directory if it doesn't exist.
"""
basedir = os.path.splitext(os.path.relpath(os.path.abspath(__file__)))[0]
basedir = os.path.dirname(os.path.relpath(os.path.abspath(__file__)))
#module_name = __init__.__module__
#mods = module_name.split('.')
#basedir = os.path.join(*mods)
Expand Down
5 changes: 3 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include doc/source/conf.py
include doc/source/index.rst
include doc/source/tuto*.rst
include README.md
include README.rst

# Data and config
#include *.json
Expand All @@ -15,5 +16,5 @@ recursive-include GPy *.so
recursive-include GPy *.pyx

# Testing
include GPy/testing/plotting_tests/baseline/*.png
include GPy/testing/pickle_test.pickle
include GPy/testing/plotting_tests/baseline/.*.png
#include GPy/testing/pickle_test.pickle
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ def read_to_rst(fname):
try:
import pypandoc
rstname = "{}.{}".format(os.path.splitext(fname)[0], 'rst')
return pypandoc.convert(read(fname), 'rst', format='md')
rststr = pypandoc.convert(read(fname), 'rst', format='md')
with open(rstname, 'w') as f:
f.write(rststr)
return rststr
#return read(rstname)
except ImportError:
return read(fname)
Expand Down

0 comments on commit 0c11ba0

Please sign in to comment.