Skip to content

Commit 5d92f68

Browse files
committed
Add support to run this package as a module
Also use the long form of -e in requirements-test.txt.
1 parent a5378b0 commit 5d92f68

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1+
--editable .[test]
12
--requirement requirements.txt
2-
-e .[test]

src/example/__main__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Code to run if this package is used as a Python module."""
2+
3+
from .example import main
4+
5+
main()

0 commit comments

Comments
 (0)