Use __main__.py for as cli tool entrypoint

This commit is contained in:
Kristóf Tóth 2022-02-19 13:36:27 +01:00
parent 8597e44d3b
commit a06a9c4bb8
3 changed files with 3 additions and 4 deletions

View File

@ -1,2 +1,2 @@
from .identicon import Identicon from .identicon import Identicon
from .stream import get_deterministic_stream, ClosableStream

View File

@ -6,8 +6,7 @@ from io import BytesIO
import click import click
from blake3 import blake3 from blake3 import blake3
from . import Identicon from . import Identicon, get_deterministic_stream, ClosableStream
from .stream import get_deterministic_stream, ClosableStream
DIGEST_SIZE = 20 DIGEST_SIZE = 20

View File

@ -9,7 +9,7 @@ setup(
url='https://git.strongds.hu/mrtoth/identicon', url='https://git.strongds.hu/mrtoth/identicon',
packages=['identicon'], packages=['identicon'],
entry_points={ entry_points={
'console_scripts': ['identicon=identicon.cli:main'], 'console_scripts': ['identicon=identicon.__main__:main'],
}, },
install_requires=[ install_requires=[
'blake3', 'blake3',