diff --git a/setup.cfg b/setup.cfg index 22754de..d11498d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,8 @@ [metadata] -description-file=README.md -license_file=LICENSE \ No newline at end of file +description_file=README.md +license_file=LICENSE + +[flake8] +max-line-length = 100 +extend-ignore = + E203 # https://github.com/psf/black/blob/master/docs/the_black_code_style.md#slices diff --git a/setup.py b/setup.py index 9a5a864..a17e58c 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup( name="daily-event-logger", - version="0.0.3", + version="0.0.7", license="GPL-3.0", author="Jeffrey Serio", author_email="hyperreal@fedoraproject.org", @@ -17,7 +17,7 @@ setup( ], entry_points={ "console_scripts": [ - "elog = elog", + "elog = elog.elog:main", ] }, ) \ No newline at end of file diff --git a/src/elog/elog/elog.py b/src/elog/elog.py similarity index 99% rename from src/elog/elog/elog.py rename to src/elog/elog.py index 2506c43..3f6acb7 100755 --- a/src/elog/elog/elog.py +++ b/src/elog/elog.py @@ -15,7 +15,7 @@ from rich.traceback import install install(show_locals=True) -VERSION = "0.0.2" +VERSION = "0.0.7" default_date = dt.date.today().strftime("%Y-%m-%d") ELOG_DIR = os.getenv("ELOG_DIR") @@ -309,7 +309,7 @@ search_parser.add_argument( search_parser.set_defaults(func=elog_search) -if __name__ == "__main__": +def main(): if len(sys.argv) < 2: parser.print_usage() else: diff --git a/src/elog/elog/__init__.py b/src/elog/elog/__init__.py deleted file mode 100644 index e69de29..0000000