From 5595a908d883f1f3da5a14790017085002e5d3e4 Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 27 Apr 2021 00:29:42 +0200 Subject: [PATCH] Configure entry point --- .gitignore | 2 ++ PFERD/__init__.py | 10 ++-------- setup.cfg | 4 ++++ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index bd8bab9..9ee2832 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /.mypy_cache/ /.venv/ +/PFERD.egg-info/ +__pycache__/ diff --git a/PFERD/__init__.py b/PFERD/__init__.py index 059f585..b657171 100644 --- a/PFERD/__init__.py +++ b/PFERD/__init__.py @@ -1,8 +1,2 @@ -# pylint: disable=invalid-name - -""" -This module exports only what you need for a basic configuration. If you want a -more complex configuration, you need to import the other submodules manually. -""" - -from .pferd import Pferd +def main() -> None: + print("Hello world") diff --git a/setup.cfg b/setup.cfg index 6d01c03..db60477 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,3 +5,7 @@ version = 3.0.0 [options] packages = PFERD python_requires = >=3.8 + +[options.entry_points] +console_scripts = + pferd = PFERD:main