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

Provide version number in xcube_cds.__version__ #56

Closed
pont-us opened this issue Nov 9, 2021 · 0 comments · Fixed by #57
Closed

Provide version number in xcube_cds.__version__ #56

pont-us opened this issue Nov 9, 2021 · 0 comments · Fixed by #57
Assignees

Comments

@pont-us
Copy link
Member

pont-us commented Nov 9, 2021

Currently the version number is only provided in xcube_cds.version.version, which is difficult for users to find. In Python, the standard location is <packagename>.__version__. xcube_cds should follow this standard by providing the version number in xcube_cds.__version__.

@pont-us pont-us self-assigned this Nov 9, 2021
@pont-us pont-us changed the title Provide version number in xcube_cds.__version__ Provide version number in xcube_cds.__version__ and xcube.version Nov 9, 2021
@pont-us pont-us changed the title Provide version number in xcube_cds.__version__ and xcube.version Provide version number in xcube_cds.__version__ Nov 9, 2021
pont-us added a commit that referenced this issue Nov 9, 2021
Closes #56.

With this commit, __init__.py sets both xcube_cds.__version__ and
xcube_cds.version to the current version number. Note that
xcube_cds.version therefore no longer references the version module
but rather the version string itself, so any code still referencing
xcube_cds.version.version will break.
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 a pull request may close this issue.

1 participant