Commit c341469
authored
fix(django-spanner): declare django dependency in setup.py (#18044)
## Description
Declares `"django >= 5.2, < 5.3"` in `install_requires` (`dependencies`)
for `django-google-spanner`.
## Motivation
`django_spanner` imports and requires `django` directly at top-level
import time and explicitly checks for Django 5.2 compatibility in
`django_spanner/__init__.py`.
Without `django` listed in `setup.py`, installing
`django-google-spanner` in a clean environment (such as during the
`import-profiler` presubmit check) caused imports to fail with:
ModuleNotFoundError: No module named 'django'
Tracking issue for Django 6.0 support: #180531 parent 495839e commit c341469
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
0 commit comments