mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-05-04 11:54:43 +00:00
12 lines
245 B
Python
12 lines
245 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
import json
|
||
|
|
import os
|
||
|
|
|
||
|
|
def main():
|
||
|
|
with open('package.json', 'r+') as f:
|
||
|
|
data = json.load(f)
|
||
|
|
f.seek(0)
|
||
|
|
data['version'] = os.environ['TRAVIS_TAG']
|
||
|
|
json.dump(data, f)
|
||
|
|
f.truncate()
|