Skip to content

Add project metadata for all optional dependencies #157

Description

@njgrisafi

Code of Conduct

  • I agree to follow Django's Code of Conduct

Feature Description

Django lists all optional dependencies in project metadata.

Problem

Django has support for thirdparty dependencies but sometimes they are not listed in the project metadata. If your project uses one of these dependencies it may impact django's behavior.

A quick query shows these imports exist django code but not marked as an optional dependency

django = ["Pillow", "PyYAML", "colorama", "docutils", "geoip2", "ipdb", "isort", "jinja2", "numpy", "psycopg", "psycopg-pool", "psycopg2-binary"]

For example, psycopg is referenced in code
https://github.com/django/django/blob/57b23d15259c32dba80bb093645242f1b3b25365/django/db/backends/postgresql/psycopg_any.py#L4-L9

By looking at the django project metadata we cannot infer that django has support for one of these package.

Request or proposal

request

Additional Details

No response

Implementation Suggestions

Extend the optional dependencies in the pyproject.toml https://github.com/django/django/blob/57b23d15259c32dba80bb093645242f1b3b25365/pyproject.toml#L40-L42

Metadata

Metadata

Assignees

No one assigned

    Labels

    Django CoreThis idea is suitable for inclusion in Django itself.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Idea refinement - Team creation - For approval

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions