Source

dogpile.cache / setup.py

Diff from to
 import os
 import sys
+import re
 
 from setuptools import setup, find_packages
 
         use_2to3=True,
     )
 
+v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
+VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
+v.close()
+
 readme = os.path.join(os.path.dirname(__file__), 'README.rst')
 
 setup(name='dogpile.cache',
-      version="0.1.0",
+      version=VERSION,
       description="A caching front-end based on the Dogpile lock.",
       long_description=file(readme).read(),
       classifiers=[
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.