-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
50 lines (46 loc) · 1.46 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python
# User: Troy Evans
# Date: 1/24/13
# Time: 8:54 PM
#
# Copyright 2012, Nutrislice Inc. All rights reserved.
from distutils.core import setup
import threadlocalrequest
def read_files(*filenames):
"""
Output the contents of one or more files to a single concatenated string.
"""
output = []
for filename in filenames:
f = open(filename)
try:
output.append(f.read())
finally:
f.close()
return '\n\n'.join(output)
setup(
name='threadlocalrequest',
version=threadlocalrequest.VERSION,
url='https://github.com/t-evans/django-threadlocalrequest.git',
description='Contains middleware for placing the current Django request in threadlocal storage.',
long_description=read_files('README.md'),
author='Troy Evans',
author_email='[email protected]',
platforms=['any'],
packages=[
'threadlocalrequest',
],
#package_data={'threadlocalrequest': ['docs/*', 'docs/ref/*.rst']},
classifiers=[
'Development Status :: Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
],
zip_safe=False,
)