Add tool to build an API tarball for distribution.

(imported from commit eeaf9f526f243cc628eede603fe1b1691c34977f)
This commit is contained in:
Tim Abbott 2012-11-26 11:54:21 -05:00
parent 9c0e0844ef
commit c86fd609e2
2 changed files with 11 additions and 0 deletions

4
api/README Normal file
View File

@ -0,0 +1,4 @@
The Humbug API Python bindings require the following Python libraries:
* simplejson
* requests (version >= 0.12)

7
tools/build-api-tarball Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh -x
ref="$1"
if [ -z "$ref" ]; then
echo "You must specify the ref to base the API tarball on."
exit 1
fi
git archive --prefix=humbug-api/ -o /tmp/humbug-api.tar.gz "$ref" api/examples/ api/common.py api/__init__.py api/README