Skip to content

Can 'coreapi' dependency be dropped? #145

Closed
@intgr

Description

@intgr

What's wrong

Hi! In my project, djangorestframework-stubs's dependency on coreapi pulls in several unneeded dependencies, which could otherwise be removed.

djangorestframework-stubs 1.4.0 PEP-484 stubs for django-rest-framework
├── coreapi >=2.0.0
│   ├── coreschema * 
│   │   └── jinja2 * 
│   │       └── markupsafe >=0.23 
│   ├── itypes * 
│   ├── requests * 
│   │   ├── certifi >=2017.4.17 
│   │   ├── chardet >=3.0.2,<5 
│   │   ├── idna >=2.5,<3 
│   │   └── urllib3 >=1.21.1,<1.27 
│   └── uritemplate * 
│   ...

I don't entirely understand the relationship bertween DRF and coreapi, since I haven't used that functionality. But I notice that DRF upstream has been deprecating the dependency, and the latest 3.12 version no longer requires it.

https://www.django-rest-framework.org/community/3.10-announcement/

This release begins the deprecation process for the CoreAPI based schema generation, and introduces OpenAPI schema generation in its place.


I can put in some development work myself, but I don't know where to start yet. So first I wanted to see if the maintainers already have an idea about what needs to be done?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions