Skip to content

Commit

Permalink
Move versioneer file
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Jan 3, 2024
1 parent 4201a51 commit 6144ecf
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/developer_guide/3_simple_cpp_stage/.gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
src/_version.py export-subst
src/simple_cpp_stage/_version.py export-subst
3 changes: 1 addition & 2 deletions examples/developer_guide/3_simple_cpp_stage/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
include versioneer.py
include src/_version.py
include src/simple_cpp_stage/_version.py
recursive-include src *.so *.pyi
4 changes: 2 additions & 2 deletions examples/developer_guide/3_simple_cpp_stage/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ requires = ["setuptools", "wheel", "versioneer[toml]==0.29"]
VCS = "git"
style = "pep440"
tag_prefix = "v"
versionfile_build = "src/_version.py"
versionfile_source = "src/_version.py"
versionfile_build = "src/simple_cpp_stage/_version.py"
versionfile_source = "src/simple_cpp_stage/_version.py"

[tool.yapfignore]
ignore_patterns = [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python3
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from . import _version # pylint: disable=wrong-import-position

__version__ = _version.get_versions()['version']

0 comments on commit 6144ecf

Please sign in to comment.