Ticket #12606: 12606_test_and_document_info.patch

File 12606_test_and_document_info.patch, 1.5 KB (added by jdemeyer, 10 years ago)
  • doc/en/reference/options.rst

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1346267198 -7200
    # Node ID bd7436d1d0753624ba449cd8c880bc008249ee84
    # Parent  883e332b333a02a3a1bbffb831d005fd680addb4
    Test and document sage --info [packages]
    
    diff --git a/doc/en/reference/options.rst b/doc/en/reference/options.rst
    a b  
    9797
    9898- ``-f [options] [packages]`` -- shortcut for ``-i -f``: force build of
    9999  the given Sage packages.
     100- ``--info [packages]`` -- display the ``SPKG.txt`` file of the given
     101  Sage packages.
    100102- ``--standard`` -- list all standard packages that can be installed
    101103- ``--optional`` -- list all optional packages that can be installed
    102104- ``--experimental`` -- list all experimental packages that can be installed
  • sage/tests/cmdline.py

    diff --git a/sage/tests/cmdline.py b/sage/tests/cmdline.py
    a b  
    1919-h
    2020--help
    2121--hg
     22--info
    2223--ipython
    2324--kash
    2425--lisp
     
    197198        sage: ret
    198199        0
    199200   
     201    Test ``sage --info [packages]``::
     202
     203        sage: (out, err, ret) = test_executable(["sage", "--info", "sqlalchemy"])
     204        sage: print out
     205        Found package sqlalchemy in spkg/standard/sqlalchemy-...spkg
     206        = SQLAlchemy =
     207        ...
     208        SQLAlchemy is the Python SQL toolkit...
     209        sage: err
     210        ''
     211        sage: ret
     212        0
     213
    200214    Test ``sage-run`` on a Python file, both with an absolute and with a relative path::
    201215
    202216        sage: import tempfile