Bug 284708 - sysutils/py-croniter: change devel/py-python-dateutil dependency to RUN_DEPENDS
Summary: sysutils/py-croniter: change devel/py-python-dateutil dependency to RUN_DEPENDS
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Steven Kreuzer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-10 13:52 UTC by Nick Hilliard
Modified: 2025-05-11 11:16 UTC (History)
3 users (show)

See Also:


Attachments
change devel/py-python-dateutil dependency from BUILD_DEPENDS to RUN_DEPENDS (684 bytes, patch)
2025-02-10 13:52 UTC, Nick Hilliard
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Hilliard 2025-02-10 13:52:04 UTC
Created attachment 257382 [details]
change devel/py-python-dateutil dependency from BUILD_DEPENDS to RUN_DEPENDS

py-croniter's dependency on python-dateutil is a runtime dependency, not a build dependency.

% python3.10 -c 'import croniter'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.10/site-packages/croniter/__init__.py", line 3, in <module>
    from .croniter import (
  File "/usr/local/lib/python3.10/site-packages/croniter/croniter.py", line 8, in <module>
    from dateutil.relativedelta import relativedelta
ModuleNotFoundError: No module named 'dateutil'
%

Without the patch below, anything depending on croniter will fail to load.
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2025-02-13 11:58:37 UTC
Assign to maintainer.
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-03-02 14:01:43 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=525c12fd26dd3990f99e35fd0019f21d9471f99e

commit 525c12fd26dd3990f99e35fd0019f21d9471f99e
Author:     Steven Kreuzer <skreuzer@FreeBSD.org>
AuthorDate: 2025-03-02 13:56:12 +0000
Commit:     Steven Kreuzer <skreuzer@FreeBSD.org>
CommitDate: 2025-03-02 13:59:23 +0000

    sysutils/py-croniter: make dateutil a runtime dependency

    PR:             284708
    Reported by:    Nick Hilliard <nick@foobar.org>

 sysutils/py-croniter/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)