From 2f74c0f91da0a5aefce7715213935eee0069c738 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 3 Sep 2021 10:50:26 +0200 Subject: Add Executable --- src/scripts/xbackup | 24 ++++++++++++++++++++++++ src/setup.py | 1 + src/xbackup/__main__.py | 21 --------------------- 3 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 src/scripts/xbackup delete mode 100644 src/xbackup/__main__.py diff --git a/src/scripts/xbackup b/src/scripts/xbackup new file mode 100644 index 0000000..0155203 --- /dev/null +++ b/src/scripts/xbackup @@ -0,0 +1,24 @@ +#!/usr/bin/python3 +# vim: shiftwidth=4 tabstop=4 expandtab + + +"""Main Executable of xbackup + +Have a look at https://gitea.xengineering.eu/xengineering/xbackup for details. +""" + + +import argparse + +import xbackup + + +def main(): + """Main Function of this Script""" + + parser = argparse.ArgumentParser() + parser.parse_args() + + +if __name__ == "__main__": + main() diff --git a/src/setup.py b/src/setup.py index 4666c36..4279fe8 100644 --- a/src/setup.py +++ b/src/setup.py @@ -12,4 +12,5 @@ setup(name="xbackup", author_email="me@xengineering.eu", url="https://xengineering.eu", packages=["xbackup"], + scripts=["scripts/xbackup"], ) diff --git a/src/xbackup/__main__.py b/src/xbackup/__main__.py deleted file mode 100644 index 1646a5f..0000000 --- a/src/xbackup/__main__.py +++ /dev/null @@ -1,21 +0,0 @@ -# vim: shiftwidth=4 tabstop=4 expandtab - - -"""Main Executable of xbackup - -Have a look at https://gitea.xengineering.eu/xengineering/xbackup for details. -""" - - -import argparse - - -def main(): - """Main Function of this Script""" - - parser = argparse.ArgumentParser() - parser.parse_args() - - -if __name__ == "__main__": - main() -- cgit v1.2.3-70-g09d2