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

Improve __init__ #58

Merged
merged 2 commits into from
Jun 24, 2021
Merged

Improve __init__ #58

merged 2 commits into from
Jun 24, 2021

Conversation

zmoon
Copy link
Contributor

@zmoon zmoon commented Jun 17, 2021

I had done python -m pydoc xmovie and saw that the version there didn't match what it should be and the top level names weren't listed. Fixed by importing __version__ and adding __all__.

@jbusecke
Copy link
Owner

Ah nice catch. Thanks @zmoon. I would like to default to 'unknown' rather than 999, if that is ok with you?

@codecov
Copy link

codecov bot commented Jun 24, 2021

Codecov Report

Merging #58 (c347938) into master (eb5eb32) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #58   +/-   ##
=======================================
  Coverage   78.70%   78.70%           
=======================================
  Files           3        3           
  Lines         324      324           
  Branches       58       58           
=======================================
  Hits          255      255           
  Misses         46       46           
  Partials       23       23           
Flag Coverage Δ
unittests 78.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb5eb32...c347938. Read the comment docs.

@jbusecke jbusecke merged commit 247da86 into jbusecke:master Jun 24, 2021
from ._version import __version__

except ModuleNotFoundError:
__version__ == "unknown"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jbusecke this should have been normal =, my bad

@jbusecke jbusecke mentioned this pull request Jun 24, 2021
@jbusecke
Copy link
Owner

Got it. Ill fix that really quick.

@zmoon
Copy link
Contributor Author

zmoon commented Jun 24, 2021

Thanks!

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