-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (125 loc) · 4.53 KB
/
Copy pathpyproject.toml
File metadata and controls
138 lines (125 loc) · 4.53 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
135
136
137
138
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "convilyn-author"
dynamic = ["version"]
description = "Build tool servers + workflow specs for the Convilyn AI platform"
readme = "docs/README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.10"
authors = [
{ name = "Convilyn", email = "sdk@convilyn.corenovus.com" },
]
keywords = [
"convilyn",
"ai",
"mcp",
"workflow",
"author",
"tool-server",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"pydantic>=2.0.0,<3.0.0",
"httpx>=0.25.0,<1.0.0",
"click>=8.0.0,<9.0.0",
"uvicorn>=0.24.0,<1.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"ruff==0.15.6",
]
[project.urls]
Homepage = "https://convilyn.corenovus.com"
Documentation = "https://docs.convilyn.corenovus.com"
Repository = "https://github.com/CoreNovus/convilyn-author-python"
"Source Code" = "https://github.com/CoreNovus/convilyn-author-python"
Issues = "https://github.com/CoreNovus/convilyn-author-python/issues"
Changelog = "https://github.com/CoreNovus/convilyn-author-python/blob/main/CHANGELOG.md"
[project.scripts]
# Author-SDK entry point. The v1.x legacy ``convilyn`` alias was removed in
# v2.0.0 (the ``convilyn`` binary belongs to the consumer SDK).
convilyn-author = "convilyn_sdk.cli.main:cli"
[tool.hatch.version]
path = "src/convilyn_sdk/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/convilyn_sdk"]
[tool.hatch.build.targets.sdist]
# Ship CHANGELOG + tests + examples + docs in the sdist so
# source-install workflows (e.g. `pip install --no-binary :all:`) get
# the full repo surface — including the DEPLOYMENT walkthrough under
# `docs/`. The wheel intentionally stays lean: README is bundled in
# METADATA (rendered on PyPI); LICENSE is picked up via `license-files`
# per PEP 639; CHANGELOG + DEPLOYMENT ship in the sdist (below) — no
# public GitHub URL exists during the beta. AGENT.md and any
# docs/internal/* paths are explicitly excluded — they are
# agent-operating instructions, not user-facing documentation, and
# must not ship to PyPI.
include = [
"src/convilyn_sdk",
"tests",
"examples",
"docs",
"CHANGELOG.md",
"LICENSE",
"pyproject.toml",
]
exclude = [
"AGENT.md",
"docs/internal/*",
]
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
[tool.ruff.lint.per-file-ignores]
# Test fixtures use PascalCase locals when binding `patch()` to a mocked
# class object (e.g. `with patch("...") as MockClient:`). The capitalised
# name matches the class-shaped intent and is idiomatic with unittest.mock.
"tests/**/*.py" = ["N806"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
# Coverage is measured on every pytest invocation so contributors see
# the report locally without needing to remember flags. Branch coverage
# is enabled to surface uncovered conditionals, which line coverage
# hides. The 80% line-coverage gate (configured below in
# [tool.coverage.report]) is also enforced at the pytest level via
# `--cov-fail-under=80` so a failing run is visible without needing a
# separate `coverage report` step.
addopts = "--cov=src/convilyn_sdk --cov-branch --cov-report=term-missing --cov-report=xml --cov-fail-under=80"
[tool.coverage.run]
source = ["src/convilyn_sdk"]
branch = true
# Omit zero-logic modules so they don't dilute the percentage: the
# generated `_version.py` only declares __version__; the package
# `__init__.py` is re-exports only. Both are exercised by every
# import-based test indirectly.
omit = [
"src/convilyn_sdk/_version.py",
"src/convilyn_sdk/__init__.py",
]
[tool.coverage.report]
show_missing = true
skip_covered = false
# 80% line-coverage gate. The lower-covered modules — catalog,
# cli/main, testing/assertions, context, data_store, server — were
# gap-filled subsequently. Current line coverage sits well
# above the gate; the gate is a regression floor, not a target.
fail_under = 80