__license__ = "GPL v3" __copyright__ = "2014, Jim Miller" __docformat__ = "restructuredtext en" import os from glob import glob from makezip import createZipFile if __name__ == "__main__": filename = "EpubMerge.zip" exclude = [ "*.pyc", "*~", "*.xcf", "*[0-9].png", "makezip.py", "makeplugin.py", "*.po", "*.pot", "*default.mo", "*Thumbs.db", ] # from top dir. 'w' for overwrite # from calibre-plugin dir. 'a' for append files = ["images", "translations"] files.extend(glob("*.py")) files.extend(glob("plugin-import-name-*.txt")) createZipFile(filename, "w", files, exclude=exclude)
if __name__ == "__main__": filename = "FanFicFare.zip" exclude = [ '*.pyc', '*~', '*.xcf', '*[0-9].png', '*.po', '*.pot', '*default.mo', '*Thumbs.db' ] os.chdir('calibre-plugin') files = [ 'plugin-defaults.ini', 'plugin-example.ini', 'about.html', 'images', 'translations' ] files.extend(glob('*.py')) files.extend(glob('plugin-import-name-*.txt')) # 'w' for overwrite createZipFile("../" + filename, "w", files, exclude=exclude) os.chdir('../included_dependencies') files = ['bs4', 'chardet', 'html2text', 'soupsieve', 'backports'] # calibre has it's own copies of these that precedence anyway: # 'html5lib','webencodings' # webencodings is only needed by versions of html5lib after 0.9x7 # 'a' for append createZipFile("../" + filename, "a", files, exclude=exclude) os.chdir('..') # 'a' for append files = ['fanficfare'] createZipFile(filename, "a", files, exclude=exclude)
#!/usr/bin/python # -*- coding: utf-8 -*- __license__ = 'GPL v3' __copyright__ = '2014, Jim Miller' __docformat__ = 'restructuredtext en' import os from glob import glob from makezip import createZipFile if __name__ == "__main__": filename = "EpubSplit.zip" exclude = [ '*.pyc', '*~', '*.xcf', '*[0-9].png', 'BeautifulSoup.py', 'makezip.py', 'makeplugin.py', '*.po', '*.pot', '*default.mo' ] # from top dir. 'w' for overwrite #from calibre-plugin dir. 'a' for append files = ['images', 'translations'] files.extend(glob('*.py')) files.extend(glob('plugin-import-name-*.txt')) createZipFile(filename, "w", files, exclude=exclude)
from glob import glob from makezip import createZipFile if __name__=="__main__": filename="FanFicFare.zip" exclude=['*.pyc','*~','*.xcf','*[0-9].png','*.po','*.pot','*default.mo','*Thumbs.db'] os.chdir('calibre-plugin') files=['plugin-defaults.ini','plugin-example.ini','about.html', 'images','translations'] files.extend(glob('*.py')) files.extend(glob('plugin-import-name-*.txt')) # 'w' for overwrite createZipFile("../"+filename,"w", files, exclude=exclude) os.chdir('../included_dependencies') files=['gif.py','bs4','chardet','html2text'] # calibre has it's own copies of these that precedence anyway: # 'six.py','html5lib','webencodings' # webencodings is only needed by versions of html5lib after 0.9x7 # 'a' for append createZipFile("../"+filename,"a", files, exclude=exclude) os.chdir('..') # 'a' for append files=['fanficfare']
#!/usr/bin/python # -*- coding: utf-8 -*- __license__ = 'GPL v3' __copyright__ = '2020, Jim Miller' __docformat__ = 'restructuredtext en' import os from glob import glob import makezip if __name__=="__main__": filename="SplitMergeNew.zip" exclude=['*.pyc','*~','*.xcf','makezip.py','makeplugin.py','*.po','*.pot','*.notes','*default.mo'] # from top dir. 'w' for overwrite #from calibre-plugin dir. 'a' for append files=['translations',] files.extend(glob('*.py')) files.extend(glob('plugin-import-name-*.txt')) makezip.createZipFile(filename,"w", files,exclude=exclude)