diff options
author | Bob Ippolito <bob@redivi.com> | 2005-12-31 21:19:19 +0000 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2005-12-31 21:19:19 +0000 |
commit | 9e7d1a3413fa3e518181311baec4a0f67ce9f6c9 (patch) | |
tree | 3ee96280707f2988412d8cd2d9d564714ebaae1e /scripts | |
parent | 23cd302f33290ddd76996cd65bfd510012247bb1 (diff) | |
download | simplejson-9e7d1a3413fa3e518181311baec4a0f67ce9f6c9.tar.gz |
rename
git-svn-id: http://simplejson.googlecode.com/svn/trunk@5 a4795897-2c25-0410-b006-0d3caba88fa1
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make_docs.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/make_docs.py b/scripts/make_docs.py new file mode 100755 index 0000000..ee6de7b --- /dev/null +++ b/scripts/make_docs.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python +import os +import subprocess +import shutil + +PROJECT='simplejson' + +def _get_version(): + from pkg_resources import PathMetadata, Distribution + egg_info = PROJECT + '.egg-info' + base_dir = os.path.dirname(egg_info) + metadata = PathMetadata(base_dir, egg_info) + dist_name = os.path.splitext(os.path.basename(egg_info))[0] + dist = Distribution(base_dir, project_name=dist_name, metadata=metadata) + return dist.version +VERSION = _get_version() + + +res = subprocess.call([ + 'pudge', '-d', 'docs', '-m', PROJECT, + '-l', '%s %s' % (PROJECT, VERSION), + '--theme=green' +]) +if not res: + shutil.copyfile('docs/module-simplejson.html', 'docs/index.html') +raise SystemExit(res) |