|
gawel@0
|
1 |
# -*- coding: utf-8 -*- |
|
gawel@44
|
2 |
# (c) 2008 Gael Pasgrimaud and contributors |
|
gawel@44
|
3 |
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php |
|
gawel@0
|
4 |
from setuptools import setup, find_packages |
|
gawel@0
|
5 |
import sys, os |
|
gawel@0
|
6 |
|
|
gael@138
|
7 |
version = '0.8' |
|
gawel@0
|
8 |
|
|
gawel@53
|
9 |
long_description = '' |
|
gawel@56
|
10 |
long_description += open('README.txt').read() |
|
gawel@56
|
11 |
long_description += '\n' |
|
gawel@56
|
12 |
|
|
ccomb@97
|
13 |
for filename in ('description.txt', |
|
gawel@105
|
14 |
'upload.txt', |
|
gawel@105
|
15 |
'storage.txt', |
|
ccomb@97
|
16 |
'paste-factories.txt', |
|
ccomb@97
|
17 |
'jquery-plugin.txt', |
|
ccomb@97
|
18 |
'contributors.txt'): |
|
ccomb@97
|
19 |
long_description += open(os.path.join('docs', filename)).read() |
|
ccomb@97
|
20 |
long_description += '\n' |
|
gawel@53
|
21 |
|
|
gawel@1
|
22 |
setup(name='gp.fileupload', |
|
gawel@0
|
23 |
version=version, |
|
ccomb@97
|
24 |
description="A WSGI middleware to get some stats on large files upload," |
|
ccomb@97
|
25 |
"and provide a progress bar for your users", |
|
gawel@53
|
26 |
long_description=long_description + \ |
|
gawel@56
|
27 |
'News\n****\n\n' + |
|
gawel@50
|
28 |
open('CHANGES.txt').read(), |
|
gawel@0
|
29 |
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers |
|
gawel@0
|
30 |
classifiers=[ |
|
ccomb@99
|
31 |
"Development Status :: 4 - Beta", |
|
gawel@0
|
32 |
"Programming Language :: Python", |
|
gawel@24
|
33 |
"Intended Audience :: Developers", |
|
gawel@44
|
34 |
"License :: OSI Approved :: MIT License", |
|
gawel@24
|
35 |
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware", |
|
gawel@0
|
36 |
"Topic :: Software Development :: Libraries :: Python Modules", |
|
ccomb@99
|
37 |
"Environment :: Web Environment", |
|
ccomb@99
|
38 |
"Programming Language :: Python", |
|
ccomb@99
|
39 |
"Programming Language :: JavaScript", |
|
gawel@0
|
40 |
], |
|
ccomb@97
|
41 |
keywords='wsgi middleware upload progress bar', |
|
gawel@0
|
42 |
author='Gael Pasgrimaud', |
|
gawel@0
|
43 |
author_email='gael@gawel.org', |
|
gael@135
|
44 |
url='http://www.gawel.org/docs/gp.fileupload/', |
|
gawel@64
|
45 |
license='MIT', |
|
gawel@0
|
46 |
namespace_packages=['gp'], |
|
ccomb@97
|
47 |
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), |
|
gael@133
|
48 |
package_data={'gp/fileupload': ['static/*',]}, |
|
gawel@0
|
49 |
include_package_data=True, |
|
gawel@0
|
50 |
zip_safe=False, |
|
gawel@0
|
51 |
install_requires=[ |
|
gawel@1
|
52 |
'setuptools', |
|
gawel@80
|
53 |
'Paste', |
|
gawel@121
|
54 |
'WebOb', |
|
gawel@0
|
55 |
], |
|
gawel@0
|
56 |
entry_points=""" |
|
gawel@0
|
57 |
# -*- Entry points: -*- |
|
gawel@0
|
58 |
[paste.app_factory] |
|
gawel@1
|
59 |
sample = gp.fileupload.sampleapp:make_app |
|
gawel@6
|
60 |
|
|
gawel@6
|
61 |
[paste.filter_app_factory] |
|
gawel@53
|
62 |
main = gp.fileupload:make_app |
|
gawel@0
|
63 |
""", |
|
gawel@0
|
64 |
) |
|
gawel@118
|
65 |
|