Message295976
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) |
|
Date |
User |
Action |
Args |
2017-06-14 01:49:10 | ncoghlan | set | recipients:
+ ncoghlan |
2017-06-14 01:49:10 | ncoghlan | set | messageid: <1497404950.16.0.513779102465.issue30661@psf.upfronthosting.co.za> |
2017-06-14 01:49:10 | ncoghlan | link | issue30661 messages |
2017-06-14 01:49:09 | ncoghlan | create | |
|