diff --git a/bin/centpkg b/bin/centpkg new file mode 100755 index 0000000..1fc128f --- /dev/null +++ b/bin/centpkg @@ -0,0 +1,8 @@ +#!/usr/bin/env python +import sys +import os +from centpkg import cli + + +if __name__ == '__main__': + cli.run(cli_name=os.path.basename(sys.argv[0])) diff --git a/setup.py b/setup.py index 415181c..68a9412 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from setuptools import setup package_dir = \ @@ -32,6 +31,7 @@ setup_kwargs = { 'install_requires': install_requires, 'entry_points': entry_points, 'python_requires': '>=3.6,<4.0', + 'scripts': ['bin/centpkg'] } diff --git a/src/bin/cenpkg b/src/bin/cenpkg deleted file mode 100755 index 1fc128f..0000000 --- a/src/bin/cenpkg +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env python -import sys -import os -from centpkg import cli - - -if __name__ == '__main__': - cli.run(cli_name=os.path.basename(sys.argv[0]))