From 8b36f8aae8f9297de8eb7d8fb9b64d7d68abe31c Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Mon, 20 Feb 2017 21:42:08 +0000 Subject: [PATCH] Package the self-test script as an entrypoint Move the self-test script into the Python package and define an entrypoint for it in setup.cfg so a `mudpy_selftest` executable will be installed. --- .gitignore | 3 ++- bin/test => mudpy/tests/selftest.py | 0 setup.cfg | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) rename bin/test => mudpy/tests/selftest.py (100%) mode change 100755 => 100644 diff --git a/.gitignore b/.gitignore index e833e8d..8f15c08 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# Copyright (c) 2014-2016 Jeremy Stanley . Permission +# Copyright (c) 2014-2017 Jeremy Stanley . Permission # to use, copy, modify, and distribute this software is granted under # terms provided in the LICENSE file distributed with this software. @@ -8,5 +8,6 @@ capture_*.log data/ mudpy/__pycache__/ +mudpy/tests/__pycache__/ test_config.yaml var/ diff --git a/bin/test b/mudpy/tests/selftest.py old mode 100755 new mode 100644 similarity index 100% rename from bin/test rename to mudpy/tests/selftest.py diff --git a/setup.cfg b/setup.cfg index d87ca9b..6a177bc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,4 @@ -# Copyright (c) 2016 Jeremy Stanley . Permission +# Copyright (c) 2016-2017 Jeremy Stanley . Permission # to use, copy, modify, and distribute this software is granted under # terms provided in the LICENSE file distributed with this software. @@ -36,3 +36,4 @@ packages = [entry_points] console_scripts = mudpy = mudpy.daemon:main + mudpy_selftest = mudpy.tests.selftest:main -- 2.11.0