[GRASS-dev] [GRASS GIS] #2261: failed pygrass doctest

#2261: failed pygrass doctest
-----------------------------+----------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.1.0
Component: Python | Version: svn-trunk
Keywords: pygrass doctest | Platform: All
      Cpu: Unspecified |
-----------------------------+----------------------------------------------
I spend a while to test the doctest of pygrass.

I fixed several, but there are still some broken. Please check the
following files

{{{
modules/shortcuts.py
modules/grid/grid.py
raster/__init__.py
raster/abstract.py
raster/category.py
raster/history.py
vector/__init__.py
vector/find.py
}}}

When all the doctest will work we should backport to release branch 70

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2261&gt;
GRASS GIS <http://grass.osgeo.org>

#2261: failed pygrass doctest
-----------------------------+----------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.1.0
Component: Python | Version: svn-trunk
Keywords: pygrass doctest | Platform: All
      Cpu: Unspecified |
-----------------------------+----------------------------------------------

Comment(by lucadelu):

Please try with a trunk version major of r59907 and a clean
[http://grass.osgeo.org/sampledata/north_carolina/nc_basic_spm_grass7.tar.gz
nc basic location]

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2261#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2261: failed pygrass doctest
-----------------------------+----------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.1.0
Component: Python | Version: svn-trunk
Keywords: pygrass doctest | Platform: All
      Cpu: Unspecified |
-----------------------------+----------------------------------------------

Comment(by neteler):

Also the Sphinx based documentation needs a fix:

{{{
cd lib/python/pygrass/docs/
make html
--> reference errors
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2261#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2261: failed pygrass doctest
-----------------------------+----------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.1.0
Component: Python | Version: svn-trunk
Keywords: pygrass doctest | Platform: All
      Cpu: Unspecified |
-----------------------------+----------------------------------------------

Comment(by neteler):

Replying to [comment:2 neteler]:
> Also the Sphinx based documentation needs a fix:
>
> {{{
> cd lib/python/pygrass/docs/
> make html
> --> reference errors
> }}}

Fixed in r59943 and r59947 (respectively in relbr7).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2261#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#2261: failed pygrass doctest
-----------------------------+----------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.1.0
Component: Python | Version: svn-trunk
Keywords: pygrass doctest | Platform: All
      Cpu: Unspecified |
-----------------------------+----------------------------------------------

Comment(by neteler):

Replying to [comment:2 neteler]:
> Also the Sphinx based documentation needs a fix:

Solved also on grass.osgeo.org: The PyGRASS manual
(Sphinx based) is now updated weekly:

http://grass.osgeo.org/programming7/pygrass/

Remains: test and update doctest.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2261#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#2261: failed pygrass doctest
-----------------------------+----------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.1.0
Component: Python | Version: svn-trunk
Keywords: pygrass doctest | Platform: All
      Cpu: Unspecified |
-----------------------------+----------------------------------------------

Comment(by lucadelu):

Replying to [ticket:2261 lucadelu]:
>
> {{{
> modules/shortcuts.py
> modules/grid/grid.py
> raster/__init__.py
> raster/abstract.py
> raster/category.py
> raster/history.py
> vector/__init__.py
> vector/find.py
> }}}
>

There are still some failures.

Pietro could you check them please?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2261#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#2261: failed pygrass doctest
-----------------------------+----------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.1.0
Component: Python | Version: svn-trunk
Keywords: pygrass doctest | Platform: All
      Cpu: Unspecified |
-----------------------------+----------------------------------------------

Comment(by zarch):

Replying to [comment:5 lucadelu]:
> Replying to [ticket:2261 lucadelu]:
> >
> > {{{
> > modules/shortcuts.py
> > modules/grid/grid.py
> > raster/__init__.py
> > raster/abstract.py
> > raster/category.py
> > raster/history.py
> > vector/__init__.py
> > vector/find.py
> > }}}
> >
>
> There are still some failures.
>
> Pietro could you check them please?

Done in: r61874, r61875, r61876, r61878, r61879, r61883, r61884.
Now they are working on my computer.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2261#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#2261: failed pygrass doctest
-----------------------------+----------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.1.0
Component: Python | Version: svn-trunk
Keywords: pygrass doctest | Platform: All
      Cpu: Unspecified |
-----------------------------+----------------------------------------------

Comment(by lucadelu):

Replying to [comment:6 zarch]:
> Done in: r61874, r61875, r61876, r61878, r61879, r61883, r61884.
> Now they are working on my computer.

There are still problems with raster
[http://grass.osgeo.org/grass70/manuals/libpython/pygrass.raster.html 0]
and grid
[http://grass.osgeo.org/grass70/manuals/libpython/pygrass.modules.grid.html
1].

I don't understand where is the error, nothing seems reported in the
output of sphinx.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2261#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>