Skip to content

Fixes #109 and add iterator to VersionInfo#124

Merged
s-celles merged 1 commit intopython-semver:masterfrom
tomschr:make-versioninfo-iterable
Mar 24, 2019
Merged

Fixes #109 and add iterator to VersionInfo#124
s-celles merged 1 commit intopython-semver:masterfrom
tomschr:make-versioninfo-iterable

Conversation

@tomschr
Copy link
Member

@tomschr tomschr commented Mar 24, 2019

This PR is based on #109 by Karol Werner and contains:

  • Add Karol to the CONTRIBUTORS file and added him as primary author.
  • Use version fixture in test function test_version_info_should_be_iterable.
  • I've deviated from Karol's test function a bit and avoided the "private" _astuple() function and created the tuple manually.
  • This PR does not contains a conflict. 😉

I think, Karol's idea is useful as it allows to create a sequence with just tuple(version) or list(version) without using the (kind of) "private" member function _astuple().

If the maintainers of this project find it useful, I suggest to close #109 as well (as it is related and contains a conflict).

* Add Karl to CONTRIBUTORS
* Use version fixture in test function test_version_info_should_be_iterable

based on the work of Karol Werner in PR python-semver#109
@s-celles
Copy link
Member

Thanks @tomschr and @ppkt for this work

@s-celles s-celles merged commit 373af82 into python-semver:master Mar 24, 2019
@tomschr
Copy link
Member Author

tomschr commented Mar 24, 2019

Wow, that was quick! 😆 Thanks! 👍

@tomschr tomschr deleted the make-versioninfo-iterable branch March 24, 2019 14:45
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.

2 participants