# HG changeset patch # User Jeff Hammel # Date 1271713266 14400 # Node ID af10f7e072ed15336761e4fec5bba7e62ba93c50 initial import of stampit diff -r 000000000000 -r af10f7e072ed setup.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.py Mon Apr 19 17:41:06 2010 -0400 @@ -0,0 +1,28 @@ +from setuptools import setup, find_packages +import sys, os + +version = '0.0' + +setup(name='stampit', + version=version, + description='stamp out virtualenv tarballs appropriate to a platform (and upload them?)', + long_description="""\ +""", + classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers + keywords='', + author='Jeff Hammel', + author_email='jhammel@mozilla.com', + url='', + license='MPL', + packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), + include_package_data=True, + zip_safe=False, + install_requires=[ + # -*- Extra requirements: -*- + ], + entry_points=""" + # -*- Entry points: -*- + [console_scripts] + stampit = stampit.main:main + """, + ) diff -r 000000000000 -r af10f7e072ed stampit/__init__.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stampit/__init__.py Mon Apr 19 17:41:06 2010 -0400 @@ -0,0 +1,1 @@ +# diff -r 000000000000 -r af10f7e072ed stampit/main.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stampit/main.py Mon Apr 19 17:41:06 2010 -0400 @@ -0,0 +1,29 @@ +#!/usr/bin/env python +""" +tar up a set of packages in a virtualenv per platform: + +--.tar.gz + +Example: + +mozmill-1.4.1-linux.tar.gz +""" + +import sys + +from optparse import OptionParser +from subprocess import call + + +def main(args=sys.argv[1:]): + usage = '%prog [options] ' + parser = OptionParser(usage) + parser.add_option('--version', + help='version of the package to be installed (defaults to the current on the cheeseshop)') + options, args = parser.parse_args(args) + + # create a virtualenv +# call(['virtualenv']) + +if __name__ == '__main__': + main()