From 3dc4b91eca9b28695876695a2a0b2c39ebdfad15 Mon Sep 17 00:00:00 2001 From: Bastian Zimmermann <10774221+BastianZim@users.noreply.github.com> Date: Tue, 25 Jan 2022 23:56:55 +0300 Subject: [PATCH] Add entry_points (#52) --- bin/openai => openai/_openai_scripts.py | 0 setup.py | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) rename bin/openai => openai/_openai_scripts.py (100%) diff --git a/bin/openai b/openai/_openai_scripts.py similarity index 100% rename from bin/openai rename to openai/_openai_scripts.py diff --git a/setup.py b/setup.py index 1c468d17f0..7d50fccd3f 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._openai_scripts:main', + ], + }, packages=find_packages(exclude=["tests", "tests.*"]), package_data={ "openai": [