-
-
Couldn't load subscription status.
- Fork 10.8k
[Misc] fix collect_env version parse #15267
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
Conversation
|
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
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.
Can we add some unittest?
unittest would be ideal, but it's complicated to test all the cases, e.g. released versions, dev versions, local installed versions, etc. |
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
|
Fixed merge conflict |
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com> Signed-off-by: Yang Wang <elainewy@meta.com>
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com> Signed-off-by: Frieda (Jingying) Huang <jingyingfhuang@gmail.com>
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com> Signed-off-by: Agata Dobrzyniewicz <adobrzyniewicz@habana.ai>
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com> Signed-off-by: Mu Huai <tianbowen.tbw@antgroup.com>
The version parse in
collect_env.pyis not correct. The__version_tuple__fromsetuptools_scmis a tuple like(0,8,1),(0,8,1,dev86,ge588ac237)or(0,8,1,dev86,ge588ac237+d20250321). The length will never be 4. See: https://setuptools-scm.readthedocs.io/en/stable/usage/ which the length is not limited to 4.We should pares the
__version_tuple__in a correct way. With this PR, the version will be parsed into some result:setuptools_scmis not working, the result will beN/A (dev)0.8.10.8.2.dev86+ge588ac237 (git_sha: e588ac237)0.8.2.dev86+ge588ac237.d20250321 (git sha: e588ac237, date: 20250321)