| 1 |
# -*- coding: utf-8 -*- |
| 2 |
|
| 3 |
from __future__ import unicode_literals |
| 4 |
import warnings |
| 5 |
|
| 6 |
|
| 7 |
__title__ = "drf-haystack" |
| 8 |
__version__ = "1.9.1" |
| 9 |
__author__ = "Rolf Haavard Blindheim" |
| 10 |
__license__ = "MIT License" |
| 11 |
|
| 12 |
VERSION = __version__ |
| 13 |
|
| 14 |
|
| 15 |
def show_sunset_warning(): |
| 16 |
"""Show a warning about potential future sunsetting.""" |
| 17 |
message = ( |
| 18 |
"\n" |
| 19 |
"==============================================================================\n" |
| 20 |
"The `drf-haystack` project urgently needs new maintainers!\n" |
| 21 |
"\n" |
| 22 |
"The current maintainers are no longer actively using drf-haystack and would\n" |
| 23 |
"like to hand over the project to other developers who are using the package.\n" |
| 24 |
"\n" |
| 25 |
"We will still do the bare minimum maintenance of keeping dependency references\n" |
| 26 |
"up to date with new releases of related packages until January 1st 2026.\n" |
| 27 |
"\n" |
| 28 |
"If by that time no new maintainers have joined to take over the project, we\n" |
| 29 |
"will archive the project and make the repository read-only, with a final\n" |
| 30 |
"release with whatever versions the dependencies have at that time.\n" |
| 31 |
"\n" |
| 32 |
"This gives everyone more than a year to either consider joining as maintainers\n" |
| 33 |
"or switch to other packages for handling their search in DRF.\n" |
| 34 |
"\n" |
| 35 |
"Do you want to join as a maintainer? Have a look at:\n" |
| 36 |
"<https://github.com/rhblind/drf-haystack/issues/146>\n" |
| 37 |
"==============================================================================\n" |
| 38 |
) |
| 39 |
warnings.warn(message, UserWarning, stacklevel=2) |
| 40 |
|
| 41 |
|
| 42 |
show_sunset_warning() |