From 07ab3b991dfb66f55ea47c027d77aa0e8532c065 Mon Sep 17 00:00:00 2001 From: BastianZim <10774221+BastianZim@users.noreply.github.com> Date: Tue, 30 Nov 2021 20:13:02 +0100 Subject: [PATCH 1/3] Move CLI --- {bin => openai/commands}/openai | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {bin => openai/commands}/openai (100%) diff --git a/bin/openai b/openai/commands/openai similarity index 100% rename from bin/openai rename to openai/commands/openai From 4074da5d05c7fb02bb5105ef058e21c17aa20f6a Mon Sep 17 00:00:00 2001 From: BastianZim <10774221+BastianZim@users.noreply.github.com> Date: Tue, 30 Nov 2021 20:14:21 +0100 Subject: [PATCH 2/3] Use entry_points --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index deeb740c98..ed03fc4a5f 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,11 @@ ], extras_require={"dev": ["black~=21.6b0", "pytest==6.*"]}, python_requires=">=3.7.1", - scripts=["bin/openai"], + entry_points={ + 'console_scripts': [ + 'openai=openai.commands.openai:main', + ], + }, packages=find_packages(exclude=["tests", "tests.*"]), package_data={ "openai": [ From dfed1f63004923b360d78f0002a147a8561f873c Mon Sep 17 00:00:00 2001 From: BastianZim <10774221+BastianZim@users.noreply.github.com> Date: Tue, 30 Nov 2021 20:15:43 +0100 Subject: [PATCH 3/3] Create __init__.py --- openai/commands/__init__.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 openai/commands/__init__.py diff --git a/openai/commands/__init__.py b/openai/commands/__init__.py new file mode 100644 index 0000000000..e69de29bb2