Skip to content

Commit 068d57c

Browse files
author
Chris Elion
committed
update versions for patch releae
1 parent 92163c8 commit 068d57c

File tree

6 files changed

+37
-9
lines changed

6 files changed

+37
-9
lines changed

com.unity.ml-agents/Runtime/Academy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class Academy : IDisposable
6868
/// Unity package version of com.unity.ml-agents.
6969
/// This must match the version string in package.json and is checked in a unit test.
7070
/// </summary>
71-
internal const string k_PackageVersion = "1.0.0-preview";
71+
internal const string k_PackageVersion = "1.0.1-preview";
7272

7373
const int k_EditorTrainingPort = 5004;
7474

com.unity.ml-agents/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "com.unity.ml-agents",
33
"displayName": "ML Agents",
4-
"version": "1.0.0-preview",
4+
"version": "1.0.1-preview",
55
"unity": "2018.4",
66
"description": "Use state-of-the-art machine learning to create intelligent character behaviors in any Unity environment (games, robotics, film, etc.).",
77
"dependencies": {
88
"com.unity.barracuda": "0.7.0-preview"
99
}
10-
}
10+
}

gym-unity/gym_unity/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Version of the library that will be used to upload to pypi
2-
__version__ = "0.16.0"
2+
__version__ = "0.16.1"
33

44
# Git tag that will be checked to determine whether to trigger upload to pypi
5-
__release_tag__ = "release_1"
5+
__release_tag__ = "release_2"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Version of the library that will be used to upload to pypi
2-
__version__ = "0.16.0"
2+
__version__ = "0.16.1"
33

44
# Git tag that will be checked to determine whether to trigger upload to pypi
5-
__release_tag__ = "release_1"
5+
__release_tag__ = "release_2"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Version of the library that will be used to upload to pypi
2-
__version__ = "0.16.0"
2+
__version__ = "0.16.1"
33

44
# Git tag that will be checked to determine whether to trigger upload to pypi
5-
__release_tag__ = "release_1"
5+
__release_tag__ = "release_2"

utils/validate_versions.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,30 @@ def set_academy_version_string(new_version):
117117
f.writelines(lines)
118118

119119

120+
def print_release_tag_commands(
121+
python_version: str, csharp_version: str, release_tag: str
122+
):
123+
python_tag = f"python-packages_{python_version}"
124+
csharp_tag = f"com.unity.ml-agents_{csharp_version}"
125+
docs_tag = f"{release_tag}_docs"
126+
print(
127+
f"""
128+
###
129+
Use these commands to create the tags after the release:
130+
###
131+
git checkout {release_tag}
132+
git tag -f latest_release
133+
git push -f origin latest_release
134+
git tag -f {docs_tag}
135+
git push -f origin {docs_tag}
136+
git tag {python_tag}
137+
git push -f origin {python_tag}
138+
git tag {csharp_tag}
139+
git push -f origin {csharp_tag}
140+
"""
141+
)
142+
143+
120144
if __name__ == "__main__":
121145
parser = argparse.ArgumentParser()
122146
parser.add_argument("--python-version", default=None)
@@ -131,6 +155,10 @@ def set_academy_version_string(new_version):
131155
if args.csharp_version:
132156
print(f"Updating C# package to version {args.csharp_version}")
133157
set_version(args.python_version, args.csharp_version, args.release_tag)
158+
if args.release_tag is not None:
159+
print_release_tag_commands(
160+
args.python_version, args.csharp_version, args.release_tag
161+
)
134162
else:
135163
ok = check_versions()
136164
return_code = 0 if ok else 1

0 commit comments

Comments
 (0)