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

[INDY-1992] Adds base classes to support versioning routine #1110

Merged

Conversation

andkononykhin
Copy link
Contributor

Changes:

  • classes to abstract version API
  • update for version field validation
  • new dependency packaging==19.0 to support PEP440 (PyPI versioning)

Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>

max_length = 20
legacy_validator = VersionField(components_number=(2, 3,), max_length=max_length)
validator = VersionField(version_cls=VersionTestCls, max_length=max_length)
Copy link
Contributor

Choose a reason for hiding this comment

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

But legacy validation also uses DigitDotVersion, so is it intentional that we validate by the same Version Validator?
Should we also parametrize using SemVerReleaseVersion?

)


def test_version_base_abstracts(version_base_required):
Copy link
Contributor

Choose a reason for hiding this comment

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

What do we test by this test? Why don't we instantiate real instances of Version classes instead of dealing with Abstracts and class internals?

@ashcherbakov ashcherbakov merged commit 0a42183 into hyperledger:master Mar 5, 2019
@andkononykhin andkononykhin deleted the INDY-1992-versioning-base branch March 7, 2019 15:43
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.

None yet

2 participants