Skip to content

Commit ad75058

Browse files
authored
Configure setuptools_scm to use the --first-parent flag (#693)
* This prevents a problem caused when tags from a previous release are forward-merged into the `develop` branch causing nat to versioned with an older version number. ## By Submitting this PR I confirm: - I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/NeMo-Agent-Toolkit/blob/develop/docs/source/resources/contributing.md). - We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license. - Any contribution which contains commits that are not Signed-Off will not be accepted. - When the PR is ready for review, new or existing tests cover these changes. - When the PR is ready for review, the documentation is up to date with these changes. Authors: - David Gardner (https://github.com/dagardner-nv) Approvers: - Will Killian (https://github.com/willkill07) URL: #693
1 parent 0c9e1de commit ad75058

55 files changed

Lines changed: 60 additions & 10 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/HITL/por_to_jiratickets/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build-backend = "setuptools.build_meta"
33
requires = ["setuptools >= 64", "setuptools-scm>=8"]
44

55
[tool.setuptools_scm]
6+
git_describe_command = "git describe --long --first-parent"
67
root = "../../.."
78

89
[project]

examples/HITL/simple_calculator_hitl/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build-backend = "setuptools.build_meta"
33
requires = ["setuptools >= 64", "setuptools-scm>=8"]
44

55
[tool.setuptools_scm]
6+
git_describe_command = "git describe --long --first-parent"
67
root = "../../.."
78

89
[project]

examples/MCP/simple_calculator_mcp/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ requires = ["setuptools >= 64", "setuptools-scm>=8"]
66
packages = []
77

88
[tool.setuptools_scm]
9+
git_describe_command = "git describe --long --first-parent"
910
root = "../../.."
1011

1112
[project]

examples/RAG/simple_rag/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ requires = ["setuptools >= 64", "setuptools-scm>=8"]
66
packages = []
77

88
[tool.setuptools_scm]
9+
git_describe_command = "git describe --long --first-parent"
910
root = "../../.."
1011

1112
[project]
1213
name = "nat_simple_rag"
1314
dynamic = ["version"]
1415
dependencies = [
15-
"nvidia-nat[ingestion,langchain,mem0ai]~=1.3"
16+
"nvidia-nat[ingestion,langchain,mem0ai]~=1.3",
1617
]
1718
requires-python = ">=3.11,<3.13"
1819
description = "Simple NeMo Agent toolkit Rag example"

examples/advanced_agents/alert_triage_agent/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build-backend = "setuptools.build_meta"
33
requires = ["setuptools >= 64", "setuptools-scm>=8"]
44

55
[tool.setuptools_scm]
6+
git_describe_command = "git describe --long --first-parent"
67
root = "../../.."
78

89
[project]

examples/advanced_agents/profiler_agent/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build-backend = "setuptools.build_meta"
33
requires = ["setuptools >= 64", "setuptools-scm>=8"]
44

55
[tool.setuptools_scm]
6+
git_describe_command = "git describe --long --first-parent"
67
root = "../../.."
78

89
[project]

examples/custom_functions/automated_description_generation/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build-backend = "setuptools.build_meta"
33
requires = ["setuptools >= 64", "setuptools-scm>=8"]
44

55
[tool.setuptools_scm]
6+
git_describe_command = "git describe --long --first-parent"
67
root = "../../.."
78

89
[project]

examples/custom_functions/plot_charts/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build-backend = "setuptools.build_meta"
33
requires = ["setuptools >= 64", "setuptools-scm>=8"]
44

55
[tool.setuptools_scm]
6+
git_describe_command = "git describe --long --first-parent"
67
root = "../../.."
78

89
[project]

examples/documentation_guides/workflows/text_file_ingest/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build-backend = "setuptools.build_meta"
33
requires = ["setuptools >= 64", "setuptools-scm>=8"]
44

55
[tool.setuptools_scm]
6+
git_describe_command = "git describe --long --first-parent"
67
root = "../../../.."
78

89
[project]

examples/evaluation_and_profiling/email_phishing_analyzer/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build-backend = "setuptools.build_meta"
33
requires = ["setuptools >= 64", "setuptools-scm>=8"]
44

55
[tool.setuptools_scm]
6+
git_describe_command = "git describe --long --first-parent"
67
root = "../../.."
78

89
[project]

0 commit comments

Comments
 (0)