1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Package PyPI dependencies right into our source package

This commit is contained in:
Virgil Dupras
2013-12-21 12:13:26 -05:00
parent 46f8984bdc
commit 7ba2e38cd6
2 changed files with 15 additions and 2 deletions

View File

@@ -153,10 +153,17 @@ def package_arch(edition):
shutil.copy(op.join('images', ed('dg{}_logo_128.png')), srcpath)
def package_source_tgz(edition):
if not op.exists('deps'):
print("Downloading PyPI dependencies")
print_and_do('pip install --download=deps -r requirements.txt')
print("Creating git archive")
app_version = get_module_version('core_{}'.format(edition))
name = 'dupeguru-{}-src-{}.tar.gz'.format(edition, app_version)
name = 'dupeguru-{}-src-{}.tar'.format(edition, app_version)
dest = op.join('build', name)
print_and_do('git archive -o {} HEAD'.format(dest))
print("Adding dependencies and wrapping up")
print_and_do('tar -rf {} deps'.format(dest))
print_and_do('gzip {}'.format(dest))
def main():
args = parse_args()