-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·44 lines (39 loc) · 1.45 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
from setuptools import setup, find_packages
with open('secure_redis/__init__.py', 'r') as init_file:
version = re.search(
'^__version__ = [\'"]([^\'"]+)[\'"]',
init_file.read(),
re.MULTILINE,
).group(1)
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-redis-secure',
version=version,
packages=find_packages(),
license='MIT',
include_package_data=True,
description=(
'Django caching plugin for django-redis that adds a Serializer class and configuration to support '
'transparent, symmetrical encryption of cached values using the python cryptography library. This '
'plugin also provides encryption for django-rq jobs by simply using the @secure_redis.secure_rq.job '
'decorator to annotate the task method instead of using @django_rq.job.'
),
url='http://github.com/foundertherapy/django-redis-secure/',
download_url='https://github.com/foundertherapy/django-redis-secure/archive/' + version + '.tar.gz',
author='FounderTherapy',
author_email='[email protected]',
install_requires=[
'Django>=1.9',
'cryptography>=0.8.2',
'django-rq>=0.9.1',
'rq>=0.6.0',
'rq-scheduler>=0.6.1',
'django-redis',
],
keywords=['encryption', 'django', 'redis', 'rq', ],
)