Skip to content

Commit

Permalink
Add __main__.py to enable python -m pypinfo (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Feb 24, 2024
1 parent 792a4ef commit 7a1c53c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ branch = True
omit =
pypinfo/cli.py
pypinfo/keygen.py
pypinfo/__main__.py

[report]
exclude_lines =
pragma: no cover
exclude_also =
if __name__ == .__main__.:
4 changes: 4 additions & 0 deletions pypinfo/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from pypinfo import cli

if __name__ == "__main__":
cli.pypinfo()

2 comments on commit 7a1c53c

@jaraco
Copy link

@jaraco jaraco commented on 7a1c53c Aug 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want this feature. Any chance you'll cut a release with it?

@hugovk
Copy link
Collaborator Author

@hugovk hugovk commented on 7a1c53c Aug 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's about time for a release, see #162

Please sign in to comment.