Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/pythonmods
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv10521

Added Files:
        anyvc-py.info anyvc-py.patch 
Log Message:
New package.


--- NEW FILE: anyvc-py.info ---
Info2: <<
Package: anyvc-py%type_pkg[python]
Version: 0.3.3
Revision: 1
# Can't add 2.7 until bzr, dulwich and mercurial add it.
Type: python (2.6)
Description: Library to access any vcs
DescDetail: <<
    Anyvc is a library to abstract common vcs operation.
    It was born in an effort to enhance vcs operations in PIDA.
    
    The current version is mainly tailored to working with
    the working directories of the different vcs's and
    performing operations like adding/renaming/moving files,
    showing differences to the current commit and creating new commits.
<<
Maintainer: Daniel Johnson <[email protected]>
License: GPL2+
Homepage: http://pypi.python.org/pypi/anyvc

Source: http://pypi.python.org/packages/source/a/anyvc/anyvc-%v.tar.gz
Source-MD5: 797dd6606b119640042b17f692fb9f4a

# Uses temp files in /var but when compared to the real path,
# /private/var, several tests fail since the paths don't match.
# Ensure that all paths get symlinks expanded.
PatchFile: %{ni}.patch
PatchFile-MD5: 318680416fefdeea82a58eab37ca71c2

Depends: <<
    bzr-py%type_pkg[python],
    dulwich-py%type_pkg[python],
    execnet-py%type_pkg[python],
    mercurial-py%type_pkg[python],
    py-py%type_pkg[python],
    python%type_pkg[python],
    subvertpy-py%type_pkg[python]
<<
BuildDepends: fink (>= 0.24.12), setuptools-py%type_pkg[python]

CompileScript: <<
    %p/bin/python%type_raw[python] setup.py build
<<

InfoTest: <<
    TestScript: %p/bin/py.test-%type_raw[python] tests || exit 2
<<
        
InstallScript: <<
    %p/bin/python%type_raw[python] setup.py install \
        --root=%d
        mv %i/bin/vc %i/bin/vc-py%type_pkg[python]
<<

PostInstScript: <<
        update-alternatives --install %p/bin/vc vc 
%p/bin/vc-py%type_pkg[python] %type_pkg[python]
<<

PreRmScript: <<
        if [ $1 != "upgrade" ]; then
                update-alternatives --remove vc %p/bin/vc-py%type_pkg[python]
        fi
<<

DocFiles: PKG-INFO
<<

--- NEW FILE: anyvc-py.patch ---
diff -ru anyvc-0.3.3.orig/tests/helpers.py anyvc-0.3.3/tests/helpers.py
--- anyvc-0.3.3.orig/tests/helpers.py   2010-06-07 06:43:03.000000000 -0400
+++ anyvc-0.3.3/tests/helpers.py        2010-08-08 16:34:27.000000000 -0400
@@ -13,6 +13,7 @@
 from shutil import rmtree
 from anyvc.metadata import get_backend
 from anyvc.remote import RemoteBackend
+from py.path import local
 
 def do(*args, **kw):
     args = map(str, args)
@@ -32,7 +33,7 @@
         return getattr(self.__vc, name)
 
     def bpath(self, name):
-        return self.__path.join(name)
+        return self.__path.join(name).realpath()
 
     def put_files(self, mapping):
         for name, content in mapping.items():
@@ -96,7 +97,7 @@
         return '<VcsMan %(vc)s %(base)r>'%vars(self)
 
     def bpath(self, name):
-        return self.base.join(name)
+        return self.base.join(name).realpath()
 
     def create_wd(self, workdir, source=None):
         path = self.bpath(workdir)


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to