Skip to content

Commit baaf8cd

Browse files
authored
Merge pull request #2800 from jmarshall/feature/sdist-owner-group
sdist: Accept -u/--owner and -g/--group options
2 parents a5ed0a8 + 576dece commit baaf8cd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

changelog.d/2800.change.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Added ``--owner`` and ``--group`` options to the ``sdist`` command,
2+
for specifying file ownership within the produced tarball (similarly
3+
to the corresponding distutils ``sdist`` options).

setuptools/command/sdist.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class sdist(sdist_add_defaults, orig.sdist):
3131
('dist-dir=', 'd',
3232
"directory to put the source distribution archive(s) in "
3333
"[default: dist]"),
34+
('owner=', 'u',
35+
"Owner name used when creating a tar file [default: current user]"),
36+
('group=', 'g',
37+
"Group name used when creating a tar file [default: current group]"),
3438
]
3539

3640
negative_opt = {}

0 commit comments

Comments
 (0)