irsync 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
irsync/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """irsync — rename-aware rsync wrapper that uses inode snapshots to skip retransfer of moved files."""
2
+
3
+ __version__ = "0.1.0"
irsync/__main__.py ADDED
@@ -0,0 +1,12 @@
1
+ """Entry point for `python -m irsync`."""
2
+
3
+ from irsync.cli import main
4
+
5
+ if __name__ == "__main__":
6
+ # Propagate main()'s return value as the process exit status. Without
7
+ # this, `python -m irsync` exited 0 for every failure — refused run (2),
8
+ # lock held (75), user abort (130), rsync's own non-zero code — so a cron
9
+ # wrapper saw success no matter what happened. The `irsync` console
10
+ # script always had this behaviour (its generated wrapper calls
11
+ # sys.exit(main())); this makes the two entry points agree.
12
+ raise SystemExit(main())