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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix version parsing #6999

Merged
merged 18 commits into from Apr 22, 2021
Merged

fix version parsing #6999

merged 18 commits into from Apr 22, 2021

Conversation

Borda
Copy link
Member

@Borda Borda commented Apr 13, 2021

What does this PR do?

resolving some compatibility issue with aplha versions

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

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:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?

Make sure you had fun coding 馃檭

@Borda Borda added bug Something isn't working priority: 1 Medium priority task labels Apr 13, 2021
@Borda Borda added this to the 1.2.x milestone Apr 13, 2021
@Borda Borda enabled auto-merge (squash) April 13, 2021 22:27
pytorch_lightning/utilities/imports.py Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@Borda Borda requested a review from carmocca April 13, 2021 23:27
@codecov
Copy link

codecov bot commented Apr 14, 2021

Codecov Report

Merging #6999 (85c7295) into master (1e4bc69) will decrease coverage by 5%.
The diff coverage is 83%.

@@           Coverage Diff           @@
##           master   #6999    +/-   ##
=======================================
- Coverage      92%     87%    -5%     
=======================================
  Files         197     197            
  Lines       12617   12615     -2     
=======================================
- Hits        11605   10997   -608     
- Misses       1012    1618   +606     

Copy link
Contributor

@tchaton tchaton left a comment

Choose a reason for hiding this comment

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

LGTM !

@mergify mergify bot removed the has conflicts label Apr 16, 2021
@Borda Borda modified the milestones: 1.2.x, 1.3 Apr 18, 2021
Borda and others added 6 commits April 19, 2021 23:48
Co-authored-by: Carlos Mochol铆 <carlossmocholi@gmail.com>
@mergify mergify bot removed the has conflicts label Apr 21, 2021
@kaushikb11
Copy link
Contributor

@Borda Any update on this?

@Borda Borda changed the title fix version + yapf fix version parsing Apr 21, 2021
@Borda Borda added the ready PRs ready to be merged label Apr 22, 2021
@Borda Borda merged commit ef5feac into master Apr 22, 2021
@Borda Borda deleted the refactor/version branch April 22, 2021 18:25
kaushikb11 pushed a commit to kaushikb11/pytorch-lightning that referenced this pull request Apr 22, 2021
lexierule pushed a commit that referenced this pull request Apr 22, 2021
Comment on lines +57 to +58
pkg_version = Version(pkg.__version__)
except TypeError:
Copy link
Contributor

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

Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: 1 Medium priority task ready PRs ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants