From b3fa52c8cb4a328e7ad3d6a3a99149e2e4ad06c9 Mon Sep 17 00:00:00 2001 From: Ilya Date: Wed, 28 Feb 2024 17:10:58 +0300 Subject: [PATCH] Stable cli interface after installing --- pyproject.toml | 4 ++-- tvms/__init__.py | 6 ------ tvms/__main__.py | 6 ++++++ 3 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 tvms/__main__.py diff --git a/pyproject.toml b/pyproject.toml index e34bb90..f99966f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0"] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" [project] name = "tvms" diff --git a/tvms/__init__.py b/tvms/__init__.py index 378113f..77bb899 100755 --- a/tvms/__init__.py +++ b/tvms/__init__.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - import random import os @@ -54,7 +52,3 @@ def random_table(rtype, seed, prec, min, max, cols, docx, py, count): n += 1 document.save(docx) - - -if __name__ == '__main__': - cli() diff --git a/tvms/__main__.py b/tvms/__main__.py new file mode 100644 index 0000000..762b92d --- /dev/null +++ b/tvms/__main__.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python3 + +from tvms import cli + +if __name__ == '__main__': + cli()