Compare commits
No commits in common. "173573b790643a2641fcaaac692214a813653f6c" and "8d2fc13cc81ad5f48769e5ba969e3c5696dc7a1a" have entirely different histories.
173573b790
...
8d2fc13cc8
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,6 +1,4 @@
|
||||
.idea/
|
||||
venv/
|
||||
result/
|
||||
build/
|
||||
*.egg-info
|
||||
__pycache__
|
||||
|
||||
|
||||
@ -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()
|
||||
@ -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"
|
||||
@ -1,6 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from tvms import cli
|
||||
|
||||
if __name__ == '__main__':
|
||||
cli()
|
||||
Reference in New Issue
Block a user