mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-06 03:40:18 +00:00
update release version
This commit is contained in:
parent
426f791e7a
commit
031be18e26
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "TinyUSB",
|
||||
"version": "0.15.0",
|
||||
"version": "0.16.0",
|
||||
"description": "TinyUSB is an open-source cross-platform USB Host/Device stack for embedded system, designed to be memory-safe with no dynamic allocation and thread-safe with all interrupt events are deferred then handled in the non-ISR task function.",
|
||||
"keywords": "usb, host, device",
|
||||
"repository":
|
||||
|
@ -13,5 +13,6 @@ repo.versions:
|
||||
"0.13.0": "0.13.0"
|
||||
"0.14.0": "0.14.0"
|
||||
"0.15.0": "0.15.0"
|
||||
"0-latest": "0.15.0"
|
||||
"0.16.0": "0.16.0"
|
||||
"0-latest": "0.16.0"
|
||||
"0-dev": "0.0.0"
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "common/tusb_compiler.h"
|
||||
|
||||
#define TUSB_VERSION_MAJOR 0
|
||||
#define TUSB_VERSION_MINOR 15
|
||||
#define TUSB_VERSION_MINOR 16
|
||||
#define TUSB_VERSION_REVISION 0
|
||||
#define TUSB_VERSION_STRING TU_STRING(TUSB_VERSION_MAJOR) "." TU_STRING(TUSB_VERSION_MINOR) "." TU_STRING(TUSB_VERSION_REVISION)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import re
|
||||
|
||||
version = '0.15.0'
|
||||
version = '0.16.0'
|
||||
|
||||
print('version {}'.format(version))
|
||||
ver_id = version.split('.')
|
||||
@ -9,13 +9,11 @@ ver_id = version.split('.')
|
||||
# src/tusb_option.h
|
||||
###################
|
||||
f_option_h = 'src/tusb_option.h'
|
||||
|
||||
with open(f_option_h) as f:
|
||||
fdata = f.read()
|
||||
|
||||
fdata = re.sub(r'(#define TUSB_VERSION_MAJOR *) \d+', r"\1 {}".format(ver_id[0]), fdata)
|
||||
fdata = re.sub(r'(#define TUSB_VERSION_MINOR *) \d+', r"\1 {}".format(ver_id[1]), fdata)
|
||||
fdata = re.sub(r'(#define TUSB_VERSION_REVISION *) \d+', r"\1 {}".format(ver_id[2]), fdata)
|
||||
fdata = re.sub(r'(#define TUSB_VERSION_MAJOR *) \d+', r"\1 {}".format(ver_id[0]), fdata)
|
||||
fdata = re.sub(r'(#define TUSB_VERSION_MINOR *) \d+', r"\1 {}".format(ver_id[1]), fdata)
|
||||
fdata = re.sub(r'(#define TUSB_VERSION_REVISION *) \d+', r"\1 {}".format(ver_id[2]), fdata)
|
||||
|
||||
# Write the file out again
|
||||
with open(f_option_h, 'w') as f:
|
||||
@ -33,6 +31,17 @@ if fdata.find(version) < 0:
|
||||
with open(f_repository_yml, 'w') as f:
|
||||
f.write(fdata)
|
||||
|
||||
###################
|
||||
# library.json
|
||||
###################
|
||||
f_library_json = 'library.json'
|
||||
with open(f_library_json) as f:
|
||||
fdata = f.read()
|
||||
fdata = re.sub(r'( {4}"version":) "\d+\.\d+\.\d+"', rf'\1 "{version}"', fdata)
|
||||
|
||||
with open(f_library_json, 'w') as f:
|
||||
f.write(fdata)
|
||||
|
||||
###################
|
||||
# docs/info/changelog.rst
|
||||
###################
|
||||
|
Loading…
x
Reference in New Issue
Block a user