mirror of
https://github.com/deepseek-ai/3FS.git
synced 2026-11-05 00:47:47 +00:00
[PR #420] fix(packaging): remove git dependency from package version #425
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/3FS#425
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/3FS/pull/420
Author: @030611
Created: 8/10/2026
Status: 🔄 Open
Base:
main← Head:fix/packaging-sdist-343📝 Commits (1)
95f4f2dfix(packaging): avoid git dependency in source distributions📊 Changes
2 files changed (+62 additions, -3 deletions)
View changed files
📝
setup.py(+1 -3)➕
tests/test_setup.py(+61 -0)📄 Description
Addresses #343.
The generated source distribution runs
git rev-parsefromsetup.py, but an unpacked sdist has no.gitdirectory. That makes even package metadata commands fail before the native extension build starts.This removes the unused revision suffix and keeps the package version at
1.2.9, matching the published sdist metadata. The regression test builds an sdist from a temporary Git checkout, extracts it outside Git, and verifies thatsetup.py --versionandPKG-INFOboth report1.2.9.This intentionally makes source-checkout metadata match the published version instead of adding a local
+<sha>suffix.Tested with:
pytest tests/test_setup.py(1 passed)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.