package/python-apscheduler: new package
PATCH 1/2 package/python-apscheduler: new package
Signed-off-by Marcus Hoffmann <[email protected]>
--- DEVELOPERS | 1 + package/Config.in | 1 + package/python-apscheduler/Config.in | 7 +++++++ .../python-apscheduler/python-apscheduler.hash | 5 +++++ package/python-apscheduler/python-apscheduler.mk | 15 +++++++++++++++ 5 files changed, 29 insertions(+) create mode 100644 package/python-apscheduler/Config.in create mode 100644 package/python-apscheduler/python-apscheduler.hash create mode 100644 package/python-apscheduler/python-apscheduler.mk
DEVELOPERS +1 -0
@@ -2274,6 +2274,7 @@ N: Marcus Hoffmann <[email protected]> F: package/nethogs/ F: package/pico-sdk/ F: package/picotool/ +F: package/python-apscheduler/ F: package/python-immutabledict/ F: package/python-jc/ F: package/python-pydantic/
package/Config.in +1 -0
@@ -1008,6 +1008,7 @@ menu "External python modules" source "package/python-anyio/Config.in" source "package/python-apispec/Config.in" source "package/python-appdirs/Config.in" + source "package/python-apscheduler/Config.in" source "package/python-argcomplete/Config.in" source "package/python-argh/Config.in" source "package/python-argon2-cffi/Config.in"
package/python-apscheduler/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_PYTHON_APSCHEDULER + bool "python-apscheduler" + select BR2_PACKAGE_PYTHON_TZLOCAL # runtime + help + Task scheduling library for Python. + + https://apscheduler.readthedocs.io
package/python-apscheduler/python-apscheduler.hash new file +5 -0
@@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/apscheduler/json +md5 1705663d09aeb1b174f964780c57520a apscheduler-3.11.0.tar.gz +sha256 4c622d250b0955a65d5d0eb91c33e6d43fd879834bf541e0a18661ae60460133 apscheduler-3.11.0.tar.gz +# Locally computed sha256 checksums +sha256 6163f7987dfb38d6bc320ce2b70b2f02b862bc41126516d552ef1cd43247e758 LICENSE.txt
package/python-apscheduler/python-apscheduler.mk new file +15 -0
@@ -0,0 +1,15 @@ +################################################################################ +# +# python-apscheduler +# +################################################################################ + +PYTHON_APSCHEDULER_VERSION = 3.11.0 +PYTHON_APSCHEDULER_SOURCE = apscheduler-$(PYTHON_APSCHEDULER_VERSION).tar.gz +PYTHON_APSCHEDULER_SITE = https://files.pythonhosted.org/packages/4e/00/6d6814ddc19be2df62c8c898c4df6b5b1914f3bd024b780028caa392d186 +PYTHON_APSCHEDULER_SETUP_TYPE = setuptools +PYTHON_APSCHEDULER_DEPENDENCIES = host-python-setuptools-scm +PYTHON_APSCHEDULER_LICENSE = MIT +PYTHON_APSCHEDULER_LICENSE_FILES = LICENSE.txt + +$(eval $(python-package))
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/apscheduler: new runtime test
Signed-off-by Marcus Hoffmann <[email protected]>
--- DEVELOPERS | 2 ++ .../tests/package/sample_python_apscheduler.py | 15 +++++++++++++++ .../tests/package/test_python_apscheduler.py | 12 ++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 support/testing/tests/package/sample_python_apscheduler.py create mode 100644 support/testing/tests/package/test_python_apscheduler.py
DEVELOPERS +2 -0
@@ -2284,12 +2284,14 @@ F: package/python-ruamel-yaml-clib/ F: package/python-typing-inspection/ F: package/python-tzlocal/ F: package/python-waitress/ +F: support/testing/tests/package/test_python_apscheduler.py F: support/testing/tests/package/test_python_fastapi.py F: support/testing/tests/package/test_python_pydantic.py F: support/testing/tests/package/test_python_pydantic_settings.py F: support/testing/tests/package/test_python_ruamel_yaml.py F: support/testing/tests/package/test_python_tzlocal.py F: support/testing/tests/package/test_python_waitress.py +F: support/testing/tests/package/sample_python_apscheduler.py F: support/testing/tests/package/sample_python_fastapi.py F: support/testing/tests/package/sample_python_pydantic.py F: support/testing/tests/package/sample_python_pydantic_settings.py
support/testing/tests/package/sample_python_apscheduler.py new file +15 -0
@@ -0,0 +1,15 @@ +from queue import Queue +from apscheduler.schedulers.background import BackgroundScheduler + +queue = Queue() + + +def work(): + queue.put("Ping!") + + +scheduler = BackgroundScheduler() +scheduler.add_job(work, "interval", seconds=1) +scheduler.start() +result = queue.get(timeout=3) +assert result == "Ping!"
support/testing/tests/package/test_python_apscheduler.py new file +12 -0
@@ -0,0 +1,12 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy3Apscheduler(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_APSCHEDULER=y + """ + sample_scripts = ["tests/package/sample_python_apscheduler.py"] + timeout = 15
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 1 line · Marcus Hoffmann via buildroot
Signed-off-by Marcus Hoffmann <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot