Package Details: python-python-crontab 3.4.0-2

Git Clone URL: https://aur.archlinux.org/python-python-crontab.git (read-only, click to copy)
Package Base: python-python-crontab
Description: Crontab module for reading and writing crontab files and accessing the system cron automatically and simply using a direct API.
Upstream URL: https://gitlab.com/doctormo/python-crontab
Licenses: GPL-3.0-or-later
Submitter: yochananmarqos
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 25
Popularity: 0.000000
First Submitted: 2023-03-03 22:30 (UTC)
Last Updated: 2026-09-05 12:41 (UTC)

Latest Comments

1 2 Next › Last »

yochananmarqos commented on 2026-09-05 12:44 (UTC)

@willemw: I've set the LANG=en_US.UTF-8 variable for the tests with 3.4.0-2.

willemw commented on 2026-09-05 09:19 (UTC)

Adding LANG=en_US.UTF-8 in check() works. Was set to LANG=C.UTF-8 in my clean build environment.

willemw commented on 2026-09-05 07:46 (UTC)

Seems locale related:

Successfully built python_crontab-3.3.0-py3-none-any.whl
==> Starting check()...
============================= test session starts ==============================
platform linux -- Python 3.14.7, pytest-9.1.0, pluggy-1.6.0
rootdir: /build/python-python-crontab/src/python-crontab-v3.4.0
configfile: pyproject.toml
collected 181 items / 2 deselected / 179 selected

tests/test_compatibility.py .......                                      [  3%]
tests/test_context.py .                                                  [  4%]
tests/test_croniter.py .....                                             [  7%]
tests/test_crontabs.py .....                                             [ 10%]
tests/test_description.py .F                                             [ 11%]
tests/test_enums.py ........                                             [ 15%]
tests/test_env.py ...........                                            [ 21%]
tests/test_equality.py ....                                              [ 24%]
tests/test_every.py .........                                            [ 29%]
tests/test_frequency.py ......................                           [ 41%]
tests/test_interaction.py ................................               [ 59%]
tests/test_log.py .......                                                [ 63%]
tests/test_range.py .........                                            [ 68%]
tests/test_removal.py ............                                       [ 74%]
tests/test_scheduler.py ....                                             [ 77%]
tests/test_scheduler_async.py .                                          [ 77%]
tests/test_system_cron.py ..........                                     [ 83%]
tests/test_usage.py ......................                               [ 95%]
tests/test_utf8.py ........                                              [100%]

=================================== FAILURES ===================================
____________________ DescriptorTestCase.test_01_description ____________________

self = <tests.test_description.DescriptorTestCase testMethod=test_01_description>

    def test_01_description(self):
        """Get Job Description"""
>       self.assertEqual(self.job.description(), self.job.comment)
E       AssertionError: 'At 20 minutes past the hour, between 10:00 and 20:59, every 2 days' != 'At 20 minutes past the hour, between 10:00 AM and 08:59 PM, every 2 days'
E       - At 20 minutes past the hour, between 10:00 and 20:59, every 2 days
E       ?                                                -
E       + At 20 minutes past the hour, between 10:00 AM and 08:59 PM, every 2 days
E       ?                                            +++     +   +++

tests/test_description.py:58: AssertionError
=============================== warnings summary ===============================
tests/test_compatibility.py: 1 warning
tests/test_crontabs.py: 3 warnings
tests/test_every.py: 9 warnings
tests/test_interaction.py: 35 warnings
tests/test_removal.py: 20 warnings
tests/test_system_cron.py: 1 warning
tests/test_utf8.py: 2 warnings
  /build/python-python-crontab/src/python-crontab-v3.4.0/crontab.py:307: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
    with codecs.open(filename, 'r', encoding='utf-8') as fhl:

tests/test_log.py::BasicTestCase::test_00_logreader
tests/test_log.py::BasicTestCase::test_01_cronreader
tests/test_log.py::BasicTestCase::test_01_iter
tests/test_log.py::BasicTestCase::test_02_cronlog
tests/test_log.py::BasicTestCase::test_03_crontab
tests/test_log.py::BasicTestCase::test_04_root
  /build/python-python-crontab/src/python-crontab-v3.4.0/cronlog.py:41: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
    self.pipe = codecs.open(self.filename, 'r', encoding='utf-8')

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_description.py::DescriptorTestCase::test_01_description - A...
=========== 1 failed, 178 passed, 2 deselected, 77 warnings in 1.26s ===========
==> ERROR: A failure occurred in check().
    Aborting...

yochananmarqos commented on 2026-09-04 19:12 (UTC)

@willemw: I can't reproduce in a clean chroot. What was the error message?

willemw commented on 2026-09-04 06:04 (UTC)

test_01_description fails in check().

begin-theadventu commented on 2023-10-10 15:36 (UTC)

A failure occurred in check.

imlonghao commented on 2023-03-04 09:24 (UTC)

will do something once the MR is accepted.

yochananmarqos commented on 2023-03-03 22:47 (UTC)

Note if you have python-crontab installed, you will need to manually remove it before installing this. See See [PRQ#40465] Merge Request for python-crontab

yochananmarqos commented on 2023-03-03 18:15 (UTC)

This should have been called python-python-crontab as the Python module is called python_crontab. This package should be the crontab module.