Sha256: ba28cdc3f417e493783c254add5c47d49b1a95c5e6a9b9a0c82651f71c7875f4
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
#!/usr/bin/env python from distutils.version import StrictVersion as V import os import re from subprocess import check_output, check_call import sys # the first version we started maintaining as a component first_version = V('5.20') blacklist_tags = ['v3.02', '5.13.4'] tools = os.path.dirname(os.path.abspath(__file__)) repo_root = os.path.dirname(tools) tag_sh = os.path.join(tools, 'cm-tags.sh') build_sh = os.path.join(tools, 'build.sh') lines = check_output(['npm', 'show', 'codemirror@*', 'version']).decode('utf8').splitlines() # lines of the form "codemirror@version 'version'" npm_versions = [ line.split()[0].split('@')[1] for line in lines ] tags = set(check_output(['git', 'tag'], cwd=repo_root).decode('utf8').split()) built = [] for v in sorted(npm_versions, key=V): if v in tags: print("Already have", v) continue if V(v) < first_version: print("Skipping old version", v) continue print('building', v) check_call([build_sh, v], cwd=repo_root) built.append(v) if built: check_call(['git', 'push', '--tags'], cwd=repo_root)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tui_editor-rails-1.0.2.0 | vendor/assets/components/codemirror/component-tools/update.py |