From c8edef5a996da11b1629905d0c37c4b223bcf690 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Tue, 9 Apr 2024 02:33:53 +0300 Subject: __main__.py for python -m compatibility --- pyproject.toml | 6 ++---- src/sliceitoff/__main__.py | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 src/sliceitoff/__main__.py diff --git a/pyproject.toml b/pyproject.toml index 1ce463f..65bbbe3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,11 @@ [tool.poetry] name = "sliceitoff" -version = "0.3-beta.1" +version = "0.3-beta.3" description = "Arcade game where one slices play area off avoiding enemies." repository = "https://git.hix.fi/sliceitoff.git/" authors = ["Viljami Ilola <+@hix.fi>"] readme = "README.txt" -packages = [ - {include = "sliceitoff", from = "src"}, -] +packages = [{include = "sliceitoff", from = "src"}] [tool.poetry.dependencies] python = "^3.10" diff --git a/src/sliceitoff/__main__.py b/src/sliceitoff/__main__.py new file mode 100644 index 0000000..c50fa05 --- /dev/null +++ b/src/sliceitoff/__main__.py @@ -0,0 +1,4 @@ +""" __main__ - if package is run as module this is launched """ +from sliceitoff.main import main + +main() -- cgit v1.2.3