Bug 277928 - www/py-django-ldapdb: Deprecate/Set to expire
Summary: www/py-django-ldapdb: Deprecate/Set to expire
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kai Knoblich
URL: https://github.com/django-ldapdb/djan...
Keywords:
Depends on:
Blocks: 276319
  Show dependency treegraph
 
Reported: 2024-03-24 17:13 UTC by Kai Knoblich
Modified: 2024-04-24 04:21 UTC (History)
1 user (show)

See Also:
kai: maintainer-feedback-


Attachments
deprecate-py-django-ldapdb.patch (581 bytes, patch)
2024-03-24 17:13 UTC, Kai Knoblich
kai: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Knoblich freebsd_committer freebsd_triage 2024-03-24 17:13:23 UTC
Created attachment 249453 [details]
deprecate-py-django-ldapdb.patch

Hi,

the www/py-django-ldapdb port you maintain isn't compatible with Django 4.2 or later. See also issue #207 at the upstream repository for more details.

The issue there has been reported two years ago and there's no permanent fix so far.  Because Django 3.2 reaches its EoL (= End-of-Life) in April the port should be deprecated with an expiration date.

> [...]
>  File "/usr/local/lib/python3.9/site-packages/ldapdb/models/__init__.py", line 5, in <module>
>    from ldapdb.models.base import Model  # noqa
>  File "/usr/local/lib/python3.9/site-packages/ldapdb/models/base.py", line 12, in <module>
>    from . import fields as ldapdb_fields
>  File "/usr/local/lib/python3.9/site-packages/ldapdb/models/fields.py", line 367, in <module>
>    EPOCH = timezone.utc.localize(datetime.datetime.utcfromtimestamp(0))
> AttributeError: 'datetime.timezone' object has no attribute 'localize'
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-04-24 04:10:16 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=45210ce5f4b39210567916e69025df576051d578

commit 45210ce5f4b39210567916e69025df576051d578
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2024-04-24 04:00:47 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2024-04-24 04:03:01 +0000

    www/py-django-ldapdb: Deprecate/Set to expire

    * The code is not compatible with Django 4.2 or newer and upstream no
      longer seems to be maintained.  Thus deprecate the port and set an
      expiration date.

    PR:             277928
    Approved by:    maintainer timeout (3+ weeks)

 www/py-django-ldapdb/Makefile | 3 +++
 1 file changed, 3 insertions(+)
Comment 2 Kai Knoblich freebsd_committer freebsd_triage 2024-04-24 04:20:38 UTC
Comment on attachment 249453 [details]
deprecate-py-django-ldapdb.patch

^Triage: Setting maintainer-approval flag to '+' due maintainer's timeout.