-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
fix version parsing #6999
fix version parsing #6999
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6999 +/- ##
=======================================
- Coverage 92% 87% -5%
=======================================
Files 197 197
Lines 12617 12615 -2
=======================================
- Hits 11605 10997 -608
- Misses 1012 1618 +606 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
Co-authored-by: Carlos Mocholí <[email protected]>
@Borda Any update on this? |
pkg_version = Version(pkg.__version__) | ||
except TypeError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Borda this breaks if the pkg doesn't have __version__
defined. the previously caught attribute error is now raised. i'm seeing this with torchtext which doesn't seem to export the version info from source: https://github.com/pytorch/text/blob/ccebe7ced8d2229b98e39546fcfbf3e233bd70d9/torchtext/__init__.py#L10-L14
cc @parmeet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, this seems as torchtext
as they import own module version
which is missing... Also their git_version
is gone
What does this PR do?
resolving some compatibility issue with aplha versions
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃