Skip to content

Commit

Permalink
Bumped versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelalonsojr committed Oct 4, 2024
1 parent b27442f commit aeea945
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion com.unity.ml-agents.extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"unity": "2023.2",
"description": "A source-only package for new features based on ML-Agents",
"dependencies": {
"com.unity.ml-agents": "3.0.0-exp.1",
"com.unity.ml-agents": "3.0.0",
"com.unity.modules.physics": "1.0.0"
}
}
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Academy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public class Academy : IDisposable
/// Unity package version of com.unity.ml-agents.
/// This must match the version string in package.json and is checked in a unit test.
/// </summary>
internal const string k_PackageVersion = "3.0.0-exp.1";
internal const string k_PackageVersion = "3.0.0";

const int k_EditorTrainingPort = 5004;

Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.unity.ml-agents",
"displayName": "ML Agents",
"version": "3.0.0-exp.1",
"version": "3.0.0",
"unity": "2023.2",
"description": "Use state-of-the-art machine learning to create intelligent character behaviors in any Unity environment (games, robotics, film, etc.).",
"dependencies": {
Expand Down
9 changes: 6 additions & 3 deletions utils/validate_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

def _escape_non_none(s: Optional[str]) -> str:
"""
Returns s escaped in quotes if it is non-None, else "None"
Returns s escaped in quotes if it is non-None, els e "None"
Returns s escaped in quotes if it is non-None, els e "None"
:param s:
:return:
"""
Expand Down Expand Up @@ -81,7 +82,9 @@ def set_version(
f.write(new_contents)

if csharp_version is not None:
package_version = f"{csharp_version}-exp.1"
# removed exp.1 tag from version strings since MLA package is a supported package again
# package_version = f"{csharp_version}-exp.1"
package_version = f"{csharp_version}"
if csharp_extensions_version is not None:
# since this has never been promoted we need to keep
# it in preview forever or CI will fail
Expand Down Expand Up @@ -178,7 +181,7 @@ def print_release_tag_commands(
print(f"Updating C# package to version {args.csharp_version}")
if args.csharp_extensions_version:
print(
f"Updating C# extensions package to version {args.csharp_extensions_version}"
f"Updating C# extensions package to version {args.csharp_extensions_version}-exp.1"
)
set_version(
args.python_version,
Expand Down

0 comments on commit aeea945

Please sign in to comment.