You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "junrushao (via GitHub)" <gi...@apache.org> on 2026/04/07 20:25:54 UTC

[PR] build(deps): replace cmake version exclusion with uv exclude-newer [tvm-ffi]

junrushao opened a new pull request, #524:
URL: https://github.com/apache/tvm-ffi/pull/524

   ## Summary
   
   - Remove the `cmake!=4.3.1` version pin from dev dependencies, which was a temporary workaround for a specific broken cmake release.
   - Add `[tool.uv] exclude-newer = "30 days"` to prevent installing any package released within the last 30 days, providing a more general and maintainable guard against freshly-released broken packages across the entire dependency tree.
   
   ## Test plan
   
   - [ ] Verify `uv pip install -e .` resolves dependencies correctly with the new `exclude-newer` setting
   - [ ] Confirm CI passes without the cmake version exclusion
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] build(deps): replace cmake version exclusion with uv exclude-newer [tvm-ffi]

Posted by "gemini-code-assist[bot] (via GitHub)" <gi...@apache.org>.
gemini-code-assist[bot] commented on code in PR #524:
URL: https://github.com/apache/tvm-ffi/pull/524#discussion_r3047682536


##########
pyproject.toml:
##########
@@ -284,6 +284,9 @@ allowed-unresolved-imports = [
   "torch_c_dlpack_ext",
 ]
 
+[tool.uv]
+exclude-newer = "30 days"

Review Comment:
   ![high](https://www.gstatic.com/codereviewagent/high-priority.svg)
   
   The `exclude-newer` setting in `uv` requires a valid RFC 3339 timestamp (e.g., "2024-12-01T00:00:00Z") and does not support relative duration strings like "30 days". Because `pyproject.toml` is a static configuration file, `uv` uses this field to provide a deterministic, time-traveling resolver. To implement a rolling 30-day exclusion as described in the PR summary, you should instead pass the `--exclude-newer` flag dynamically in your CI pipeline (e.g., using a shell command to calculate the date).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] build(deps): replace cmake version exclusion with uv exclude-newer [tvm-ffi]

Posted by "junrushao (via GitHub)" <gi...@apache.org>.
junrushao merged PR #524:
URL: https://github.com/apache/tvm-ffi/pull/524


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] build(deps): replace cmake version exclusion with uv exclude-newer [tvm-ffi]

Posted by "junrushao (via GitHub)" <gi...@apache.org>.
junrushao commented on code in PR #524:
URL: https://github.com/apache/tvm-ffi/pull/524#discussion_r3047692116


##########
pyproject.toml:
##########
@@ -284,6 +284,9 @@ allowed-unresolved-imports = [
   "torch_c_dlpack_ext",
 ]
 
+[tool.uv]
+exclude-newer = "30 days"

Review Comment:
   Your knowledge is outdated. Please see: https://docs.astral.sh/uv/reference/settings/#exclude-newer



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org