From 167505eb222cd1f41644949353cd30b70e904c9f Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Sun, 7 May 2017 20:46:17 +0200 Subject: [PATCH] Added samples --- README.md | 3 ++- setup.py | 2 +- {samples => warp/samples}/__init__.py | 0 {samples => warp/samples}/hooked.py | 0 {samples => warp/samples}/subparsertest.py | 0 {samples => warp/samples}/test.py | 0 6 files changed, 3 insertions(+), 2 deletions(-) rename {samples => warp/samples}/__init__.py (100%) rename {samples => warp/samples}/hooked.py (100%) rename {samples => warp/samples}/subparsertest.py (100%) rename {samples => warp/samples}/test.py (100%) diff --git a/README.md b/README.md index 2066d6f..db03034 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ pip install git+https://git.k-fortytwo.de/christofsteel/warp/ - ## Usage warp [-h] [--port PORT] [--host HOST] [--module] file @@ -20,4 +19,6 @@ --host HOST The host to bind to (default 0.0.0.0) --module, -m If set, loads a module instead of a file +## Sample + warp -m warp.samples.hooked diff --git a/setup.py b/setup.py index 9f51086..d22fd7d 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup( name='warp', version='0.0.1', - packages=['warp'], + packages=find_packages(), url='https://git.k-fortytwo.de/christofsteel/warp', license='MIT', author='Christoph Stahl', diff --git a/samples/__init__.py b/warp/samples/__init__.py similarity index 100% rename from samples/__init__.py rename to warp/samples/__init__.py diff --git a/samples/hooked.py b/warp/samples/hooked.py similarity index 100% rename from samples/hooked.py rename to warp/samples/hooked.py diff --git a/samples/subparsertest.py b/warp/samples/subparsertest.py similarity index 100% rename from samples/subparsertest.py rename to warp/samples/subparsertest.py diff --git a/samples/test.py b/warp/samples/test.py similarity index 100% rename from samples/test.py rename to warp/samples/test.py