From ad5421e16b4f16f26045075ad8d44f0394673314 Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Mon, 27 Apr 2020 18:14:44 +0200 Subject: [PATCH] Added setup.py --- .gitignore | 1 + Fockerfile => example/Fockerfile | 0 focker-compose.yml => example/focker-compose.yml | 0 __init__.py => focker/__init__.py | 0 compose.py => focker/compose.py | 0 focker.py => focker/focker.py | 0 image.py => focker/image.py | 0 jail.py => focker/jail.py | 0 misc.py => focker/misc.py | 0 mount.py => focker/mount.py | 0 snapshot.py => focker/snapshot.py | 0 steps.py => focker/steps.py | 0 volume.py => focker/volume.py | 0 zfs.py => focker/zfs.py | 0 requirements.txt | 1 + scripts/focker | 3 +++ setup.py | 16 ++++++++++++++++ 17 files changed, 21 insertions(+) rename Fockerfile => example/Fockerfile (100%) rename focker-compose.yml => example/focker-compose.yml (100%) rename __init__.py => focker/__init__.py (100%) rename compose.py => focker/compose.py (100%) rename focker.py => focker/focker.py (100%) rename image.py => focker/image.py (100%) rename jail.py => focker/jail.py (100%) rename misc.py => focker/misc.py (100%) rename mount.py => focker/mount.py (100%) rename snapshot.py => focker/snapshot.py (100%) rename steps.py => focker/steps.py (100%) rename volume.py => focker/volume.py (100%) rename zfs.py => focker/zfs.py (100%) create mode 100644 scripts/focker create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index bee8a64..2774e31 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ __pycache__ +/build/ diff --git a/Fockerfile b/example/Fockerfile similarity index 100% rename from Fockerfile rename to example/Fockerfile diff --git a/focker-compose.yml b/example/focker-compose.yml similarity index 100% rename from focker-compose.yml rename to example/focker-compose.yml diff --git a/__init__.py b/focker/__init__.py similarity index 100% rename from __init__.py rename to focker/__init__.py diff --git a/compose.py b/focker/compose.py similarity index 100% rename from compose.py rename to focker/compose.py diff --git a/focker.py b/focker/focker.py similarity index 100% rename from focker.py rename to focker/focker.py diff --git a/image.py b/focker/image.py similarity index 100% rename from image.py rename to focker/image.py diff --git a/jail.py b/focker/jail.py similarity index 100% rename from jail.py rename to focker/jail.py diff --git a/misc.py b/focker/misc.py similarity index 100% rename from misc.py rename to focker/misc.py diff --git a/mount.py b/focker/mount.py similarity index 100% rename from mount.py rename to focker/mount.py diff --git a/snapshot.py b/focker/snapshot.py similarity index 100% rename from snapshot.py rename to focker/snapshot.py diff --git a/steps.py b/focker/steps.py similarity index 100% rename from steps.py rename to focker/steps.py diff --git a/volume.py b/focker/volume.py similarity index 100% rename from volume.py rename to focker/volume.py diff --git a/zfs.py b/focker/zfs.py similarity index 100% rename from zfs.py rename to focker/zfs.py diff --git a/requirements.txt b/requirements.txt index 50b2ab8..53cd9d7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ tabulate jailconf +pyyaml diff --git a/scripts/focker b/scripts/focker new file mode 100644 index 0000000..504ba1a --- /dev/null +++ b/scripts/focker @@ -0,0 +1,3 @@ +#!/bin/sh + +python3 -m focker.focker "$@" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..19fdd5f --- /dev/null +++ b/setup.py @@ -0,0 +1,16 @@ +from distutils.core import setup + +setup( + name='focker', + version='0.9', + packages=['focker'], + license='The GNU General Public License v3.0', + description='Focker is a FreeBSD image orchestration tool in the vein of Docker.', + long_description='Focker is a FreeBSD image orchestration tool in the vein of Docker.', + scripts=['scripts/focker'], + install_requires=[ + "tabulate", + "jailconf", + "yaml" + ] +)