From: Jeremy Stanley Date: Mon, 20 Feb 2017 21:42:08 +0000 (+0000) Subject: Package the self-test script as an entrypoint X-Git-Tag: 0.0.1~167 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=8b36f8aae8f9297de8eb7d8fb9b64d7d68abe31c;p=mudpy.git 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. --- 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