refactor invocation

This commit is contained in:
Matt Behrens 2018-04-02 21:15:42 -04:00
parent 62978504c1
commit 475b8425a0
3 changed files with 10 additions and 5 deletions

View file

@ -0,0 +1,2 @@
from fediplay.cli import cli

View file

@ -1,5 +1,6 @@
'''Hook for running fediplay module as a script.'''
from fediplay.main import main
from fediplay.cli import cli
cli()
main()

View file

@ -2,17 +2,19 @@ from setuptools import setup
setup(
name='fediplay',
version='0.1',
version='2.0',
py_modules=['fediplay'],
install_requires=[
'Mastodon.py',
'click',
'cssselect',
'lxml',
'Mastodon.py',
'python-dotenv',
'youtube-dl'
],
entry_points={
'console_scripts': [
'fediplay = fediplay.cli:cli'
'fediplay = fediplay:cli'
]
}
)