File size: 3,426 Bytes
b31f748
 
681cad2
b31f748
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8c51bed
b31f748
 
8c51bed
 
b31f748
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7a18e4f
b31f748
 
73ab668
b31f748
 
 
 
9f0dcde
0f2b045
9f0dcde
b31f748
 
73ab668
 
9f0dcde
 
 
73ab668
9f0dcde
b31f748
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[tool.poetry]
name = "iscc-sct"
version = "0.1.3"
description = "ISCC - Semantic Code Text"
authors = ["Titusz <[email protected]>"]
license = "CC-BY-NC-SA-4.0"
readme = "README.md"
homepage = "https://iscc.codes"
repository = "https://github.com/iscc/iscc-sct"
documentation = "https://github.com/iscc/iscc-sct"
keywords=["iscc", "text similarity", "cross lingual", "semantic similarity"]
classifiers=[
    "Development Status :: 4 - Beta",
    "Intended Audience :: Developers",
    "Intended Audience :: Science/Research",
    "License :: OSI Approved :: Apache Software License",
    "Natural Language :: English",
    "Operating System :: OS Independent",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Topic :: Text Processing",
    "Topic :: Text Processing :: General",
    "Topic :: Text Processing :: Indexing",
    "Topic :: Text Processing :: Linguistic",
    "Topic :: Scientific/Engineering :: Artificial Intelligence",
    "Topic :: Multimedia :: Graphics",
    "Topic :: Scientific/Engineering :: Image Recognition",
    "Topic :: Scientific/Engineering :: Information Analysis",
    "Topic :: Software Development :: Libraries :: Python Modules",
    "Topic :: Software Development :: Libraries",
    "Topic :: Software Development :: Libraries :: Python Modules",
    "Topic :: System :: Archiving",
    "Topic :: System :: Clustering",
    "Topic :: System :: Distributed Computing",
]

[tool.poetry.urls]
"Changelog" = "https://github.com/iscc/iscc-sct/blob/main/CHANGELOG.md"
"Bug Tracker" = "https://github.com/iscc/iscc-sct/issues"
"Twitter" = "https://twitter.com/iscc_foundation"
"Donate" = "https://iscc.foundation/support"

[tool.poetry.scripts]
sct = 'iscc_sct.cli:main'

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
semantic-text-splitter = "*"
onnxruntime = "*"
onnxruntime-gpu = { version = "*", optional = true }
loguru = "*"
blake3 = "*"
platformdirs = "*"
tokenizers = "*"
pydantic-settings = "*"
charset-normalizer = "*"
numpy = "<2.0.0"
pybase64 = "*"
certifi = ">=2024.07.04"
gradio = { version = "*", optional = true }
pyyaml = "*"
pydantic = "*"


[tool.poetry.extras]
gpu = ["onnxruntime-gpu"]
demo = ["gradio"]

[tool.poetry.group.test.dependencies]
pytest = "*"
coverage = "*"
pytest-cov = "*"

[tool.poetry.group.dev.dependencies]
poethepoet = "*"
ruff = "*"
mdformat-gfm = "*"
mdformat-gfm-alerts = "*"
mdformat-frontmatter = "*"

[tool.ruff]
line-length = 100

[tool.ruff.format]
line-ending = "lf"

[tool.coverage.run]
omit = ["iscc_sct/dev.py", "tests/", "iscc_sct/demo.py"]

[tool.poe.tasks]
format-code = { cmd = "ruff format", help = "Code style formating with ruff" }
format-markdown = { cmd = "mdformat --wrap 100 --end-of-line lf README.md", help = "Markdown formating with mdformat" }
format-yml = { script = "iscc_sct.dev:format_yml", help = "Format YML files"}
convert-lf = { script = "iscc_sct.dev:convert_lf", help = "Convert line endings to LF"}
test = { cmd = "pytest --cov=iscc_sct --cov-fail-under=100", help = "Run tests with coverage" }
update-dependencies = { cmd = "poetry update", help = "Update dependencies" }
all = ["format-code", "format-markdown", "format-yml", "convert-lf", "test"]
update = ["update-dependencies", "all"]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"