[meta] clean deprecated bumper script (#741)

This commit is contained in:
Julien Mailleret 2020-11-05 17:02:53 +01:00 committed by GitHub
parent c91892ac92
commit 6901f7141b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,36 +0,0 @@
#!/usr/bin/env python3
import fileinput
import os
"""
This script is used to bump elasticsearch versions before a new release
Usage:
- Change the values of `old_versions` and `new_versions``
- Run the script: `./bumper.py`
- That's all
"""
os.chdir(os.path.join(os.path.dirname(__file__), '..'))
old_versions = {
6: '6.8.12',
7: '7.9.1',
}
new_versions = {
6: '6.8.12',
7: '7.9.2',
}
files = [
'README.md',
'defaults/main.yml',
'.kitchen.yml',
]
for major, version in old_versions.items():
for file in files:
print(file)
for line in fileinput.input([file], inplace=True):
print(line.replace(version, new_versions[major]), end='')