Use __main__.py for as cli tool entrypoint
This commit is contained in:
parent
8597e44d3b
commit
a06a9c4bb8
@ -1,2 +1,2 @@
|
|||||||
from .identicon import Identicon
|
from .identicon import Identicon
|
||||||
|
from .stream import get_deterministic_stream, ClosableStream
|
||||||
|
@ -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
|
2
setup.py
2
setup.py
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user