Re: [Numpy-discussion] numpydoc for python 3?

2013-01-16 Thread Jaakko Luttinen
On 01/14/2013 02:44 PM, Matthew Brett wrote: On Mon, Jan 14, 2013 at 10:35 AM, Jaakko Luttinen jaakko.lutti...@aalto.fi wrote: On 01/14/2013 12:53 AM, Matthew Brett wrote: You might be able to get away without 2to3, using the kind of stuff that Pauli has used for scipy recently:

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-16 Thread Pauli Virtanen
14.01.2013 14:44, Matthew Brett kirjoitti: [clip] Pierre's suggestion is good; you can also do something like this: # -*- coding: utf8 -*- import sys if sys.version_info[0] = 3: a = 'öäöäöäöäö' else: a = unicode('öäöäöäöäö', 'utf8') The 'coding' line has to be the

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-14 Thread Pierre Haessig
Hi, Le 14/01/2013 11:35, Jaakko Luttinen a écrit : Ok, thanks, maybe I'll try to make the tests valid in all Python versions. It seems there's only one line which I'm not able to transform. In doc/sphinxext/tests/test_docscrape.py, on line 559: assert doc['Summary'][0] ==

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-14 Thread Matthew Brett
Hi, On Mon, Jan 14, 2013 at 10:35 AM, Jaakko Luttinen jaakko.lutti...@aalto.fi wrote: On 01/14/2013 12:53 AM, Matthew Brett wrote: On Sun, Jan 13, 2013 at 10:46 PM, Jaakko Luttinen jaakko.lutti...@aalto.fi wrote: I'm a bit stuck trying to make numpydoc Python 3 compatible. I made setup.py

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-13 Thread Jaakko Luttinen
On 2013-01-10 17:16, Jaakko Luttinen wrote: On 01/10/2013 05:04 PM, Pauli Virtanen wrote: Jaakko Luttinen jaakko.luttinen at aalto.fi writes: The files in numpy/doc/sphinxext/ and numpydoc/ (from PyPI) are a bit different. Which ones should be modified? The stuff in sphinxext/ is the

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-10 Thread Pauli Virtanen
Hi, Jaakko Luttinen jaakko.luttinen at aalto.fi writes: I'm trying to use numpydoc (Sphinx extension) for my project written in Python 3.2. However, installing numpydoc gives errors shown at http://pastebin.com/MPED6v9G and although it says Successfully installed numpydoc, trying to import

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-10 Thread Jaakko Luttinen
The files in numpy/doc/sphinxext/ and numpydoc/ (from PyPI) are a bit different. Which ones should be modified? -Jaakko On 01/10/2013 02:04 PM, Pauli Virtanen wrote: Hi, Jaakko Luttinen jaakko.luttinen at aalto.fi writes: I'm trying to use numpydoc (Sphinx extension) for my project written

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-10 Thread Pauli Virtanen
Jaakko Luttinen jaakko.luttinen at aalto.fi writes: The files in numpy/doc/sphinxext/ and numpydoc/ (from PyPI) are a bit different. Which ones should be modified? The stuff in sphinxext/ is the development version of the package on PyPi, so the changes should be made in sphinxext/ -- Pauli

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-10 Thread Jaakko Luttinen
On 01/10/2013 05:04 PM, Pauli Virtanen wrote: Jaakko Luttinen jaakko.luttinen at aalto.fi writes: The files in numpy/doc/sphinxext/ and numpydoc/ (from PyPI) are a bit different. Which ones should be modified? The stuff in sphinxext/ is the development version of the package on PyPi, so the

[Numpy-discussion] numpydoc for python 3?

2013-01-09 Thread Jaakko Luttinen
Hi! I'm trying to use numpydoc (Sphinx extension) for my project written in Python 3.2. However, installing numpydoc gives errors shown at http://pastebin.com/MPED6v9G and although it says Successfully installed numpydoc, trying to import numpydoc raises errors.. Could this be fixed or am I