Skip to content

Commit

Permalink
Merge pull request #116 from jaraco/feature/runpy
Browse files Browse the repository at this point in the history
Add __main__, allowing for invocation under runpy (python -m). Fixes #115.
  • Loading branch information
hawkowl committed Jun 12, 2018
2 parents 04d1976 + 6b3e6e3 commit 7130ead
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 7130ead

Please sign in to comment.