-import os\r
-from distutils.core import setup\r
-\r
-\r
-# Figure out the version; this could be done by importing the\r
-# module, though that requires Django to be already installed,\r
-# which may not be the case when processing a pip requirements\r
-# file, for example.\r
-import re\r
-here = os.path.dirname(os.path.abspath(__file__))\r
-version_re = re.compile(\r
- r'__version__ = (\(.*?\))')\r
-fp = open(os.path.join(here, 'django_tables', '__init__.py'))\r
-version = None\r
-for line in fp:\r
- match = version_re.search(line)\r
- if match:\r
- version = eval(match.group(1))\r
- break\r
-else:\r
- raise Exception("Cannot find version in __init__.py")\r
-fp.close()\r
-\r
-\r
-def find_packages(root):\r
- # so we don't depend on setuptools; from the Storm ORM setup.py\r
- packages = []\r
- for directory, subdirectories, files in os.walk(root):\r
- if '__init__.py' in files:\r
- packages.append(directory.replace(os.sep, '.'))\r
- return packages\r
-\r
-\r
-setup(\r
- name = 'django-tables',\r
- version=".".join(map(str, version)),\r
- description = 'Render QuerySets as tabular data in Django.',\r
- author = 'Michael Elsdoerfer',\r
- author_email = 'michael@elsdoerfer.info',\r
- license = 'BSD',\r
- url = 'http://launchpad.net/django-tables',\r
- classifiers = [\r
- 'Development Status :: 3 - Alpha',\r
- 'Environment :: Web Environment',\r
- 'Framework :: Django',\r
- 'Intended Audience :: Developers',\r
- 'License :: OSI Approved :: BSD License',\r
- 'Operating System :: OS Independent',\r
- 'Programming Language :: Python',\r
- 'Topic :: Internet :: WWW/HTTP',\r
- 'Topic :: Software Development :: Libraries',\r
- ],\r
- packages = find_packages('django_tables'),\r
-)\r
+import os
+from distutils.core import setup
+
+
+# Figure out the version; this could be done by importing the
+# module, though that requires Django to be already installed,
+# which may not be the case when processing a pip requirements
+# file, for example.
+import re
+here = os.path.dirname(os.path.abspath(__file__))
+version_re = re.compile(
+ r'__version__ = (\(.*?\))')
+fp = open(os.path.join(here, 'django_tables', '__init__.py'))
+version = None
+for line in fp:
+ match = version_re.search(line)
+ if match:
+ version = eval(match.group(1))
+ break
+else:
+ raise Exception("Cannot find version in __init__.py")
+fp.close()
+
+
+def find_packages(root):
+ # so we don't depend on setuptools; from the Storm ORM setup.py
+ packages = []
+ for directory, subdirectories, files in os.walk(root):
+ if '__init__.py' in files:
+ packages.append(directory.replace(os.sep, '.'))
+ return packages
+
+
+setup(
+ name = 'django-tables',
+ version=".".join(map(str, version)),
+ description = 'Render QuerySets as tabular data in Django.',
+ author = 'Michael Elsdoerfer',
+ author_email = 'michael@elsdoerfer.info',
+ license = 'BSD',
+ url = 'http://launchpad.net/django-tables',
+ classifiers = [
+ 'Development Status :: 3 - Alpha',
+ 'Environment :: Web Environment',
+ 'Framework :: Django',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: BSD License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Topic :: Internet :: WWW/HTTP',
+ 'Topic :: Software Development :: Libraries',
+ ],
+ packages = find_packages('django_tables'),
+)