-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (70 loc) · 2.63 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (70 loc) · 2.63 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
[project]
name = "unstract-cli"
# One source of truth, so the release workflow bumps a single file.
dynamic = ["version"]
description = "Unified, LLM-friendly CLI for the Unstract suite of products"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "MIT"}
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
]
dependencies = [
# Pinned to a major: `--discover` describes the CLI by reading Click's own
# objects -- a parameter's default, flags, type and choices, and a group's
# commands -- so a major that reshapes those reshapes the published contract.
"click>=8.1,<9",
# Writing the config file only; reading it uses the stdlib `tomllib`.
"tomli-w>=1.0",
# Pinned exactly: the CLI derives its flags and help text from these
# clients, so one that moves changes the CLI's surface. Each release re-pins
# deliberately, against the specs vendored in `src/unstract_cli/specs`.
"unstract-client==1.7.1",
"llmwhisperer-client==2.9.1",
# Both clients pull this in, but the CLI imports its exception classes
# directly to classify a failure, so it names the dependency itself.
"requests>=2.32.3",
]
[project.urls]
Homepage = "https://unstract.com"
Documentation = "https://docs.unstract.com/unstract/unstract_platform/cli/unstract_cli/"
Repository = "https://github.com/Zipstack/unstract-cli"
Issues = "https://github.com/Zipstack/unstract-cli/issues"
Changelog = "https://github.com/Zipstack/unstract-cli/releases"
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"ruff>=0.6",
# Tests only: the workflow files are parsed in the suite so a file that
# cannot be read fails the gate rather than the first dispatch of it.
"pyyaml>=6.0",
]
[project.scripts]
unstract = "unstract_cli.__main__:main"
# An alias for anyone who has the name `unstract` taken by something else.
unstract-cli = "unstract_cli.__main__:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/unstract_cli/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/unstract_cli"]
[tool.ruff]
line-length = 90
target-version = "py312"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM"]
ignore = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]