Dont add .github to the source tarball

This commit is contained in:
Kovid Goyal 2021-03-04 20:55:47 +05:30
parent 6468dfd58d
commit 9b99248382
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -328,6 +328,7 @@ class Sdist(Command):
self.info('\tCreating tarfile...')
dest = self.DEST.rpartition('.')[0]
shutil.rmtree(os.path.join(tdir, '.github'))
subprocess.check_call(['tar', '-cf', self.a(dest), 'calibre-%s' % __version__], cwd=self.d(tdir))
self.info('\tCompressing tarfile...')
if os.path.exists(self.a(self.DEST)):