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

datawrangler.__version__ reports incorrect version #29

Open
paxtonfitzpatrick opened this issue Oct 22, 2023 · 0 comments
Open

datawrangler.__version__ reports incorrect version #29

paxtonfitzpatrick opened this issue Oct 22, 2023 · 0 comments

Comments

@paxtonfitzpatrick
Copy link
Member

paxtonfitzpatrick commented Oct 22, 2023

Looks like the version string for the package metadata was updated for the v0.2.2 release

version='0.2.2',

but the one stored in the __version__ attribute wasn't

__version__ = '0.2.1'

If you want, you can make it so that the version string is stored in only one place (your setup file) by instead setting the __version__ attribute with:

import sys
if sys.version_info < (3, 8):
    import importlib_metadata as metadata
else:
    from importlib import metadata


__version__ = metadata.version('pydata-wrangler')
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

No branches or pull requests

1 participant