Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gem.json and project.json version updates #14112

Conversation

AMZN-alexpete
Copy link
Contributor

What does this PR do?

In an effort to secure world peace I present this finely crafted set of changes.

Though these changes may seem related to o3de/sig-core#44 they are in-fact designed to inspire a generation and bring about version 1.0.0 of ... something ... as they same in marines, "semverfy"

  • Updated gem.json files to have a version field set to "0.0.0"
  • Updated project.json files to have a version field set to "1.0.0"
  • Updated templates and O3DE CLI to allow setting these values upon creation

How was this PR tested?

  • create a gem and project and examined the gem.json and project.json output to confirm the default versions were used
  • ran updated O3DE CLI unit tests

Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
@AMZN-alexpete AMZN-alexpete requested review from a team as code owners January 19, 2023 01:13
@AMZN-alexpete AMZN-alexpete requested review from AMZN-Phil, lemonade-dm and tkothadev and removed request for a team January 19, 2023 01:13
Comment on lines 2636 to 2637
create_project_subparser.add_argument('-v', '--version', type=str, required=False,
help='An optional version. Defaults to 1.0.0')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the default is 1.0.0, why isn't it set here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also -v is normally using for a verbose option as it relates to logginc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be, I mostly tried to keep the defaults in the same location - which are currently in the create_project function.

Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
…oject-json-version-updates

Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>

# Conflicts:
#	scripts/o3de/o3de/utils.py
Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
@AMZN-alexpete AMZN-alexpete merged commit 8b5391e into o3de:development Jan 19, 2023
@AMZN-alexpete AMZN-alexpete deleted the Prism/gem-project-json-version-updates branch January 19, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants