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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user