diff options
| -rw-r--r-- | changelog.d/2800.change.rst | 3 | ||||
| -rw-r--r-- | setuptools/command/sdist.py | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/changelog.d/2800.change.rst b/changelog.d/2800.change.rst new file mode 100644 index 00000000..cbb201e7 --- /dev/null +++ b/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). diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index 4a014283..e8062f2e 100644 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -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 = {} |
