Compare commits

..

No commits in common. "173573b790643a2641fcaaac692214a813653f6c" and "8d2fc13cc81ad5f48769e5ba969e3c5696dc7a1a" have entirely different histories.

4 changed files with 7 additions and 31 deletions

4
.gitignore vendored
View File

@ -1,6 +1,4 @@
.idea/
venv/
result/
build/
*.egg-info
__pycache__

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python3
import random
import os
@ -29,9 +31,6 @@ def cli():
default="./result/table.py")
@click.option("--count", type=int, default=200)
def random_table(rtype, seed, prec, min, max, cols, docx, py, count):
os.makedirs(os.path.split(docx)[0], exist_ok=True)
os.makedirs(os.path.split(py)[0], exist_ok=True)
random.seed(seed)
rows = count // cols
@ -55,3 +54,7 @@ def random_table(rtype, seed, prec, min, max, cols, docx, py, count):
n += 1
document.save(docx)
if __name__ == '__main__':
cli()

View File

@ -1,19 +0,0 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "tvms"
version = "1.0.0"
authors = [{name="Ilya Bezrukov", email="bezrukoff888@gmail.com" }]
description = "Script collection for TVMS"
readme = "README.md"
dependencies = ["python-docx", "click"]
requires-python = ">=3.10"
[project.scripts]
tvms = "tvms:cli"
[project.urls]
"Homepage" = "https://git.ilbz.ru/brinza/tvms"
"Bug Tracker" = "https://git.ilbz.ru/brinza/tvms/issues"

View File

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