pyinfra v1.3 Release Notes

Release Date: 2020-12-09 // over 3 years ago
  • ๐Ÿš€ Theme of this release is improving error handling and end user experience. Highlights:

    • ๐Ÿ‘‰ Make most global arguments dynamic - support different chdir, sudo, etc for different hosts within the same operation call
    • ๐Ÿ‘ Rework line number ordering to support any nested function calls and/or imports
    • ๐Ÿ‘Œ Improve error handling for unexpected internal (pyinfra) and external (user code) errors
    • Detect and error when an operation calls another using global arguments
    • Properly fail when fact commands don't execute correctly vs. a given command not being present on the host, using requires_command fact attribute

    โšก๏ธ Operation & fact updates:

    • โž• Add git.worktree operation (@remybar)
    • โž• Add git.bare_repo operation (@stchris)
    • โž• Add user_mode argument to systemd.service operation (@jprltsnz)
    • ๐Ÿ‘‰ Use hostnamectl where available for server.hostname operation
    • ๐Ÿ‘‰ Use uname -a for hostname fact
    • โž• Add user fact

    Other bits:

    • Enable using use_sudo_password without sudo=True
    • ๐Ÿ“š Move testing & documentation processes to GitHub actions
    • ๐ŸŽ Run tests on Windows & MacOS