Your message dated Fri, 10 Sep 2021 22:18:37 +0000
with message-id <e1mooqz-0006ps...@fasolo.debian.org>
and subject line Bug#989305: fixed in python-drf-spectacular 0.18.2-1
has caused the Debian Bug report #989305,
regarding python3-djangorestframework-spectacular: Does not work, attempt to
import unvailable dj_rest_auth module
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
989305: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989305
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-djangorestframework-spectacular
Version: 0.13.1-1
Severity: grave
Tags: patch
Justification: renders package unusable
Hello,
This package does not work at all, it attemps to import unavailable
dj_rest_auth module at runtime and this module is supposed to be an optional
dependency (which is not available in Debian archive).
I had a talk with upstream on Github:
https://github.com/tfranzel/drf-spectacular/issues/411
And it turned out upstream did some work to render optional modules really
optional in recent versions.
The import bug can actually be seen while building the package from a clean
chroot, Sphinx doc is not getting generated correctly (but does not crash build
for some reason):
WARNING: autodoc: failed to import module 'openapi' from module
'drf_spectacular'; the following exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc/importer.py", line
67, in import_module
return importlib.import_module(modname)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/tmp/python-drf-spectacular-0.13.1/drf_spectacular/openapi.py", line
21, in <module>
from drf_spectacular.contrib import * # noqa: F403, F401
File "/tmp/python-drf-
spectacular-0.13.1/drf_spectacular/contrib/rest_auth.py", line 3, in <module>
pytest.importorskip("dj_rest_auth")
File "/usr/lib/python3/dist-packages/_pytest/outcomes.py", line 212, in
importorskip
raise Skipped(reason, allow_module_level=True) from None
Skipped: could not import 'dj_rest_auth': No module named 'dj_rest_auth'
My django application crashes with the same error message, it cannot start.
I updated the package on SALSA to latest upstream version:
https://salsa.debian.org/python-team/packages/python-drf-spectacular
And this one is building fine, unittests run successfully and my Django app is
working again.
I'm not sure if it's too late to be included in Debian 11, but imho, it's
better not to have it than having it in current state.
Best regards, Adam.
-- System Information:
Debian Release: 11.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-6-amd64 (SMP w/32 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
--- End Message ---
--- Begin Message ---
Source: python-drf-spectacular
Source-Version: 0.18.2-1
Done: Michael Fladischer <fl...@debian.org>
We believe that the bug you reported is fixed in the latest version of
python-drf-spectacular, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 989...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Fladischer <fl...@debian.org> (supplier of updated
python-drf-spectacular package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 10 Sep 2021 21:54:42 +0000
Source: python-drf-spectacular
Architecture: source
Version: 0.18.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Michael Fladischer <fl...@debian.org>
Closes: 989305
Changes:
python-drf-spectacular (0.18.2-1) unstable; urgency=medium
.
[ Adam Cecile ]
* New upstream release (Closes: #989305).
.
[ Michael Fladischer ]
* New upstream release.
* Refresh patches.
* Bump Standards-Version to 4.6.0.1.
* Add patch to skip rest_framework_simplejwt tests if not installed.
Checksums-Sha1:
ccd40c289cc326b0f5f191ada170e26507b4c230 2329
python-drf-spectacular_0.18.2-1.dsc
0b481a602fefeb31a2e205b6c9da62582b7533ca 139595
python-drf-spectacular_0.18.2.orig.tar.gz
41e535e3bd154bd05d79fb9d29e83aec1e7d004f 4360
python-drf-spectacular_0.18.2-1.debian.tar.xz
2cd9e1ffafc9b694444f1ef2c30df88720f2e483 8915
python-drf-spectacular_0.18.2-1_arm64.buildinfo
Checksums-Sha256:
3b6c0aea2f8a6295c3d5f90aff2624fa790899b9b5b6e942ee72888787b2bee5 2329
python-drf-spectacular_0.18.2-1.dsc
8745f9600ec2405930935beda4c528aca0d879d7a3edaa2c02a8fb2799450b17 139595
python-drf-spectacular_0.18.2.orig.tar.gz
4cd374a882f61f99400e24c2bc704af10c0854206c2d65281aa09f5cbc61578b 4360
python-drf-spectacular_0.18.2-1.debian.tar.xz
4a2672fb639329c948bfe19ff54077b770c6f740e2d7ff646ed9c80cdb46f59b 8915
python-drf-spectacular_0.18.2-1_arm64.buildinfo
Files:
38bc94d0179df71efb4ce36ecc0d1945 2329 python optional
python-drf-spectacular_0.18.2-1.dsc
7dc6c92c4eccaa3b059d4a28cb9a3329 139595 python optional
python-drf-spectacular_0.18.2.orig.tar.gz
9f7add90c96f3e93f4f1cf452cdb3ce6 4360 python optional
python-drf-spectacular_0.18.2-1.debian.tar.xz
1804bb91bc8935bec8a9a83fb12a4fa8 8915 python optional
python-drf-spectacular_0.18.2-1_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEqVSlRXW87UkkCnJc/9PIi5l90WoFAmE71ngACgkQ/9PIi5l9
0WpMyAf/dKZKx8CnSPVG2s0T4VsSC7TyBY6AmCXxpmAKF30EJ/9NKH0NFtzfFfAt
mcQ/FFqnlSk5owrQHckm7yFZUrGPUINMUYA1HPFsKemsRyhLM5eS5vc0sko1rRkW
naKBaQU+JiMy8HCsbztlfKLTtN8XnWPWMR3YzYCEJ6bzoyr8KuAfzydh8bxq8yhK
PBw3Bv9F9Z74AN1Ho7+rvorJozEocQ1WotYBiPZrLKsy4Q+OvQmpKDgPh8QcaVo0
oHqSx3qrjpBTwDkxQBfm3SH1rLBYsWdZKt3Q8DqrLgykn5F/F533pGDfA+zcJwMb
pcViPVNriHnvRbSO6DAxeUzEaSlXqg==
=n8J6
-----END PGP SIGNATURE-----
--- End Message ---