-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
143 lines (134 loc) · 4 KB
/
Copy pathpyproject.toml
File metadata and controls
143 lines (134 loc) · 4 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
139
140
141
142
143
[build-system]
# Pinned: hatchling 1.32 emits Metadata-Version 2.5, which the twine inside
# our pinned gh-action-pypi-publish rejects ("not a valid metadata version"),
# failing the 0.8.1 upload. An unpinned build backend also makes builds
# non-reproducible. Un-pin once the publish action ships a twine that
# accepts 2.5 (v1.14.2+ is the candidate; verify before widening).
requires = ["hatchling<1.32"]
build-backend = "hatchling.build"
[project]
# Distribution name on PyPI. Note: an unrelated 2018-vintage package named
# `bcli` ("EC2 Cluster Creator") squats on that name on PyPI, so we publish
# under `bc-cli` instead. The Python import name (`import bcli`) and the
# installed CLI binary (`bcli`) are unaffected — only `pip install` /
# `uv tool install` use this name.
name = "bc-cli"
version = "0.8.2"
description = "Python SDK and CLI for Microsoft Dynamics 365 Business Central APIs"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE"]
requires-python = ">=3.11"
authors = [{ name = "Igor" }]
keywords = ["business-central", "dynamics-365", "odata", "cli", "sdk", "etl", "dlt"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Office/Business :: Financial :: Accounting",
]
dependencies = [
"httpx>=0.27",
"keyring>=25.0",
"msal>=1.28",
"pydantic>=2.0",
"pyyaml>=6.0",
"rich>=13.0",
"typer>=0.12",
"tomlkit>=0.13",
]
[project.urls]
Homepage = "https://github.com/igor-ctrl/bcli"
Repository = "https://github.com/igor-ctrl/bcli"
Issues = "https://github.com/igor-ctrl/bcli/issues"
Documentation = "https://github.com/igor-ctrl/bcli/tree/main/docs"
[project.scripts]
bcli = "bcli_cli.app:main"
bcli-mcp = "bcli_mcp:main"
[project.optional-dependencies]
# Backward-compatible no-op extra for existing install commands.
cli = []
etl = [
"dlt[parquet,filesystem,s3]>=1.0",
]
telemetry = [
"azure-monitor-opentelemetry>=1.6",
]
extract = [
"bc-cli[extract-claude]",
"bc-cli[extract-openai]",
]
extract-claude = [
"anthropic>=0.40",
"pypdf>=4.0",
]
extract-openai = [
"openai>=1.50",
"pypdf>=4.0",
]
ask = [
"bc-cli[ask-claude]",
"bc-cli[ask-openai]",
]
ask-claude = [
"anthropic>=0.40",
]
ask-openai = [
"openai>=1.50",
]
mcp = [
"mcp>=1.0",
]
polaris = [
"bc-cli[etl]",
"pyarrow>=16.0",
"pyiceberg[s3fs]>=0.7",
]
dev = [
"bc-cli[etl]",
"bc-cli[mcp]",
"bc-cli[extract]",
"bc-cli[ask]",
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-httpx>=0.30",
"ruff>=0.5",
]
[tool.hatch.build.targets.wheel]
packages = ["src/bcli", "src/bcli_cli", "src/bcli_mcp"]
[tool.hatch.build.targets.wheel.force-include]
"packs" = "bcli/packs/_builtin"
[tool.hatch.build.targets.sdist]
# Leading slashes anchor these to the project root. Without them the patterns
# match at any depth, so a nested checkout — .claude/worktrees/agent-*/ holds
# full copies of the repo — had its own docs/, src/ and tests/ swept into the
# sdist: 1350 extra files, including pre-sanitisation docs still carrying real
# tenant identifiers. The wheel was unaffected (it builds from `packages`), and
# `git ls-files` was clean, so only inspecting the built artifact caught it.
# If you add a pattern here, anchor it, then verify with:
# uv build && tar -tzf dist/bc_cli-*.tar.gz | awk -F/ 'NF>1{print $2}' | sort -u
include = [
"/src",
"/packs",
"/tests",
"/examples",
"/docs",
"/README.md",
"/LICENSE",
"/NOTICE",
"/CHANGELOG.md",
"/pyproject.toml",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.ruff]
src = ["src"]
line-length = 100