pcp
[Top] [All Lists]

pcp updates: python module reorg & pylint

To: pcp@xxxxxxxxxxx
Subject: pcp updates: python module reorg & pylint
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Mon, 25 Mar 2013 23:38:01 -0400 (EDT)
Delivered-to: pcp@xxxxxxxxxxx
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Changes committed to git://oss.sgi.com/nathans/pcp.git dev

 build/rpm/fedora.spec          |    6 
 build/rpm/pcp.spec.in          |    3 
 qa/src/.gitignore              |    2 
 qa/src/GNUlocaldefs            |   18 
 qa/src/check_import.python     |    2 
 qa/src/test_pmi.python         |   69 +
 src/pmcd/pmdaproc.sh           |    4 
 src/pmdas/simple/pmdasimple.py |   34 
 src/python/GNUmakefile         |    4 
 src/python/pcp/GNUmakefile     |    2 
 src/python/pcp/__init__.py     |    2 
 src/python/pcp/pcp.py          | 1500 -----------------------------------------
 src/python/pcp/pcpi.py         |  414 -----------
 src/python/pcp/pmapi.py        | 1366 +++++++++++++++++++++++++++++++++++++
 src/python/pcp/pmcc.py         |  408 +++++++++++
 src/python/pcp/pmda.py         |  165 ++++
 src/python/pcp/pmgui.py        |  174 ++++
 src/python/pcp/pmi.py          |   29 
 src/python/pmapi.c             |  205 +----
 src/python/pmda.c              |  118 +++
 src/python/pmgui.c             |   61 +
 src/python/pmi.c               |   83 ++
 src/python/setup.py            |    5 
 23 files changed, 2544 insertions(+), 2130 deletions(-)

commit 91899451464c3bb349eac40f3fef4afae3f7316f
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Mar 26 14:36:02 2013 +1100

    Add a mechanism to generate the ideally-named pl/py scripts
    
    Due to various packaging issues we've avoiding using preferred
    suffixes for some scripts, however sometimes we simply must be
    using the right suffixes (pylint).

commit e14388162db6be94ca6ae32250d7a0706c8dbea1
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Mar 26 14:33:24 2013 +1100

    Merge in a change from external fedora spec for tracking
    
    This change is unlikely to last, after further navel gazing and
    many valid points from fche, its likely to be yanked back out &
    just replaced with manual checks that the configure script that
    is shipped with PCP is generated from a very recent autoconf.

commit 353bf453a589d210b3d14300fffcab30a0afd53b
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Mar 26 14:31:07 2013 +1100

    Make in-tree rpm spec file %prep section match Fedora
    
    In particular, apparently the %prep section is not the right
    place for configure to run - was moved to %build in Fedora a
    while ago, but missed in-tree.

commit 1d798de8275e512fc0b052bb847f1ec55dd87a4a
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Mar 26 14:29:38 2013 +1100

    Python PMDA fixes/updates after recent module reorganisation

commit f7ebe94f1f89e35ff4bc2dc2ae18c0b515c07167
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Mar 26 14:25:34 2013 +1100

    Further work toward clean namespace separation on python modules
    
    Rename a couple of the modules within the pcp python package so
    that cleaner importing is achieved (pylint-clean in particular).
    This scheme allows us to avoid wildcard imports on pcp modules,
    which pylint dislikes greatly.
    
    The existing pcp.py module is split here into separate modules
    for each of the shared libraries (libpcp, libpcp_gui and recently
    libpcp_import are now in separate modules).  Initial work toward
    cleaning the GUI and PMI modules has been undertaken, and they're
    now alot closer to clean (but not quite 100% yet).
    
    The two python PMI test programs below qa/src are now 100% pylint
    clean.  PMAPI (and test_pcp.py) remain areas of need in QA, and
    pmcollectl.py, pmapi.py, pmcc.py still need extensive work until
    pylint is happy (left for now though to avoid overlapping change
    with WIP from others).
    
    Renamed the "pcpi" module to "pmcc" for consistency with others,
    and to match the "convenience classes" name used in the source.

<Prev in Thread] Current Thread [Next in Thread>
  • pcp updates: python module reorg & pylint, Nathan Scott <=