Permalink
Browse files

Merge commit 'github/master'

  • Loading branch information...
2 parents 78d42ee + 11e60a7 commit aace4732d130c869421752b6c4f76f8e39a23007 @toddlipcon toddlipcon committed Sep 14, 2009
Showing with 135 additions and 1 deletion.
  1. +2 −0 MANIFEST.in
  2. +16 −0 PKG-INFO
  3. +85 −0 bootstrap.py
  4. +16 −0 buildout.cfg
  5. +15 −0 setup.py
  6. +1 −1 test.py
View
2 MANIFEST.in
@@ -0,0 +1,2 @@
+include LICENSE README *.py
+recursive-include shell-tests *
View
16 PKG-INFO
@@ -0,0 +1,16 @@
+Metadata-Version: 1.1
+Name: crepo
+Version: 0.1
+Author: Todd Lipcon
+Author-email: todd at cloudera com
+Maintainer: Chad Metcalf
+Maintainer-email: chad at cloudera com
+Home-page: http://github.com/cloudera/crepo/tree/master
+Summary: cloudera repo management tool
+Description: crepo is a lightweight git repository management tool similar to Google's "repo" tool. crepo makes it very easy to manage projects that pull together sources from multiple remote repositories. In this respect, it is similar to submodules. However, it avoids the direct integration with the git index which makes the use of submodules somewhat error prone, and also enables automatic tracking of remote references without explicit commits to the containing repository.
+Classifier: Development Status :: 4 - Beta
+Classifier: Environment :: Console
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: Apache Software License
+
+
View
85 bootstrap.py
@@ -0,0 +1,85 @@
+#!/usr/bin/env python2.5
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id$
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+is_jython = sys.platform.startswith('java')
+
+try:
+ import pkg_resources
+except ImportError:
+ ez = {}
+ exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+ ).read() in ez
+ ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+ import pkg_resources
+
+if sys.platform == 'win32':
+ def quote(c):
+ if ' ' in c:
+ return '"%s"' % c # work around spawn lamosity on windows
+ else:
+ return c
+else:
+ def quote (c):
+ return c
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+ws = pkg_resources.working_set
+
+if len(sys.argv) > 2 and sys.argv[1] == '--version':
+ VERSION = '==%s' % sys.argv[2]
+ args = sys.argv[3:] + ['bootstrap']
+else:
+ VERSION = ''
+ args = sys.argv[1:] + ['bootstrap']
+
+if is_jython:
+ import subprocess
+
+ assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
+ quote(tmpeggs), 'zc.buildout' + VERSION],
+ env=dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse('setuptools')).location
+ ),
+ ).wait() == 0
+
+else:
+ assert os.spawnle(
+ os.P_WAIT, sys.executable, quote (sys.executable),
+ '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION,
+ dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse('setuptools')).location
+ ),
+ ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout' + VERSION)
+import zc.buildout.buildout
+zc.buildout.buildout.main(args)
+shutil.rmtree(tmpeggs)
View
16 buildout.cfg
@@ -0,0 +1,16 @@
+[buildout]
+parts = python
+newest=false
+develop = .
+thirdparty-eggs =
+ simplejson
+eggs =
+ ${buildout:thirdparty-eggs}
+
+[versions]
+simplejson = 2.0.9
+
+[python]
+recipe = zc.recipe.egg
+interpreter = python2.5
+eggs = crepo ${buildout:eggs}
View
15 setup.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+from setuptools import setup, find_packages
+
+setup(
+ name="crepo",
+ version='0.1',
+ url="http://github.com/cloudera/crepo/tree/master",
+ maintainer="Chad Metcalf",
+ maintainer_email="chad@cloudera.com",
+ py_modules=['crepo', 'git_command', 'git_repo', 'manifest', 'trace', 'test' ],
+ entry_points = { 'console_scripts': [ 'crepo = crepo:main', ], },
+ data_files=[('shell-tests', ['shell-tests/basic_test.sh', 'shell-tests/follow_tag.sh', 'shell-tests/smoke_test.sh']),],
+ install_requires = ['setuptools', 'simplejson'],
+)
View
2 test.py 100644 → 100755
@@ -7,7 +7,7 @@
import subprocess
import re
-TESTS_DIR=os.path.join(os.path.dirname(__file__), "shell-tests")
+TESTS_DIR=os.path.join(os.getcwd(), "shell-tests")
class ShellTests(TestCase):
def _run_shell_test(self, path):

0 comments on commit aace473

Please sign in to comment.