-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (121 loc) · 3.72 KB
/
pyproject.toml
File metadata and controls
134 lines (121 loc) · 3.72 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[project]
name = "iscc-core"
version = "1.3.0"
description = "ISCC - Core Algorithms"
authors = [{ name = "Titusz", email = "tp@iscc.io" }]
requires-python = ">=3.9,<4.0"
readme = "README.md"
license = "Apache-2.0"
keywords = [
"iscc",
"identifier",
"media",
"hash",
"similarity",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Cython",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Multimedia",
"Topic :: Multimedia :: Graphics",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Multimedia :: Video",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Indexing",
"Programming Language :: Python :: 3",
]
dependencies = [
"blake3",
"xxhash",
"more-itertools",
"pybase64",
"pydantic",
"python-dotenv",
"uvarint",
"loguru",
"base58",
"data-url>=1.1.0",
"jcs",
"bitarray",
]
[project.urls]
Homepage = "https://iscc.codes"
Repository = "https://github.com/iscc/iscc-core"
Documentation = "https://core.iscc.codes/"
Changelog = "https://core.iscc.codes/changelog"
Coverage = "https://app.codecov.io/gh/iscc/iscc-core"
"Bug Tracker" = "https://github.com/iscc/iscc-core/issues"
Twitter = "https://twitter.com/iscc_foundation"
Donate = "https://iscc.foundation/support"
[dependency-groups]
test = [
"pytest",
"coverage",
"pytest-cov",
]
dev = [
"poethepoet",
"black",
"ruff",
"bandit",
]
benchmark = [
"psutil",
"py-cpuinfo",
]
docs = [
"mkdocs-material",
"mkdocstrings-python",
"mdformat",
"mdformat_admon",
"mdformat_tables",
]
[tool.uv]
default-groups = "all"
[build-system]
requires = ["setuptools>=77", "Cython>=3"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["iscc_core*"]
[tool.setuptools.package-data]
iscc_core = ["*.json"]
[tool.black]
line-length = 100
preview = true
enable-unstable-feature = ["string_processing"]
target-version = ['py39']
[tool.coverage.report]
show_missing = true
[tool.poe.tasks]
gentests = { cmd = "python -m tests.build_test_data", help = "Generate conformance test data" }
format = { cmd = "black .", help = "Code style formatting with black" }
docs = { script = "tests.build_docs:main", help = "Copy README.md to /docs" }
format-md = { cmd = "mdformat --wrap 100 README.md", help = "Markdown formatting with mdformat" }
lf = { cmd = "python -m tools.lf", help = "Convert line endings to lf" }
test = { cmd = "pytest --cov=iscc_core --cov-fail-under=100", help = "Run tests with coverage" }
sec = { cmd = "bandit -r iscc_core -q", help = "Security check with bandit" }
all = ["gentests", "format", "docs", "format-md", "lf", "test", "sec"]
[tool.cibuildwheel]
build = "cp39-* cp310-* cp311-* cp312-* cp313-*"
skip = "*-musllinux_i686 *-manylinux_i686 *-win32"
before-build = "pip install cython>=3"
test-requires = ["pytest"]
test-command = """python -c "import iscc_core; assert iscc_core.turbo(), 'Extensions not active'; assert iscc_core.conformance_selftest(), 'Conformance failed'" && pytest {project}/tests --turbo -q"""
[tool.cibuildwheel.linux]
archs = ["x86_64"]
[tool.cibuildwheel.macos]
archs = ["arm64"]
[tool.cibuildwheel.windows]
archs = ["AMD64"]