summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-04-17 11:28:09 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-04-17 11:28:09 -0700
commit464b98b1feda5e5b41c961cf4386cc116f1618bd (patch)
tree60cf52833585686c41ae625e811fae62c1a9b0d1
parent47927eb786f432cb069f0b00fd810c465a78fd71 (diff)
Include an 'extra_requires' for bcrypt
-rw-r--r--docs/topics/auth/passwords.txt6
-rw-r--r--setup.py3
2 files changed, 6 insertions, 3 deletions
diff --git a/docs/topics/auth/passwords.txt b/docs/topics/auth/passwords.txt
index 7ddbc63b9a..204e30b944 100644
--- a/docs/topics/auth/passwords.txt
+++ b/docs/topics/auth/passwords.txt
@@ -76,9 +76,9 @@ use it Django supports bcrypt with minimal effort.
To use Bcrypt as your default storage algorithm, do the following:
-1. Install the `bcrypt library`_ (probably by running ``sudo pip install
- bcrypt``, or downloading the library and installing it with ``python
- setup.py install``).
+1. Install the `bcrypt library`_. This can be done by running ``pip install
+ django[bcrypt]``, or by downloading the library and installing it with
+ ``python setup.py install``).
2. Modify :setting:`PASSWORD_HASHERS` to list ``BCryptSHA256PasswordHasher``
first. That is, in your settings file, you'd put::
diff --git a/setup.py b/setup.py
index 85e154907c..83fd792ffa 100644
--- a/setup.py
+++ b/setup.py
@@ -47,6 +47,9 @@ setup(
entry_points={'console_scripts': [
'django-admin = django.core.management:execute_from_command_line',
]},
+ extras_require={
+ "bcrypt": ["bcrypt"],
+ },
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',