Source

mementos / setup.py

Diff from to

File setup.py

 #! /usr/bin/env python
 
 from setuptools import setup
-from decimal import Decimal
-import re
+import sys
 
 def linelist(text):
     """
     Dangerous, self-modifying, and also, helps keep version numbers
     ascending without human intervention.
     """
+    from decimal import Decimal
+    import re 
+
     d = Decimal(s)
     increment = Decimal('0.001')
     d = d.quantize(increment) + increment
     open('setup.py', 'w').write(setup)
     return dstr
 
+def linelist(text):
+    """
+    Returns each non-blank line in text enclosed in a list.
+    """
+    return [ l.strip() for l in text.strip().splitlines() if l.split() ]
+    
+    # The double-mention of l.strip() is yet another fine example of why
+    # Python needs en passant aliasing.
+
 setup(
     name='mementos',
-    version=verno("0.108"),
+    version=verno("0.404"),
     author='Jonathan Eunice',
     author_email='jonathan.eunice@gmail.com',
     description='Memoizing metaclass. Drop-dead simple way to create cached objects',
     url='https://bitbucket.org/jeunice/mementos',
     py_modules=['mementos'],
     install_requires=[],
+    tests_require = ['tox', 'pytest'],
+    zip_safe = True,
     classifiers=linelist("""
         Development Status :: 4 - Beta
         Operating System :: OS Independent
         License :: OSI Approved :: BSD License
         Intended Audience :: Developers
         Programming Language :: Python
+        Programming Language :: Python :: 2.5
+        Programming Language :: Python :: 2.6
+        Programming Language :: Python :: 2.7
+        Programming Language :: Python :: 3.2
+        Programming Language :: Python :: 3.3
         Topic :: Software Development :: Libraries :: Python Modules
     """)
 )