File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14- from packaging .version import Version
15-
1614semantic_version = "0.8.1.dev0"
1715
18- MAJOR = Version (semantic_version ).major
19- MINOR = Version (semantic_version ).minor
20- PATCH = Version (semantic_version ).micro
21- if pre := Version (semantic_version ).pre :
22- PRE_RELEASE = "" .join (map (str , pre ))
23- else :
24- PRE_RELEASE = ""
25-
26- DEV = Version (semantic_version ).dev
27-
28- __version__ = f"{ MAJOR } .{ MINOR } .{ PATCH } .{ PRE_RELEASE } { DEV } "
16+ __version__ = semantic_version
2917
3018__package_name__ = "nemo_run"
3119__contact_names__ = "NVIDIA"
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ packages = ["nemo_run"]
151151
152152[tool .hatch .version ]
153153path = " nemo_run/package_info.py"
154+ pattern = ' semantic_version = "(?P<version>[^"]+)"'
154155
155156[tool .ruff ]
156157line-length = 100
You can’t perform that action at this time.
0 commit comments