Changeset 1833


Ignore:
Timestamp:
Feb 10, 2007 10:55:01 PM (11 years ago)
Author:
bcsaller
Message:

*bumped version, moved to setuptools

Location:
rbtree/trunk/rbtree
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rbtree/trunk/rbtree/Makefile

    r1831 r1833  
    3737prof: build 
    3838        valgrind  --tool=callgrind --suppressions=valgrind-python.supp ${PYTHON} test_rbtree.py 
     39 
     40release: 
     41        @$(PYTHON) setup.py sdist 
     42        @$(PYTHON) setup.py bdist_egg 
     43        @echo Release ready, check dist/ 
  • rbtree/trunk/rbtree/setup.py

    r943 r1833  
    1 from distutils.core import setup 
    2 from distutils.extension import Extension 
    3 from Pyrex.Distutils import build_ext 
     1from setuptools import setup, find_packages 
     2from setuptools.extension import Extension 
    43 
    54setup( 
    6     name = "RBTree", 
    7     ext_modules=[ 
    8     Extension("rbtree", [                             "src/rbtree_impl.c", 
    9                                                       "src/rbtree.pyx"], 
    10               libraries = [ 
    11     ], 
    12               include_dirs=['./src', 
    13                             ]) 
    14     ], 
    15     cmdclass = {'build_ext': build_ext} 
     5    name="rbtree", 
     6    version="0.8.0", 
     7    packages=find_packages('src', exclude=["*.tests"]), 
     8    package_dir= {'':'src'}, 
     9    package_data = { 
     10    '': ['*.txt', '*.zcml', '*.pt', '*.zpt'], 
     11    }, 
     12    ext_modules=[ Extension("rbtree", [ "src/rbtree_impl.c", 
     13                                        "src/rbtree.pyx"], 
     14                            libraries = [], 
     15                            include_dirs=['./src',]) 
     16                  ], 
     17    zip_safe=False, 
     18    author='ObjectRealms, LLC', 
     19    author_email='info@objectrealms.net', 
     20    description="""A fast Red Black Tree with advanced iterator support. """, 
     21    license='GPL', 
     22    keywords="rbtree red-black tree data-structure", 
    1623    ) 
     24 
  • rbtree/trunk/rbtree/src/rbtree.pyx

    r1831 r1833  
    77 
    88__author__ = 'Benjamin Saller <bcsaller@objectrealms.net>' 
    9 __docformat__ = 'restructuredtext' 
    10 __copyright__ = 'Copyright Benjamin Saller, 2004.' 
     9__copyright__ = 'Copyright ObjectRealms, LLC 2007.' 
    1110__license__  = 'The GNU Public License V2+' 
    1211 
     
    160159                result = <object> (self._iter.value) 
    161160                return result 
    162             raise KeyError("Iterator has no current value") 
     161            raise KeyError, "Iterator has no current value" 
    163162 
    164163    property item: 
     
    168167                          <object> (self._iter.value)) 
    169168                return result 
    170             raise KeyError("Iterator has no current value") 
     169            raise KeyError , "Iterator has no current value" 
    171170 
    172171 
     
    231230    def __richcmp__(self, other, mode): 
    232231        if not isinstance(other, RBTree): 
    233             raise ValueError("Can only test equality of two RBTrees") 
     232            raise ValueError, "Can only test equality of two RBTrees" 
    234233        # We only support the eq check 
    235234        if mode != 2: return False 
     
    248247        # mutilble, as far as a dict would anyway... 
    249248        if isinstance(key, slice): 
    250             raise ValueError("setslice is unsupported") 
     249            raise ValueError, "setslice is unsupported" 
    251250 
    252251        hash(key) 
Note: See TracChangeset for help on using the changeset viewer.