forked from ericflo/django-memcached
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
67 lines (50 loc) · 1.88 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, find_packages
version = '0.1.2'
LONG_DESCRIPTION = """
django-memcached
=================
This is a very simple reusable app which does one thing: shows you statistics
about your currently running memcached instances. There are no database models
and not much configuration.
Installing django-memcached
----------------------------
1. Either download the tarball and run ``python setup.py install``, or simply
use easy install or pip like so ``easy_install django-memcached``.
2. Add django_memcached to your ``INSTALLED_APPS`` setting::
INSTALLED_APPS = (
# ...
'django_memcached',
)
3. Add the urls to your url configuration::
urlpatterns = patterns('',
# ...
(r'^cache/', include('django_memcached.urls')),
)
4. If you want to restrict these urls to only staff members, just add this
setting to your settings file::
DJANGO_MEMCACHED_REQUIRE_STAFF = True
That's it. Hopefully this app gives you a little insight into how your
memcached servers are being utilized.
"""
setup(
name='django-memcached',
version=version,
description="django-memcached is a very simple reusable app which does one simple thing: shows you statistics about your currently running memcached instances",
long_description=LONG_DESCRIPTION,
classifiers=[
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Django",
"Environment :: Web Environment",
],
keywords='memcached,django',
author='Eric Florenzano',
author_email='[email protected]',
url='http://github.com/ericflo/django-memcached/tree/master',
license='BSD',
packages=find_packages(),
zip_safe=False,
install_requires=['setuptools'],
include_package_data=True,
setup_requires=['setuptools_git'],
)