Skip to content

Commit

Permalink
Add support to run this package as a module
Browse files Browse the repository at this point in the history
Also use the long form of -e in requirements-test.txt.
  • Loading branch information
mcdonnnj committed Sep 28, 2020
1 parent a5378b0 commit 5d92f68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--editable .[test]
--requirement requirements.txt
-e .[test]
5 changes: 5 additions & 0 deletions src/example/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Code to run if this package is used as a Python module."""

from .example import main

main()

0 comments on commit 5d92f68

Please sign in to comment.