axnsan12 / drf-yasg

Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code.
https://drf-yasg.readthedocs.io/en/stable/
Other
3.4k stars 435 forks source link

Add Python 3.12 Support #874

Open max-muoto opened 10 months ago

max-muoto commented 10 months ago

Bug Report

Description

Python 3.12 is not supported due to the removal of pkg_resources as a public API. Its usage should be replaced with importlib.metadata. See here.

Kelketek commented 5 months ago

Just a note here-- I'm running 3.12.3 with the latest drf-yasg and it appears to be working, but it does generate warnings about upcoming deprecation for pkg_resources.

FrostKiwi commented 3 months ago

Has someone started working on this?

I'm in love with the automatic documentation this package provides, but forcing everyone to not upgrade to 3.12 just because of this package is a bit painful.

JoelLefkowitz commented 3 months ago

Has someone started working on this?

I'm in love with the automatic documentation this package provides, but forcing everyone to not upgrade to 3.12 just because of this package is a bit painful.

We have an open PR #873 but the CI checks are failing