8000 Converted to *nix linebreaks. · vincentleeuwen/django-tables@e14e4ac · GitHub
[go: up one dir, main page]

Skip to content

Commit e14e4ac

Browse files
committed
Converted to *nix linebreaks.
1 parent bc33f22 commit e14e4ac

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

setup.py

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
import os
2-
from distutils.core import setup
3-
4-
5-
# Figure out the version; this could be done by importing the
6-
# module, though that requires Django to be already installed,
7-
# which may not be the case when processing a pip requirements
8-
# file, for example.
9-
import re
10-
here = os.path.dirname(os.path.abspath(__file__))
11-
version_re = re.compile(
12-
r'__version__ = (\(.*?\))')
13-
fp = open(os.path.join(here, 'django_tables', '__init__.py'))
14-
version = None
15-
for line in fp:
16-
match = version_re.search(line)
17-
if match:
18-
version = eval(match.group(1))
19-
break
20-
else:
21-
raise Exception("Cannot find version in __init__.py")
22-
fp.close()
23-
24-
25-
def find_packages(root):
26-
# so we don't depend on setuptools; from the Storm ORM setup.py
27-
packages = []
28-
for directory, subdirectories, files in os.walk(root):
29-
if '__init__.py' in files:
30-
packages.append(directory.replace(os.sep, '.'))
31-
return packages
32-
33-
34-
setup(
35-
name = 'django-tables',
36-
version=".".join(map(str, version)),
37-
description = 'Render QuerySets as tabular data in Django.',
38-
author = 'Michael Elsdoerfer',
39-
author_email = 'michael@elsdoerfer.info',
40-
license = 'BSD',
41-
url = 'http://launchpad.net/django-tables',
42-
classifiers = [
43-
'Development Status :: 3 - Alpha',
44-
'Environment :: Web Environment',
45-
'Framework :: Django',
46-
'Intended Audience :: Developers',
47-
'License :: OSI Approved :: BSD License',
48-
'Operating System :: OS Independent',
49-
'Programming Language :: Python',
50-
'Topic :: Internet :: WWW/HTTP',
51-
'Topic :: Software Development :: Libraries',
52-
],
53-
packages = find_packages('django_tables'),
54-
)
1+
import os
2+
from distutils.core import setup
3+
4+
5+
# Figure out the version; this could be done by importing the
6+
# module, though that requires Django to be already installed,
7+
# which may not be the case when processing a pip requirements
8+
# file, for example.
9+
import re
10+
here = os.path.dirname(os.path.abspath(__file__))
11+
version_re = re.compile(
12+
r'__version__ = (\(.*?\))')
13+
fp = open(os.path.join(here, 'django_tables', '__init__.py'))
14+
version = None
15+
for line in fp:
16+
match = version_re.search(line)
17+
if match:
18+
version = eval(match.group(1))
19+
break
20+
else:
21+
raise Exception("Cannot find version in __init__.py")
22+
fp.close()
23+
24+
25+
def find_packages(root):
26+
# so we don't depend on setuptools; from the Storm ORM setup.py
27+
packages = []
28+
for directory, subdirectories, files in os.walk(root):
29+
if '__init__.py' in files:
30+
packages.append(directory.replace(os.sep, '.'))
31+
return packages
32+
33+
34+
setup(
35+
name = 'django-tables',
36+
version=".".join(map(str, version)),
37+
description = 'Render QuerySets as tabular data in Django.',
38+
author = 'Michael Elsdoerfer',
39+
author_email = 'michael@elsdoerfer.info',
40+
license = 'BSD',
41+
url = 'http://launchpad.net/django-tables',
42+
classifiers = [
43+
'Development Status :: 3 - Alpha',
44+
'Environment 6A47 :: Web Environment',
45+
'Framework :: Django',
46+
'Intended Audience :: Developers',
47+
'License :: OSI Approved :: BSD License',
48+
'Operating System :: OS Independent',
49+
'Programming Language :: Python',
50+
'Topic :: Internet :: WWW/HTTP',
51+
'Topic :: Software Development :: Libraries',
52+
],
53+
packages = find_packages('django_tables'),
54+
)

0 commit comments

Comments
 (0)
0