From 765d039ae9c70557db6f3ce9077babf4babb55b6 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sun, 11 Jun 2023 20:01:41 -0700 Subject: [PATCH] Unify package structure --- intake-reddit/intake_reddit/__init__.py | 0 intake-rss/intake_rss/__main__.py | 3 +++ intake-rss/intake_rss/{__init__.py => core.py} | 4 ---- intake-rss/pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 intake-reddit/intake_reddit/__init__.py create mode 100644 intake-rss/intake_rss/__main__.py rename intake-rss/intake_rss/{__init__.py => core.py} (95%) diff --git a/intake-reddit/intake_reddit/__init__.py b/intake-reddit/intake_reddit/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/intake-rss/intake_rss/__main__.py b/intake-rss/intake_rss/__main__.py new file mode 100644 index 0000000..06684aa --- /dev/null +++ b/intake-rss/intake_rss/__main__.py @@ -0,0 +1,3 @@ +import sys +from .core import main +sys.exit(main()) diff --git a/intake-rss/intake_rss/__init__.py b/intake-rss/intake_rss/core.py similarity index 95% rename from intake-rss/intake_rss/__init__.py rename to intake-rss/intake_rss/core.py index 185a96a..623cf66 100644 --- a/intake-rss/intake_rss/__init__.py +++ b/intake-rss/intake_rss/core.py @@ -47,7 +47,3 @@ def main(): item["link"] = entry_link print(json.dumps(item)) - - -if __name__ == "__main__": - sys.exit(main()) diff --git a/intake-rss/pyproject.toml b/intake-rss/pyproject.toml index e78a1ca..aa4da2e 100644 --- a/intake-rss/pyproject.toml +++ b/intake-rss/pyproject.toml @@ -3,7 +3,7 @@ name = "intake-rss" version = "0.1.0" [project.scripts] -intake-rss = "intake_rss:main" +intake-rss = "intake_rss.core:main" [tool.setuptools] packages = ["intake_rss"]