Skip to content

Commit 62caad1

Browse files
committed
Fix script packaging
Fixes #30
1 parent 84a4197 commit 62caad1

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

bna/__main__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from .cli import main as __main__
2+
3+
__all__ = ["__main__"]
4+
5+
__main__()

bin/bna renamed to bna/cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python
2-
31
import base64
42
import os
53
import sys

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ pyotp = "^2.4.0"
2323
[tool.poetry.dev-dependencies]
2424
pytest = "^6.2.1"
2525

26+
[tool.poetry.scripts]
27+
bna = "bna.cli:main"
28+
2629
[build-system]
2730
requires = ["poetry>=0.12"]
2831
build-backend = "poetry.masonry.api"

0 commit comments

Comments
 (0)