Author ncoghlan
Recipients ncoghlan
Date 2017-06-14.01:49:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497404950.16.0.513779102465.issue30661@psf.upfronthosting.co.za>
In-reply-to
Content
The main benefit I'd see to the last option is that it would also cover passing a "filter" option for tarfile.TarFile.add(). Dropping down to the lower level API for that isn't *hard*, it's just a bit fiddly (note: currently untested example code):

   sdist = tarfile.open(sdist_path, "w:gz", format=tarfile.PAX_FORMAT)
   sdist.add(os.getcwd(), arcname=sdist_subdir, filter=_exclude_hidden_and_special_files)
History
Date User Action Args
2017-06-14 01:49:10ncoghlansetrecipients: + ncoghlan
2017-06-14 01:49:10ncoghlansetmessageid: <1497404950.16.0.513779102465.issue30661@psf.upfronthosting.co.za>
2017-06-14 01:49:10ncoghlanlinkissue30661 messages
2017-06-14 01:49:09ncoghlancreate