Version 2.7.0 no longer supports python 2.7 - Invalid syntax
Version 2.7.0 that was released on Dec 20, 2022 implements syntax that is only available in Python 3.
In the crontab.py file line 318 the '*' is used to unpack the "before" argument in the append function.
The use of an '*' in expression lists wasn't available in Python 2. Therefore this is causing a SyntaxError to be thrown.
If Python 2.7 support has been withdrawn fair enough. I would recommend updating the Extra Support section of the description to remove the statement "Python 2.7 tested".
Thanks for all your efforts and time.
Example of the error being thrown in Python 2.7 ` Python 2.7.18 (default, Jul 1 2022, 12:27:04) [GCC 9.4.0] on linux2 Type "help", "copyright", "credits" or "license" for more information.
*_ = ['a','b','c'] File "", line 1 *_ = ['a','b','c'] ^ SyntaxError: invalid syntax ` Example of a failed installation of python-crontab 2.7.0
collecting python-crontab>=2.3.4
#21 24.94 Downloading python-crontab-2.7.0.tar.gz (55 kB)
#21 25.12 ERROR: Command errored out with exit status 1:
#21 25.12 command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l8BhsJ/python-crontab/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l8BhsJ/python-crontab/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-FTBvOt
#21 25.12 cwd: /tmp/pip-install-l8BhsJ/python-crontab/
#21 25.12 Complete output (8 lines):
#21 25.12 Traceback (most recent call last):
#21 25.12 File "<string>", line 1, in <module>
#21 25.12 File "/tmp/pip-install-l8BhsJ/python-crontab/setup.py", line 23, in <module>
#21 25.12 from crontab import __version__, __pkgname__
#21 25.12 File "crontab.py", line 318
#21 25.12 *_, before = before
#21 25.12 ^
#21 25.12 SyntaxError: invalid syntax