Skip to content

Commit

Permalink
use main
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhsingh971 committed May 21, 2020
1 parent 745ba33 commit 78773df
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion hsc/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from .crawler import Crawler
4 changes: 4 additions & 0 deletions hsc/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from hsc.crawler import main

if __name__ == "__main__":
main()
6 changes: 3 additions & 3 deletions hsc/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import requests
import getpass
import configargparse
from hsc.progress_bar import CustomProgress
from hsc.metadata import Metadata
from hsc.constants import extensions
from .progress_bar import CustomProgress
from .metadata import Metadata
from .constants import extensions


class Crawler:
Expand Down
5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,5 @@
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
entry_points={
'console_scripts': [
'hsc=hsc.crawler:main',
],
},
install_requires=['progress', 'requests', 'configargparse']
)

0 comments on commit 78773df

Please sign in to comment.