diff --git a/README.md b/README.md
index 0281d3b296..b1a715dbfe 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
[](https://dev.azure.com/onnxruntime/onnxruntime/_build/latest?definitionId=12)
[](https://dev.azure.com/onnxruntime/onnxruntime/_build/latest?definitionId=13)
-**ONNX Runtime** is a performance-focused complete scoring engine for Open Neural Network Exchange (ONNX) models, with an open extensible architecture to continually address the latest developments in AI and Deep Learning. ONNX Runtime stays up to date with the ONNX standard with complete implementation of **all** ONNX operators, and supports all ONNX releases (1.2+) with both future and backwards compatibility. **As of May 2019, ONNX Runtime supports up to ONNX 1.5 (Opset 10).**
+**ONNX Runtime** is a performance-focused complete scoring engine for Open Neural Network Exchange (ONNX) models, with an open extensible architecture to continually address the latest developments in AI and Deep Learning. ONNX Runtime stays up to date with the ONNX standard with complete implementation of **all** ONNX operators, and supports all ONNX releases (1.2+) with both future and backwards compatibility. Please refer to [this page](docs/Versioning.md) for ONNX opset compatibility details.
[ONNX](https://onnx.ai) is an interoperable format for machine learning models supported by various ML and DNN frameworks and tools. The universal format makes it easier to interoperate between frameworks and maximize the reach of hardware optimization investments.
diff --git a/VERSION_NUMBER b/VERSION_NUMBER
index 1d0ba9ea18..8f0916f768 100644
--- a/VERSION_NUMBER
+++ b/VERSION_NUMBER
@@ -1 +1 @@
-0.4.0
+0.5.0
diff --git a/docs/Versioning.md b/docs/Versioning.md
index ba307e7090..d646d777d8 100644
--- a/docs/Versioning.md
+++ b/docs/Versioning.md
@@ -32,6 +32,7 @@ For more details on ONNX Release versions, see [this page](https://github.com/on
| ONNX Runtime release version | ONNX release version | ONNX opset version | ONNX ML opset version | Supported ONNX IR version | [WinML compatibility](https://docs.microsoft.com/en-us/windows/ai/windows-ml/)|
|------------------------------|--------------------|--------------------|----------------------|------------------|------------------|
+| 0.5.0 | 1.5 | 10 | 1 | 5 | -- |
| 0.4.0 | 1.5 | 10 | 1 | 5 | -- |
| 0.3.1
0.3.0 | 1.4 | 9 | 1 | 3 | -- |
| 0.2.1
0.2.0 | 1.3 | 8 | 1 | 3 | 1903 (19H1)+ |
diff --git a/docs/python/README.rst b/docs/python/README.rst
index 756383579e..0fe76b1624 100644
--- a/docs/python/README.rst
+++ b/docs/python/README.rst
@@ -52,6 +52,11 @@ replaces *scikit-learn* to compute the predictions.
Changes
-------
+0.5.0
+^^^^^
+
+Release Notes : https://github.com/Microsoft/onnxruntime/releases/tag/v0.5.0
+
0.4.0
^^^^^
diff --git a/onnxruntime/__init__.py b/onnxruntime/__init__.py
index ad73baf144..29e8f5fb33 100644
--- a/onnxruntime/__init__.py
+++ b/onnxruntime/__init__.py
@@ -12,7 +12,7 @@ community, it supports traditional ML models as well
as Deep Learning algorithms in the
`ONNX-ML format `_.
"""
-__version__ = "0.4.0"
+__version__ = "0.5.0"
__author__ = "Microsoft"
from onnxruntime.capi import onnxruntime_validation
diff --git a/package/rpm/onnxruntime.spec b/package/rpm/onnxruntime.spec
index 6fbdec8851..cbf7013ca5 100644
--- a/package/rpm/onnxruntime.spec
+++ b/package/rpm/onnxruntime.spec
@@ -1,5 +1,5 @@
Name: onnxruntime
-Version: 0.4.0
+Version: 0.5.0
Release: 1%{?dist}
Summary: onnxruntime
diff --git a/tools/python/update_version.py b/tools/python/update_version.py
index 340f66bb2e..2aa4712823 100755
--- a/tools/python/update_version.py
+++ b/tools/python/update_version.py
@@ -13,18 +13,23 @@ def update_version():
for line in lines:
if line.startswith('|'):
sections = line.split('|')
- if len(sections) == 6 and sections[1].strip()[0].isdigit() :
+ if len(sections) == 8 and sections[1].strip()[0].isdigit() :
current_version = sections[1].strip()
break
+ print ('Current version of ORT seems to be: ' + current_version)
if version != current_version:
with open(file_path, 'w') as f:
for i,line in enumerate(lines):
f.write(line)
if line.startswith('|--'):
sections = lines[i+1].split('|')
- sections[1] = ' ' + version + ' '
- new_line = '|'.join(sections)
- f.write(new_line)
+ # Make sure there are no 'False Positive' version additions
+ # by making sure the line we are building a new line from
+ # contains the current_version
+ if len(sections) > 1 and sections[1].strip() == current_version:
+ sections[1] = ' ' + version + ' '
+ new_line = '|'.join(sections)
+ f.write(new_line)
lines = []
current_version = ''
file_path = os.path.join(cwd, '..', '..', 'docs', 'python', 'README.rst')
@@ -43,6 +48,7 @@ def update_version():
if inserted == False and len(sections) == 3 and sections[0].isdigit() and sections[1].isdigit() and sections[2].isdigit():
f.write(version + '\n')
f.write('^^^^^\n\n')
+ f.write('Release Notes : https://github.com/Microsoft/onnxruntime/releases/tag/v' + version.strip() + '\n\n')
inserted = True
f.write(line)
lines = []