Skip to content

Fixes #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 22, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
python:
- 3.3
- 2.7
before_install:
- pip install --upgrade pip setuptools # Upgrade pip and setuptools to get ones with `wheel` support
- pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel --use-mirrors nose numpy matplotlib Sphinx
script:
- python setup.py test
2 changes: 1 addition & 1 deletion numpydoc/docscrape_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

class SphinxDocString(NumpyDocString):
def __init__(self, docstring, config={}):
# Subclasses seemingly do not call this.
NumpyDocString.__init__(self, docstring, config=config)
self.load_config(config)

def load_config(self, config):
self.use_plots = config.get('use_plots', False)
Expand Down
9 changes: 8 additions & 1 deletion numpydoc/tests/test_phantom_import.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
from __future__ import division, absolute_import, print_function

import numpydoc.phantom_import
import sys
from nose import SkipTest

def test_import():
if sys.version_info[0] >= 3:
raise SkipTest("phantom_import not ported to Py3")

import numpydoc.phantom_import

# No tests at the moment...
8 changes: 7 additions & 1 deletion numpydoc/tests/test_plot_directive.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
from __future__ import division, absolute_import, print_function

import numpydoc.plot_directive
import sys
from nose import SkipTest

def test_import():
if sys.version_info[0] >= 3:
raise SkipTest("plot_directive not ported to Python 3 (use the one from Matplotlib instead)")
import numpydoc.plot_directive

# No tests at the moment...
8 changes: 7 additions & 1 deletion numpydoc/tests/test_traitsdoc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
from __future__ import division, absolute_import, print_function

import numpydoc.traitsdoc
import sys
from nose import SkipTest

def test_import():
if sys.version_info[0] >= 3:
raise SkipTest("traitsdoc not ported to Python3")
import numpydoc.traitsdoc

# No tests at the moment...