Skip to content

Commit 175eaea

Browse files
committed
patched setup file
1 parent 022d9b9 commit 175eaea

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

html2excel/__main__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import sys
22
from html2excel import ExcelParser
33

4-
5-
if __name__ == "__main__":
4+
def run():
65
if len(sys.argv) == 3:
76
file_path = sys.argv[1]
87
save_path = sys.argv[2]
@@ -12,4 +11,7 @@
1211
# First argument for file name, we'll ignore that
1312
print("Expected 2 arguments. Got {num}".format(num=len(sys.argv)-1))
1413

14+
if __name__ == "__main__":
15+
run()
16+
1517
# TODO: handle exceptions

setup.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@
55

66
setup(
77
name = "html2excel",
8-
version = "0.0.2",
8+
version = "0.0.4",
99
author = "Neema Tsering",
1010
author_email = "ntvirus333@gmail.com",
1111
description = ("Convert HTML Table to Excel file"),
1212
long_description = readme,
1313
long_description_content_type = "text/markdown",
1414
install_requires = ['bs4', 'openpyxl'],
1515
license = "MIT",
16-
packages = ["html2excel"],
17-
entry_points = {
18-
"console_scripts": [
19-
"html2excel = __main__:main"
20-
]
21-
}
16+
packages = find_packages(),
2217
)

0 commit comments

Comments
 (0)