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()