| 1 |
#!/usr/bin/env python |
| 2 |
|
| 3 |
|
| 4 |
__license__ = 'GPL v3' |
| 5 |
__copyright__ = '2009, Kovid Goyal <[email protected]>' |
| 6 |
__docformat__ = 'restructuredtext en' |
| 7 |
|
| 8 |
__all__ = [ |
| 9 |
'bootstrap', |
| 10 |
'browser_deps', |
| 11 |
'build', |
| 12 |
'build_dep', |
| 13 |
'cacerts', |
| 14 |
'check', |
| 15 |
'check_all', |
| 16 |
'develop', |
| 17 |
'export_packages', |
| 18 |
'extdev', |
| 19 |
'fmt', |
| 20 |
'get_translations', |
| 21 |
'git_hooks', |
| 22 |
'git_version', |
| 23 |
'gui', |
| 24 |
'hyphenation', |
| 25 |
'install', |
| 26 |
'iso639', |
| 27 |
'iso3166', |
| 28 |
'iso_data', |
| 29 |
'liberation_fonts', |
| 30 |
'linux', |
| 31 |
'linux64', |
| 32 |
'linuxarm64', |
| 33 |
'man_pages', |
| 34 |
'manual', |
| 35 |
'mathjax', |
| 36 |
'osx', |
| 37 |
'piper_voices', |
| 38 |
'pot', |
| 39 |
'publish', |
| 40 |
'publish_betas', |
| 41 |
'publish_preview', |
| 42 |
'rapydscript', |
| 43 |
'recent_uas', |
| 44 |
'resources', |
| 45 |
'reupload', |
| 46 |
'sdist', |
| 47 |
'stage1', |
| 48 |
'stage2', |
| 49 |
'stage3', |
| 50 |
'stage4', |
| 51 |
'stage5', |
| 52 |
'stylelint', |
| 53 |
'tag_release', |
| 54 |
'test', |
| 55 |
'test_rs', |
| 56 |
'translations', |
| 57 |
'type_check', |
| 58 |
'upgrade_source_code', |
| 59 |
'upload_demo', |
| 60 |
'upload_installers', |
| 61 |
'upload_to_server', |
| 62 |
'upload_user_manual', |
| 63 |
'win', |
| 64 |
'win64', |
| 65 |
'xwin', |
| 66 |
] |
| 67 |
|
| 68 |
from setup.installers import OSX, BuildDep, ExportPackages, ExtDev, Linux, Linux64, LinuxArm64, Win, Win64 |
| 69 |
|
| 70 |
linux, linux64, linuxarm64 = Linux(), Linux64(), LinuxArm64() |
| 71 |
win, win64 = Win(), Win64() |
| 72 |
osx = OSX() |
| 73 |
extdev = ExtDev() |
| 74 |
build_dep = BuildDep() |
| 75 |
export_packages = ExportPackages() |
| 76 |
|
| 77 |
from setup.iso_codes import iso_data |
| 78 |
from setup.translations import ISO639, ISO3166, POT, GetTranslations, Translations |
| 79 |
|
| 80 |
pot = POT() |
| 81 |
translations = Translations() |
| 82 |
get_translations = GetTranslations() |
| 83 |
iso639 = ISO639() |
| 84 |
iso3166 = ISO3166() |
| 85 |
|
| 86 |
from setup.csslint import CSSLint |
| 87 |
|
| 88 |
stylelint = CSSLint() |
| 89 |
|
| 90 |
from setup.build import Build |
| 91 |
|
| 92 |
build = Build() |
| 93 |
|
| 94 |
from setup.mathjax import MathJax |
| 95 |
|
| 96 |
mathjax = MathJax() |
| 97 |
|
| 98 |
from setup.hyphenation import Hyphenation |
| 99 |
|
| 100 |
hyphenation = Hyphenation() |
| 101 |
|
| 102 |
from setup.piper import PiperVoices |
| 103 |
|
| 104 |
piper_voices = PiperVoices() |
| 105 |
|
| 106 |
from setup.liberation import LiberationFonts |
| 107 |
|
| 108 |
liberation_fonts = LiberationFonts() |
| 109 |
|
| 110 |
from setup.git_hooks import GitHooks |
| 111 |
|
| 112 |
git_hooks = GitHooks() |
| 113 |
|
| 114 |
from setup.git_version import GitVersion |
| 115 |
|
| 116 |
git_version = GitVersion() |
| 117 |
|
| 118 |
from setup.install import Bootstrap, Develop, Install, Sdist |
| 119 |
|
| 120 |
develop = Develop() |
| 121 |
install = Install() |
| 122 |
sdist = Sdist() |
| 123 |
bootstrap = Bootstrap() |
| 124 |
|
| 125 |
from setup.browser_deps import BrowserDeps |
| 126 |
|
| 127 |
browser_deps = BrowserDeps() |
| 128 |
|
| 129 |
from setup.gui import GUI |
| 130 |
|
| 131 |
gui = GUI() |
| 132 |
|
| 133 |
from setup.check import Check, CheckAll, UpgradeSourceCode |
| 134 |
|
| 135 |
check = Check() |
| 136 |
check_all = CheckAll() |
| 137 |
upgrade_source_code = UpgradeSourceCode() |
| 138 |
|
| 139 |
from setup.test import Test, TestRS |
| 140 |
|
| 141 |
test = Test() |
| 142 |
test_rs = TestRS() |
| 143 |
|
| 144 |
from setup.type_check import TypeCheck |
| 145 |
|
| 146 |
type_check = TypeCheck() |
| 147 |
|
| 148 |
|
| 149 |
from setup.fmt import AutoFormat |
| 150 |
|
| 151 |
fmt = AutoFormat() |
| 152 |
|
| 153 |
from setup.resources import CACerts, RapydScript, RecentUAs, Resources |
| 154 |
|
| 155 |
resources = Resources() |
| 156 |
cacerts = CACerts() |
| 157 |
recent_uas = RecentUAs() |
| 158 |
rapydscript = RapydScript() |
| 159 |
|
| 160 |
from setup.publish import ManPages, Manual, Publish, PublishBetas, PublishPreview, Stage1, Stage2, Stage3, Stage4, Stage5, TagRelease |
| 161 |
|
| 162 |
manual = Manual() |
| 163 |
tag_release = TagRelease() |
| 164 |
stage1 = Stage1() |
| 165 |
stage2 = Stage2() |
| 166 |
stage3 = Stage3() |
| 167 |
stage4 = Stage4() |
| 168 |
stage5 = Stage5() |
| 169 |
publish = Publish() |
| 170 |
publish_betas = PublishBetas() |
| 171 |
publish_preview = PublishPreview() |
| 172 |
man_pages = ManPages() |
| 173 |
|
| 174 |
from setup.upload import ReUpload, UploadDemo, UploadInstallers, UploadToServer, UploadUserManual |
| 175 |
|
| 176 |
upload_user_manual = UploadUserManual() |
| 177 |
upload_demo = UploadDemo() |
| 178 |
upload_to_server = UploadToServer() |
| 179 |
upload_installers = UploadInstallers() |
| 180 |
reupload = ReUpload() |
| 181 |
|
| 182 |
|
| 183 |
from setup.xwin import XWin |
| 184 |
|
| 185 |
xwin = XWin() |
| 186 |
|
| 187 |
commands = {} |
| 188 |
for x in __all__: |
| 189 |
commands[x] = locals()[x] |
| 190 |
|
| 191 |
command_names = dict(zip(commands.values(), commands.keys())) |