From 9d59bbdfb37869eec15551c03c167a2036f2d168 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 5 Feb 2021 20:09:06 +0100 Subject: Added installation as a command (#12) --- minishell_test/__main__.py | 2 ++ minishell_test/config.py | 4 ++-- setup.cfg | 8 +++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/minishell_test/__main__.py b/minishell_test/__main__.py index 7b4b886..1728029 100755 --- a/minishell_test/__main__.py +++ b/minishell_test/__main__.py @@ -80,6 +80,8 @@ def main(argv=None): try: Suite.run_all() except KeyboardInterrupt: + pass + finally: sandbox.remove() Suite.summarize() diff --git a/minishell_test/config.py b/minishell_test/config.py index 493652c..3a787b0 100644 --- a/minishell_test/config.py +++ b/minishell_test/config.py @@ -6,7 +6,7 @@ # By: charles +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:19 by charles #+# #+# # -# Updated: 2021/01/31 04:41:29 by charles ### ########.fr # +# Updated: 2021/02/05 20:01:16 by charles ### ########.fr # # # # ############################################################################ # @@ -24,7 +24,7 @@ from typing import List BONUS = False # minishell dir path -MINISHELL_DIR = "../minishell" +MINISHELL_DIR = "." # minishell executable MINISHELL_EXEC = "minishell" diff --git a/setup.cfg b/setup.cfg index 09dbcb2..ea40615 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,14 +23,12 @@ classifiers = Operating System :: POSIX :: Linux [options] -package_dir = - = minishell_test packages = find: python_requires = >=3.6 -# [options.entry_points] -# console_scripts = -# minishell-test = minishell_test.__main__:main +[options.entry_points] +console_scripts = + minishell-test = minishell_test.__main__:main [flake8] ignore = E501,E221,W504,E241 -- cgit