Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make datetime objs timezone-aware and UTC default #256

Open
wants to merge 36 commits into
base: master
Choose a base branch
from

Commits on Nov 13, 2018

  1. schedule: make datetime objs timezone-aware and UTC default

    * fix mock now() and tests with a timezone
    * allow flake8-max-line-length to be 90
    * fixes for lack of datetime.timezone in python 2.7 (simple UTC)
    
    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 13, 2018
    Configuration menu
    Copy the full SHA
    a398883 View commit details
    Browse the repository at this point in the history
  2. Update utc class and add tests for the new code

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 13, 2018
    Configuration menu
    Copy the full SHA
    76483ce View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2018

  1. schedule/__init__.py: make datetime objs timezone-aware and UTC default

    * requires (assumes) standard config of local system and hw clocks
      (everything is UTC by default using system TZ offset)
    
    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 16, 2018
    Configuration menu
    Copy the full SHA
    f602fc0 View commit details
    Browse the repository at this point in the history
  2. schedule/__init__.py: add class-level self.logging, update log calls

    * for getting logging from the parent package, it needs to specify a
      logfile/path in logging.basicConfig, import logging, etc
    
    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 16, 2018
    Configuration menu
    Copy the full SHA
    935cf31 View commit details
    Browse the repository at this point in the history
  3. schedule: add tag param for run_all and extra logging

    * rebase of original patch over update-logging patch
    
    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 16, 2018
    Configuration menu
    Copy the full SHA
    f48d1b8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4fceba0 View commit details
    Browse the repository at this point in the history
  5. schedule/parent_logger.py: add class logging snippet

    * use this to enable separate schedule log from parent application
      "from schedule.parent_logger import setup_logging"
    
    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 16, 2018
    Configuration menu
    Copy the full SHA
    a66ad04 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    95d72c0 View commit details
    Browse the repository at this point in the history
  7. schedule/__init__.py: fix crufty datetime argument

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 16, 2018
    Configuration menu
    Copy the full SHA
    36db905 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2018

  1. __init__.py: simplify new properties, tested with get_job_info(tag)

    * last_run and idle_seconds_since are both None until jobs run once
    
    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    14b51a3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    09fd83d View commit details
    Browse the repository at this point in the history
  3. .travis.yml: disable coveralls post-build step

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    eb1deec View commit details
    Browse the repository at this point in the history
  4. Merge pull request #1 from sarnold/testing-051_pre

    Testing 051 pre-release looks good so far; tag for release and shipping on dev...
    sarnold authored Nov 21, 2018
    Configuration menu
    Copy the full SHA
    bed3f5a View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2019

  1. Configuration menu
    Copy the full SHA
    764b49f View commit details
    Browse the repository at this point in the history
  2. schedule/__init__.py: make datetime objs timezone-aware and UTC default

    * requires (assumes) standard config of local system and hw clocks
      (everything is UTC by default using system TZ offset)
    
    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    d0a2a9b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    40391c6 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #1 from sarnold/testing-051_pre

    Testing 051 pre-release looks good so far; tag for release and shipping on dev...
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    6857a87 View commit details
    Browse the repository at this point in the history
  5. test_schedule.py: fix UTC string expected result for python 2 vs 3

    Signed-off-by: Stephen Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    b2714ea View commit details
    Browse the repository at this point in the history
  6. test_schedule.py: (really) fix test for UTC time strings

    Signed-off-by: Stephen Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    fa01b4b View commit details
    Browse the repository at this point in the history
  7. hacky test updates, make logfile path an argument for setup_logging()

    * test coverage is good, test classes need cleanup
    
    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    88f5932 View commit details
    Browse the repository at this point in the history
  8. test_schedule.py: more test coverage, small wrinkle in utc tests

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    40fcc3f View commit details
    Browse the repository at this point in the history
  9. test_schedule.py: add last new test for run_all(tag)

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    8e26274 View commit details
    Browse the repository at this point in the history
  10. .travis.yml: set TZ env variable (fix for test_time() failure)

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    5f73a9b View commit details
    Browse the repository at this point in the history
  11. .travis.yml: okay, let's see what travis says the date is...

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    4fc2813 View commit details
    Browse the repository at this point in the history
  12. test_schedule.py: fix mock date for assert comparison

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    5de0f5f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    af02ea9 View commit details
    Browse the repository at this point in the history
  14. test_schedule.py: try something really simple for travis

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    5da832d View commit details
    Browse the repository at this point in the history
  15. test_schedule.py: one more silly travis test of time_test()

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    6b5cd8d View commit details
    Browse the repository at this point in the history
  16. test_schedule.py: try an even simpler test in travis...

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    471a169 View commit details
    Browse the repository at this point in the history
  17. test_schedule.py: yet another silly travis test

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    85b6cef View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    1759225 View commit details
    Browse the repository at this point in the history
  19. test_schedule.py: remove problematic tests we don't need anyway

    Signed-off-by: Steve Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    ecf4766 View commit details
    Browse the repository at this point in the history
  20. schedule/__init__.py: minor fixes and test updates

    Signed-off-by: Stephen Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    d84b3bb View commit details
    Browse the repository at this point in the history
  21. test_schedule.py: remove spurious comment

    Signed-off-by: Stephen Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    be40e3f View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    50c15c4 View commit details
    Browse the repository at this point in the history
  23. test_schedule.py: fix silly left-over merge cruft

    Signed-off-by: Stephen Arnold <[email protected]>
    sarnold committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    651e0ed View commit details
    Browse the repository at this point in the history