Skip to content

Commit

Permalink
Merge pull request #2800 from jmarshall/feature/sdist-owner-group
Browse files Browse the repository at this point in the history
sdist: Accept -u/--owner and -g/--group options
  • Loading branch information
jaraco committed Sep 26, 2021
2 parents a5ed0a8 + 576dece commit baaf8cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.d/2800.change.rst
@@ -0,0 +1,3 @@
Added ``--owner`` and ``--group`` options to the ``sdist`` command,
for specifying file ownership within the produced tarball (similarly
to the corresponding distutils ``sdist`` options).
4 changes: 4 additions & 0 deletions setuptools/command/sdist.py
Expand Up @@ -31,6 +31,10 @@ class sdist(sdist_add_defaults, orig.sdist):
('dist-dir=', 'd',
"directory to put the source distribution archive(s) in "
"[default: dist]"),
('owner=', 'u',
"Owner name used when creating a tar file [default: current user]"),
('group=', 'g',
"Group name used when creating a tar file [default: current group]"),
]

negative_opt = {}
Expand Down

0 comments on commit baaf8cd

Please sign in to comment.