git: bcb41521efba - main - devel/py-apscheduler: unbreak with python < 3.10 after b7427cd82ccf
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Aug 2023 21:13:12 UTC
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=bcb41521efba89cd609ef4806169398b9741431c commit bcb41521efba89cd609ef4806169398b9741431c Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2023-08-13 21:11:35 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2023-08-13 21:12:39 +0000 devel/py-apscheduler: unbreak with python < 3.10 after b7427cd82ccf $ make test [...] ImportError while loading conftest 'APScheduler-3.10.2/tests/conftest.py'. tests/conftest.py:8: in <module> from apscheduler.schedulers.base import BaseScheduler apscheduler/schedulers/base.py:46: in <module> class BaseScheduler(six.with_metaclass(ABCMeta)): apscheduler/schedulers/base.py:75: in BaseScheduler _trigger_plugins = {ep.name: ep for ep in entry_points(group='apscheduler.triggers')} E TypeError: entry_points() got an unexpected keyword argument 'group' --- devel/py-apscheduler/Makefile | 1 + devel/py-apscheduler/files/patch-python39 | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/devel/py-apscheduler/Makefile b/devel/py-apscheduler/Makefile index 0c693ba492bd..ae63020dc173 100644 --- a/devel/py-apscheduler/Makefile +++ b/devel/py-apscheduler/Makefile @@ -1,5 +1,6 @@ PORTNAME= apscheduler PORTVERSION= 3.10.2 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/devel/py-apscheduler/files/patch-python39 b/devel/py-apscheduler/files/patch-python39 new file mode 100644 index 000000000000..6bf7cfb04d81 --- /dev/null +++ b/devel/py-apscheduler/files/patch-python39 @@ -0,0 +1,13 @@ +https://github.com/agronholm/apscheduler/issues/770 + +--- apscheduler/schedulers/base.py.orig 2023-08-12 22:35:56 UTC ++++ apscheduler/schedulers/base.py +@@ -67,7 +67,7 @@ class BaseScheduler(six.with_metaclass(ABCMeta)): + .. seealso:: :ref:`scheduler-config` + """ + # The `group=...` API is only available in the backport, used in <=3.7, and in std>=3.10. +- if (3, 8) <= sys.version_info <= (3, 9): ++ if (3, 8) <= sys.version_info[:2] <= (3, 9): + _trigger_plugins = {ep.name: ep for ep in entry_points()['apscheduler.triggers']} + _executor_plugins = {ep.name: ep for ep in entry_points()['apscheduler.executors']} + _jobstore_plugins = {ep.name: ep for ep in entry_points()['apscheduler.jobstores']}