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

Add diff method to AwesomeVersion to list out changes between 2 objects #185

Merged
merged 6 commits into from
Sep 15, 2022

Conversation

ludeeus
Copy link
Owner

@ludeeus ludeeus commented Sep 15, 2022

Proposed change

Adds a diff method to AwesomeVersion that will list out changes between 2 objects.
Currently, these properties are available as boolean properties:

  • major (major/year)
  • minor
  • patch (patch/micro)
  • modifier
  • strategy
>>> from awesomeversion import AwesomeVersion
>>> print(AwesomeVersion("2022.9.3").diff("2022.9.4"))
AwesomeVersionDiff(major=False, minor=False, patch=True, modifier=False, strategy=False)

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (which adds functionalit)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • Local tests pass.
  • There is no commented out code in this PR.
  • The code has been formatted using Black (make black)
  • Tests have been added to verify that the new code works.

@ludeeus ludeeus enabled auto-merge (squash) September 15, 2022 09:57
@ludeeus ludeeus merged commit e7dce59 into main Sep 15, 2022
@ludeeus ludeeus deleted the diff branch September 15, 2022 10:05
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.

1 participant