File: makedist.py

package info (click to toggle)
geneagrapher 1.0c2%2Bgit20120704-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 848 kB
  • ctags: 270
  • sloc: python: 1,951; makefile: 15
file content (19 lines) | stat: -rw-r--r-- 499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""This tool sets up a distribution of the software by automating
several tasks that need to be done."""

import os

if __name__ == '__main__':
    # Make the distribution.
    os.system('python setup.py sdist --format gztar,zip')

    # Compute digests and signatures.
    os.chdir('dist')
    dirl = os.listdir('.')
    for file in dirl:
        comm = 'sha1sum %s > %s.sha1' % (file, file)
        os.system(comm)

        comm = 'gpg -abs %s' % (file)
        os.system(comm)
    os.chdir('..')