Skip to content

Commit 8eb0642

Browse files
committed
added files for packaging
1 parent eceb489 commit 8eb0642

File tree

5 files changed

+68
-5
lines changed

5 files changed

+68
-5
lines changed

LICENSE

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright (c) 2011, Zach Mathew
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in the
11+
documentation and/or other materials provided with the distribution.
12+
* Neither the name of Trapeze Media nor the names of its contributors
13+
may be used to endorse or promote products derived from this software
14+
without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26+
POSSIBILITY OF SUCH DAMAGE.

MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.md
2+
include LICENSE

README.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ Dependencies
9090
* jQuery Iframe Transport plugin (included in this package)
9191

9292

93-
Installation
94-
------------
93+
App Installation
94+
----------------
9595

9696
1. Add `ajax_upload` to your `INSTALLED_APPS` setting.
9797

@@ -102,8 +102,16 @@ Installation
102102
(r'^ajax-upload/', include('ajax_upload.urls')),
103103
)
104104

105-
1. Run the tests to verify it is working.
105+
1. That's it (don't forget include the Javascript as mentioned above).
106+
106107

107-
./manage.py test ajax_upload
108+
Running the Tests
109+
-----------------
108110

109-
1. That's it (don't forget include the Javascript as mentioned above).
111+
./manage.py test ajax_upload
112+
113+
114+
License
115+
-------
116+
117+
This app is licensed under the BSD license. See the LICENSE file for details.

ajax_upload/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Provides AJAX file upload functionality for FileFields and ImageFields with a simple widget replacement in the form."""
2+
3+
VERSION = (1, 0, 0)
4+
5+
__version__ = '.'.join(map(str, VERSION))

setup.py

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from distutils.core import setup
2+
3+
import ajax_upload
4+
5+
6+
setup(
7+
name='django-linguo',
8+
packages=['ajax_upload', 'ajax_upload.tests'],
9+
version=ajax_upload.__version__,
10+
description=ajax_upload.__doc__,
11+
long_description=open('README.md').read(),
12+
classifiers=[
13+
'Framework :: Django',
14+
'Intended Audience :: Developers',
15+
'License :: OSI Approved :: BSD License',
16+
'Operating System :: OS Independent',
17+
'Topic :: Software Development'
18+
],
19+
author='Zach Mathew',
20+
url='http://github.com/zmathew/django-ajax-upload-widget',
21+
license='BSD',
22+
)

0 commit comments

Comments
 (0)