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

add version string #1

Open
bpinsard opened this issue May 17, 2024 · 2 comments
Open

add version string #1

bpinsard opened this issue May 17, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@bpinsard
Copy link
Collaborator

What would you like to see added in this software?

I coded niworkflows/smriprep to report the gradunwarp version used, but it is missing in the current python package.
@effigies I think you have expertise in python packaging, in particular in versioneer setup if you think that's what we should use, and I could use your help with that.

Do you have any interest in helping implement the feature?

Yes, but I would need guidance

Additional information / screenshots

No response

@bpinsard bpinsard added the enhancement New feature or request label May 17, 2024
@effigies
Copy link
Member

gradunwarp currently has the version string in gradunwarp.core.globals.VERSION. You could just import that in __init__.py:

from .core.globals import VERSION as __version__

Then when it's time to release, you use bumpver as described in Washington-University#15 (comment).

All that said, we could switch to versioneer or setuptools_scm, if you prefer to just make tags.

@bpinsard
Copy link
Collaborator Author

first option is good for now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants