提交 766ecfdc 编写于 作者: T Todd Sedano

Removes references to python epydoc

Signed-off-by: NChris Hajas <chajas@pivotal.io>
上级 6286165a
......@@ -46,7 +46,6 @@ install:
- pip install --user lockfile
- pip install --user paramiko
- pip install --user setuptools
- pip install --user epydoc
## ----------------------------------------------------------------------
## Build APR & APR-UTIL used to build gpfdist
......
......@@ -38,7 +38,7 @@ cat /sys/kernel/mm/transparent_hugepage/enabled
# pip packages
curl https://bootstrap.pypa.io/get-pip.py | sudo python
sudo pip install --upgrade setuptools wheel paramiko pip lockfile epydoc psutil
sudo pip install --upgrade setuptools wheel paramiko pip lockfile psutil
# configure and build
git clone https://github.com/greenplum-db/gpdb.git
......
......@@ -26,7 +26,6 @@ apt-get install -y python-pip
pip install lockfile
pip install paramiko
pip install setuptools
pip install epydoc
pip install psutil
Note: debian8 required pip install --pre psutil
......
......@@ -79,7 +79,6 @@ building, see the README at the following repositories:
* lockfile (>= 0.9.1)
* paramiko
* setuptools
* epydoc
If necessary, upgrade modules using "pip install --upgrade".
pip should be at least version 7.x.x.
......
[epydoc] # Epydoc section marker (required by ConfigParser)
# Information about the project.
name: Management Utilities
# The list of modules to document. Modules can be named using
# dotted names, module filenames, or package directory names.
# This option may be repeated.
modules: gppylib, ./gp*.py
# Write html output to the directory "apidocs"
output: html
target: docs/
# Include all automatically generated graphs. These graphs are
# generated using Graphviz dot.
graph: all
[epydoc] # Epydoc section marker (required by ConfigParser)
# Information about the project.
name: TINC
# The list of modules to document. Modules can be named using
# dotted names, module filenames, or package directory names.
# This option may be repeated.
modules: tinctest
# Write html output to the directory "apidocs"
output: html
target: epydocs/
# Include all automatically generated graphs. These graphs are
# generated using Graphviz dot.
# graph: all
#exclude test python files
exclude: tinctest.*.test tinctest.test tinctest.lib.regress. tinctest.discovery tinctest.integration
......@@ -2,26 +2,6 @@ CUR_DIR:=`pwd`
EXT:=$(CUR_DIR)/ext
#-------------------------------------------------------------------------------
# DOCS
#
# To get documentation for Python scripts, run the make gen_epydoc target.
#
# Note that the $(CUR_DIR)/sbin/gen_epydocs.sh script assumes that the SRC_DIR
# is set to the top of the Greenplum source tree.
#-------------------------------------------------------------------------------
gen_epydoc:
$(CUR_DIR)/sbin/gen_epydocs.sh
#-------------------------------------------------------------------------------
# clean
#-------------------------------------------------------------------------------
clean:
@rm -rf $(CUR_DIR)/epydocs
@rm -rf $(CURDIR)/tincrepo/epydocs
unit: tincunit
regress: tincregress
check: tinccheck tincmmgrcheck
......
#!/bin/bash
mygphome=${GPHOME:-../../product/greenplum-db}
source ${mygphome}/greenplum_path.sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
GPMGMT_BIN=$(SRC_DIR)/gpMgmt/bin
EXT=${GPMGMT_BIN}/pythonSrc/ext
EPYDOC_DIR=epydoc-3.0.1
EPYDOC_PYTHONPATH=${EXT}:${EXT}/${EPYDOC_DIR}/build/lib/
pushd $DIR/..
source tinc_env.sh
make -C ${GPMGMT_BIN} epydoc
echo "Generating documentation for TINC ..."
PYTHONPATH=${PYTHONPATH}:${EPYDOC_PYTHONPATH} python ${EXT}/${EPYDOC_DIR}/build/scripts-*/epydoc -v --graph umlclasstree --no-private --config=.epydoc.config
# now if tincrepo is there, make epydocs for that also
if [ "x${TINCREPOHOME}" != "x" ]; then
pushd ${TINCREPOHOME}
echo "Generating documentation for TINCREPO ..."
PYTHONPATH=${PYTHONPATH}:${EPYDOC_PYTHONPATH} python ${EXT}/${EPYDOC_DIR}/build/scripts-*/epydoc -v --graph umlclasstree --no-private --config=.epydoc.config
popd
fi
echo "Documentation for TINC can be found at $TINCHOME/epydocs"
echo "Documentation for TINCREPO can be found at $TINCREPOHOME/epydocs"
popd
[epydoc] # Epydoc section marker (required by ConfigParser)
# Information about the project.
name: TINCREPO
# The list of modules to document. Modules can be named using
# dotted names, module filenames, or package directory names.
# This option may be repeated.
modules: mpp
# Write html output to the directory "apidocs"
output: html
target: epydocs/
# Include all automatically generated graphs. These graphs are
# generated using Graphviz dot.
# graph: all
#exclude test python files
exclude: mpp.common.tests mpp.gpdb.tests mpp.gpdb.lib.models mpp.lib.test mpp.models.test mpp.models.regress mpp.hawq.tests mpp.lib.datagen.test mpp.lib.regress
......@@ -379,8 +379,7 @@ class MPPTestCase(tinctest.TINCTestCase):
def defaultTestResult(self, stream=None, descriptions=None, verbosity=None):
"""
TODO: This method should not be exposed as a public method. All result objects
will be internal. Should find out if epydocs allows some language to ignore
certain methods even if it does not start with an '_'.
will be internal.
Return a custom result object for MPPTestCase. We need a handle on
whether the test errored out / failed to honor metadata like 'restart'
......
......@@ -30,7 +30,7 @@ RUN yum -y update \
zlib-devel
RUN curl -SL https://bootstrap.pypa.io/get-pip.py | python \
&& pip install psutil lockfile paramiko setuptools epydoc
&& pip install psutil lockfile paramiko setuptools
# compile GPDB
......
......@@ -21,7 +21,7 @@ sudo yum -y install ccache
sudo yum -y install libffi-devel
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
sudo pip install psutil lockfile paramiko setuptools epydoc
sudo pip install psutil lockfile paramiko setuptools
rm get-pip.py
# Misc
......
......@@ -22,7 +22,6 @@ pip install cffi --upgrade
pip install lockfile
pip install paramiko --upgrade
pip install setuptools --upgrade
pip install epydoc
pip install --pre psutil
pip install cryptography --upgrade
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册