All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
- Updated
requests
and its dependencies.
- Changed versioning of previous version (was
1.1.7
) to1.2.0
, making this change1.2.1
.
- Updated
urllib3
.
- Added new logger message in crontabber.py when creating new cron jobs.
- Added new exception
config.ShutdownDisabled
for when shutdown scripts are disabled. - Added new function
is_shutdown_time_int()
sure that shutdown time hour and minute are bothint
.
- Moved main script contents of process.py into new function
main()
.
- #5 - Fixed duplicating shutdown cron jobs even when disabled in the configuration.
- Updated
urllib3
.
- Rewrote parts of the readme to improve clarity.
- The code has been linted with
Flake8
andmypy
. - Any instance of
class Error(Exception)
was removed and replaced in favor of other exceptions. (e.g.ValueError
) In other words, any subclassedError
s now subclass a different exception. - In config.py:
- Synced changes from my skeleton git repo.
- Both custom errors
InvalidConfigError
andTimeError
now subclassValueError
rather thanError
, which was itself a subclass ofException
. MAX_H
andMAX_M
were marked private, as_MAX_H
and_MAX_M
respectively.
- In process.py: Fixed
failsafe
being mis-assigned; it was incorrectly assignedconfig['failsafe']
when it was meant to beconfig.CONF['failsafe']
. - In remove.py: Fixed invalid
mode
in
- Updated
pyyaml
andlxml
for dependabot alerts.
- Fixed issue with remove.py treating
switch_on
jobs asswitch_off
to remove
- Minor code changes: relative paths are accepted for
env
in config.yaml provided thatenv
is withinroot
- Use
RotatingFileHandler
for logs - Minor code polish
- On/off scripts are now called by
cd
ing into the scripts' root and executing from there - Replaced all
assert
s andAssertionError
s with more Pythonic checks StreamLogger
set toINFO
- Removed and/or replaced duplicating
print
s with logging
crontabber.AutoConfigError
- error when registering auto-scripts
- Configuration missing errors on auto-scripts
conf[shutdown][remove]
now dictates whether shutdown/switch_off
scripts should be added- logger level for whether to add shutdown scripts is now
info
rather thanwarning
env
issue on auto-scripts- Exceptions not grouped
- New crontabber.py to manage the
crontab
library - New remove.py to auto-remove cron jobs
- Can now register cron jobs programmatically; simply call
crontabber.py
as main- Will register both process.py and remove.py
- Failsafe implemented in config, if API cannot be reached
- Configuration is now stored in config.py to be accessible by all new files
- Initial version