コード例 #1
0
ファイル: make.py プロジェクト: jldupont/pyjld
def target_copydocs(pkg_path, version, docs_html):
    print "*** copying documentation to release directory"
    ######################################################
    docs_html_release_path = os.path.join( pkg_path, 'tags', version, 'docs')
    safe_copytree(docs_html, docs_html_release_path, skip_dirs=['.svn',])
コード例 #2
0
ファイル: make.py プロジェクト: jldupont/pyjld
this_module      = getattr(this_package, package)
version          = this_module.__version__
tags_dir         = os.path.join(pkg_path, 'tags')

existed, release_path = makeEggReleaseDir( version, tags_dir )
if not existed:
    print "*** created eggs release directory [%s]" % release_path    


print "*** copying eggs to release directory"
#############################################
eggs_path = os.path.join( pkg_path, 'trunk', 'dist' )
files = copyUpdatedFiles(eggs_path, release_path)
files = keepBaseNames(files)
pprintFiles(files, "    copied [$src] to release directory" )


print "*** generating documentation"
####################################
docs_source = os.path.join( pkg_path, 'trunk', 'docs', 'source' )
docs_html   = os.path.join( pkg_path, 'trunk', 'docs', 'html' )
import sphinx
sphinx.main( ['sphinx', docs_source, docs_html] )


print "*** copying documentation to release directory"
######################################################
docs_html_release_path = os.path.join( pkg_path, 'tags', version)
safe_copytree(docs_html, docs_html_release_path, skip_dirs=['.svn',])