changeset 0:af10f7e072ed

initial import of stampit
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 19 Apr 2010 17:41:06 -0400
parents
children 820beace15f2
files setup.py stampit/__init__.py stampit/main.py
diffstat 3 files changed, 58 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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
+      """,
+      )
--- /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 @@
+#
--- /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:
+
+<package>-<version>-<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] <package> <platform>'
+    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()