Skip to content

Commit a19dcdf

Browse files
author
Nolan Woods
committed
Add main() function for setuptools
1 parent 27f4b17 commit a19dcdf

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

biopython_convert/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33

44
from . import get_args, convert
55

6-
convert(*get_args(sys.argv[1:]))
6+
def main():
7+
convert(*get_args(sys.argv[1:]))
8+
9+
main()

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ packages =
3030
biopython_convert
3131
[entry_points]
3232
console_scripts =
33-
biopython.convert = biopython_convert
33+
biopython.convert = biopython_convert.__main__:main
3434
pbr.config.drivers =
3535
plain = pbr.cfg.driver:Plain
3636
[bdist_wheel]

0 commit comments

Comments
 (0)