Django has a number of optional features that require the installation of 
additional Python packages.


Right now it's possible to $ pip install Django[bcrypt,argon2] to install 
Django and the optional packages (at the correct minimum version) required 
for bcrypt/argon2 support.


However this is not possible for other optional features, like 
database/cache backend, gis, certain image related features etc.

I've created a pull request adding the optional dependencies found in the 
test requirements: https://github.com/django/django/pull/9440 / 
https://code.djangoproject.com/ticket/28905

So end users can do things like:


$ pip install Django[mysql,sqlparse,images,memcached]
$ pip install Django[postgresql,gis]
$ pip install Django[selenium,test-parallel]
 

Not only would this make it much easier to install a particular combination 
of Django and optional dependencies correctly, it also makes some of the 
optional features/dependencies a little bit more discoverable.
This might not the full set of optional dependencies, or the right 
grouping/naming, so a review is more than welcome (i.e. should sqlparse be 
added to the mysql/oracle extra requirements? Should a sqlite extra be 
added that only includes sqlparse?).
 
Besides adding this to setup.py, additional changes to the documentation, 
test instructions and scripts, code warnings etc. will probably be 
necessary.

If anyone objects to adding these extra requirements I'd also like to hear 
about it.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/5a5cad2c-7b40-4800-b264-7c1ad34a284b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to