61
61
"Owner name used when creating a tar file [default: current user]"),
63
63
"Group name used when creating a tar file [default: current group]"),
65
65
"Adds a tag name after the release version"),
83
83
def copy_extra_files(self, base_dir):
87
86
for src, dest in extra_files:
88
87
self.copy_file(src, dest)
89
def rename_info_files(self, base_dir):
91
('README.txt', 'README_Utilities.txt'),
92
('CHANGES.txt', 'CHANGES_Utilities.txt')
94
for src, dest in info_files:
95
self.move_file(os.path.join(base_dir, src),
96
os.path.join(base_dir, dest))
90
98
def make_release_tree(self, base_dir, files):
91
99
self.mkpath(base_dir)
92
100
create_tree(base_dir, files, dry_run=self.dry_run)
262
272
# create distribution
264
('README.txt', 'README.txt'),
265
('LICENSE.txt', 'LICENSE.txt')
274
('README.txt', 'README_Utilities.txt'),
275
('LICENSE.txt', 'LICENSE.txt'),
276
('CHANGES.txt', 'CHANGES_Utilities.txt'),
277
('README_fabric.txt', 'README_fabric.txt'),
278
('CHANGES_fabric.txt', 'CHANGES_fabric.txt')
267
280
copy_tree(self.bdist_dir, self.dist_target)
268
281
pkg_info = mkpath(os.path.join(self.dist_target))
269
282
for src, dst in info_files:
271
copy_file(src, self.dist_target)
283
if os.path.exists(src):
285
copy_file(src, self.dist_target)
287
copy_file(src, os.path.join(self.dist_target, dst))
273
copy_file(src, os.path.join(self.dist_target, dst))
289
log.info("File not found: {0}".format(src))
275
291
if not self.keep_temp:
276
292
remove_tree(self.build_base, dry_run=self.dry_run)
278
295
class SourceCommercial(sdist):
279
296
"""Create commercial source distribution