Skip to content

Commit e79e538

Browse files
author
iamsajjad
committed
add cli/cLI to setup.py to be installed with the package
1 parent 17a629e commit e79e538

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

cli/__init__.py

Whitespace-only changes.

cli/cLI.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,3 @@ def cLI(start, end, threads, log):
4242
click.echo("Time take to Done : {}".format(timeToDone))
4343
click.echo("")
4444

45-
if __name__ == "__main__":
46-
cLI()
47-

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@
1515
license='Apache License 2.0',
1616
url="https://github.com/sajjadlab/quickping.git",
1717
packages=setuptools.find_packages(),
18+
install_requires=[
19+
'Click',
20+
],
1821
classifiers=[
1922
"Programming Language :: Python :: 3",
2023
"License :: OSI Approved :: Apache Software License",
2124
"Operating System :: OS Independent",
2225
],
26+
entry_points='''
27+
[console_scripts]
28+
quickping=cli.cLI:cLI
29+
''',
2330
python_requires='>=3.6',
2431
)
2532

0 commit comments

Comments
 (0)