Skip to content

Commit

Permalink
Make a tarball from the docset
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinD42 committed Oct 4, 2019
1 parent 70be620 commit cbb2872
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,22 @@ def cmd_docset_py(options, args):
msg('Removing sidebar from docset pages...')
_removeSidebar(opj('dist', name+'.docset', 'Contents', 'Resources', 'Documents'))

# build the tarball
msg('Archiving Phoenix docset...')
rootname = "wxPython-docset-{}".format(cfg.VERSION)
tarfilename = "dist/{}.tar.gz".format(rootname)
if os.path.exists(tarfilename):
os.remove(tarfilename)
tarball = tarfile.open(name=tarfilename, mode="w:gz")
tarball.add(opj('dist', name+'.docset'), name+'.docset', filter=_setTarItemPerms)
tarball.close()

if options.upload:
uploadPackage(tarfilename, options)

msg("Docset file built at %s" % tarfilename)



def _removeSidebar(path):
"""
Expand Down

0 comments on commit cbb2872

Please sign in to comment.