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": [