Example #1
0
def test_pkg(package):
    """Test running the package
    """
    mkdir('dist/test', parent=True)
    unpack(package, 'dist/test/')
    dirname = basename( ".".join(package.split(".")[:-2]))
    sh('emacs -Q -l dist/test/'+dirname+'/epy-init.el')
Example #2
0
def package_command():
    """Package the emacs-for-python distribution
    """
    clean()
    GLOBS = "COPYING README.org epy-*.el extensions\
 doc python-libs scripts".split()
    
    # Concatenating lists
    FILES = itertools.chain(*(glob.glob(g) for g in GLOBS))
    mkdir("dist/emacs-for-python-"+VERSION,parent=True)
    [cp(f,"dist/emacs-for-python-"+VERSION) for f in FILES]
    archive(["dist/emacs-for-python-"+VERSION], 
            "dist/emacs-for-python-%s.tar.gz"%VERSION,format="gzip")
Example #3
0
def package(VERSION):
    """Package the emacs-for-python distribution
    """
    clean()
    globs = MANIFEST.split()
    # Concatenating lists
    files = itertools.chain(*(glob.glob(g) for g in globs))
    mkdir("dist/emacs-for-python-"+VERSION,parent=True)
    cp(files,"dist/emacs-for-python-"+VERSION)
    archive("dist/emacs-for-python-"+VERSION, 
            "dist/emacs-for-python-%s.tar.gz"%VERSION,format="gzip")
    archive("dist/emacs-for-python-"+VERSION, 
            "dist/emacs-for-python-%s.zip"%VERSION,format="zip")
def make_dir_structure():
    mkdir("testdir")
    touch("testdir/stuff.txt")
    mkdir("testdir/testdir2")
    touch("testdir/testdir2/stuff2.txt")
 def test_dir(self):
     """Testing the directory removal
     """
     mkdir("testdir")
     rm("testdir")
     self.assertFalse(os.path.exists("testdir"))