From: Michael Elsdoerfer Date: Fri, 20 Aug 2010 22:25:47 +0000 (+0200) Subject: Converted to *nix linebreaks. X-Git-Tag: 0.2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e14e4aca244ccb69e6af2ae7184783f605f9fdb2;p=django-tables2.git Converted to *nix linebreaks. --- diff --git a/setup.py b/setup.py index 3f72502..2f386f8 100644 --- a/setup.py +++ b/setup.py @@ -1,54 +1,54 @@ -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'), -) +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'), +)