From 935b009eecf02b6909a5563bae4a90c342f8d4e6 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 3 Sep 2021 10:22:49 +0200 Subject: Implement Python Packaging --- src/Makefile | 14 ++++++++++++++ src/setup.py | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/Makefile create mode 100644 src/setup.py diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..c3a3660 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,14 @@ +# vim: shiftwidth=4 tabstop=4 noexpandtab + +DESTDIR="" # leave empty for the current system or provide a fakeroot here + +.PHONY: all clean install + +all: + python setup.py build + +clean: + rm -rf build + +install: all + python setup.py install --root=$(DESTDIR) --optimize=1 --skip-build diff --git a/src/setup.py b/src/setup.py new file mode 100644 index 0000000..4666c36 --- /dev/null +++ b/src/setup.py @@ -0,0 +1,15 @@ +#!/usr/bin/python3 +# vim: shiftwidth=4 tabstop=4 expandtab + + +from distutils.core import setup + + +setup(name="xbackup", + version="0.0.1", + description="Convenience wrapper around the Borg backup tool", + author="xengineering", + author_email="me@xengineering.eu", + url="https://xengineering.eu", + packages=["xbackup"], +) -- cgit v1.2.3-70-g09d2