-
Notifications
You must be signed in to change notification settings - Fork 7
Use hatch-vcs for dynamic version numbering from git #106
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
Changes from all commits
945e77c
d5b708d
01d8d30
d5f1c56
c69be82
34fdfd3
a6499da
b286ffb
5db20cc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -139,3 +139,5 @@ dmypy.json | |
|
|
||
| # Cython debug symbols | ||
| cython_debug/ | ||
|
|
||
| _version.py | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,10 @@ | |
| # All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| """RAPIDS CLI is a command-line interface for managing RAPIDS projects.""" | ||
|
|
||
| try: | ||
| from ._version import version as __version__ # noqa | ||
| from ._version import version_tuple as __version_tuple__ # noqa | ||
| except ImportError: | ||
| __version__ = "0.0.0" | ||
| __version_tuple__ = (0, 0, 0) | ||
|
Comment on lines
+6
to
+11
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the purposes of this If it's just to convince
This So if you do keep it, I'd at least ask that you please add unit tests similar to this: from rapids_cli import __version__, __version_tuple__
def versioning_minimally_worked():
assert __version__ != "0.0.0"
assert __version_tuple__ != (0, 0, 0)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Is I personally don't think so, but this is a minor matter of personal preference and much more your project than mine, so I'll defer to your judgment here.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it was more that the first time I ran into this it was a hard to debug gotcha. Maybe instead of catching the |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we please add floors (to help speed up this conda solve) and put one package on each line?
Fine with me to leave these unpinned in the conda recipe /
pyproject.tomlto support a wider range of build environments, but here in CI for this separate CLI invocation we don't need that amount of flexibility... might as well add the floors to try to save a little CI time (via quicker conda solves).Putting floors on build dependencies is also nice to help reduce the risk of hard-to-debug issues of the form "something changed in the environment and instead of outright failing conda made all the constraints work by choosing an ancient version of some packages".