Stable cli interface after installing

This commit is contained in:
Ilya Bezrukov 2024-02-28 17:10:58 +03:00
parent 8f8dd74c14
commit b3fa52c8cb
3 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "tvms"

View File

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

6
tvms/__main__.py Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env python3
from tvms import cli
if __name__ == '__main__':
cli()