[geneagrapher] 93/226: Add script to assist in packaging.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:10:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository geneagrapher.
commit b044ba312b126cb17bf906b1984e7b407509fcc6
Author: David Alber <alber.david at gmail.com>
Date: Wed Oct 8 03:45:40 2008 +0000
Add script to assist in packaging.
---
Geneagrapher/makedist.py | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/Geneagrapher/makedist.py b/Geneagrapher/makedist.py
new file mode 100644
index 0000000..cbbf093
--- /dev/null
+++ b/Geneagrapher/makedist.py
@@ -0,0 +1,45 @@
+"""This tool sets up a distribution of the software by automating
+several tasks that need to be done.
+
+The directory should be in pristine condition when this is run (i.e.,
+devoid of files that need to be removed before packaging begins). It
+is best to run this on a fresh check out of the repository."""
+
+import os
+import licensify
+
+if __name__ == '__main__':
+ # "Licensify" the source files.
+ files = ['geneagrapher/GGraph.py', 'geneagrapher/geneagrapher.py',
+ 'geneagrapher/grab.py', 'geneagrapher/ggrapher.py']
+ license = 'COPYING'
+ for file in files:
+ res = licensify.prependLicense(file, license)
+ fout = open(file, "w")
+ fout.write(res)
+ fout.close()
+
+ # Remove files (including this one) that are not to be in the
+ # distribution.
+ os.system('svn rm licensify.py')
+ os.system('rm -f licensify.pyc')
+ os.system('svn rm makedist.py')
+ os.system('rm -f makedist.pyc')
+
+ # 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('..')
+
+ # Add files to repository.
+ os.system('svn add Geneagrapher.egg-info')
+ os.system('svn add dist')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/geneagrapher.git
More information about the debian-science-commits
mailing list