diff options
author | xengineering <me@xengineering.eu> | 2021-09-03 10:22:49 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2021-09-03 10:22:49 +0200 |
commit | 935b009eecf02b6909a5563bae4a90c342f8d4e6 (patch) | |
tree | eb475e81be6458ea5146a7f971a45d67ae2cce83 | |
parent | ef5d76d3feb0fbc147ec84c33486438295d9bbcf (diff) | |
download | xbackup-935b009eecf02b6909a5563bae4a90c342f8d4e6.tar xbackup-935b009eecf02b6909a5563bae4a90c342f8d4e6.tar.zst xbackup-935b009eecf02b6909a5563bae4a90c342f8d4e6.zip |
Implement Python Packaging
-rw-r--r-- | src/Makefile | 14 | ||||
-rw-r--r-- | src/setup.py | 15 |
2 files changed, 29 insertions, 0 deletions
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"], +) |