-
Notifications
You must be signed in to change notification settings - Fork 86
/
setup.py
67 lines (57 loc) · 2.91 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
from setuptools import setup
from annoying import __version__
setup(
name="django-annoying",
version=__version__,
packages=["annoying"],
author="Stavros Korokithakis",
author_email="[email protected]",
description="This is a django application that tries to eliminate annoying things in the Django framework.",
long_description="""
**Features:**
- render_to decorator - Reduce typing in django views.
- signals decorator - Allow using signals as decorators.
- ajax_request decorator - Returns JsonResponse with dict as content.
- autostrip decorator - Strip form text fields before validation.
- get_object_or_None function - Similar to get_object_or_404, but returns None if the object is not found.
- get_config function - Get settings from django.conf if exists, return a default value otherwise.
- AutoOneToOne field - Creates related object on first call if it doesn't exist yet.
- HttpResponseReload - Reload and stay on same page from where request was made.
- StaticServer middleware - Instead of configuring urls.py, just add this middleware and it will serve you static files.
- JSONField - A field that stores a Python object as JSON and retrieves it as a Python object.
**Installation instructions:**
- Copy the "annoying" directory to your Django project or put it in your PYTHONPATH.
- You can also run "python setup.py install", "easy_install django-annoying", or "pip install django-annoying".
**Download:**
- git clone git://github.com/skorokithakis/django-annoying.git
- hg clone http://bitbucket.org/Stavros/django-annoying/
""",
license="BSD",
keywords="django",
url="https://github.com/skorokithakis/django-annoying",
install_requires=["Django >= 1.11", "six"],
python_requires=">=3.0",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 1.11",
"Framework :: Django :: 2.0",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
package_data={"annoying": ["py.typed"]},
)