Skip to content

Commit

Permalink
Add __main__, allowing for invocation under runpy (python -m). Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed May 21, 2018
1 parent 04d1976 commit 6b3e6e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/towncrier/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import towncrier


__name__ == '__main__' and towncrier._main()
1 change: 1 addition & 0 deletions src/towncrier/newsfragments/115.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow for invocation under runpy. Invoke with `python -m towncrier`.

0 comments on commit 6b3e6e3

Please sign in to comment.