Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Sep 3, 2024
1 parent bc10805 commit 0ce8147
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def fix_liclipse_contents_version(contents, version):
bugfixversion = int(re.sub(r'^\d+\.\d+\.(\d+)', r'\1', version))
nextversion = re.sub(r'^(\d+\.\d+\.)\d+', r'\1', version) + str(bugfixversion + 1)

contents = re.sub(r'(bundle-version=")\[\d+\.\d+\.\d+,\d+\.\d+\.\d+\)"', r'\1[%s,%s)"' % (version, nextversion), contents)
contents = re.sub(r'((com|org)\.python\.pydev(\.\w+)?;)(bundle-version=")\[\d+\.\d+\.\d+,\d+\.\d+\.\d+\)"', r'\1\4[%s,%s)"' % (version, nextversion), contents)
contents = re.sub(r'(<feature id="org\.python\.pydev\.feature" version=")(\d+\.\d+\.\d+)(\.qualifier"/>)', r'\g<1>%s\3' % (version,), contents)
return contents
Expand All @@ -93,7 +92,7 @@ def fix_pydev_for_vscode_contents_version(contents, version):
bugfixversion = int(re.sub(r'^\d+\.\d+\.(\d+)', r'\1', version))
nextversion = re.sub(r'^(\d+\.\d+\.)\d+', r'\1', version) + str(bugfixversion + 1)

contents = re.sub(r'((com|org)\.python\.pydev(\.\w+)?;)(bundle-version=")\[\d+\.\d+\.\d+,\d+\.\d+\.\d+\)"', r'\1\4[%s,%s)"' % (version, nextversion), contents)
contents = re.sub(r'((com|org)\.python\.pydev(\.\w+)?;)(bundle-version=")\[\d+\.\d+\.\d+,\s?\d+\.\d+\.\d+\)"', r'\1\4[%s,%s)"' % (version, nextversion), contents)

# (core|ast|shared_core|parser|analysis)
# <plugin id="org.python.pydev.core" version="12.1.0.qualifier"/>
Expand Down

0 comments on commit 0ce8147

Please sign in to comment.