-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
157 lines (145 loc) · 4.16 KB
/
Copy pathpyproject.toml
File metadata and controls
157 lines (145 loc) · 4.16 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[build-system]
requires = ["setuptools>=61.0", "wheel", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
[project]
name = "nui-python-shared-utils"
dynamic = ["version"]
authors = [
{name = "NUI Markets", email = "develop@nuimarkets.com"},
]
description = "Shared Python utilities for AWS Lambda, CLI tools, and agents with Slack, Elasticsearch, and monitoring integrations"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Monitoring",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Environment :: Console",
"Framework :: AWS CDK",
]
keywords = ["aws", "lambda", "utilities", "slack", "elasticsearch", "monitoring", "serverless", "python", "shared"]
dependencies = [
"boto3>=1.20.0",
"pytz>=2021.3",
"click>=8.0.0",
"pyyaml>=6.0",
]
[project.optional-dependencies]
elasticsearch = ["elasticsearch>=7.17.0,<8.0.0"]
database = ["pymysql>=1.0.0", "psycopg2-binary>=2.9.0"]
slack = ["slack-sdk>=3.19.0"]
powertools = [
"aws-lambda-powertools>=3.6.0,<4.0.0",
"coloredlogs>=15.0",
]
jwt = ["rsa>=4.9"]
# Pinned to the published PyPI release (no direct-URL deps, PyPI rejects those
# on upload). Kept out of `all`: opt-in.
snowflake = [
"snowflake-sql-api>=0.1.1,<0.2.0",
]
# Anthropic (Claude) helper. anthropic[bedrock] covers both auth modes (API key
# + Bedrock IAM). Kept out of `all` (same as snowflake): the SDK is specialized
# and opt-in. Keep in sync with setup.py.
llm = ["anthropic[bedrock]>=0.45.0,<1.0.0"]
all = [
"elasticsearch>=7.17.0,<8.0.0",
"pymysql>=1.0.0",
"psycopg2-binary>=2.9.0",
"slack-sdk>=3.19.0",
"aws-lambda-powertools>=3.6.0,<4.0.0",
"coloredlogs>=15.0",
"rsa>=4.9",
]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
"moto>=4.0.0",
"black>=22.0.0",
"mypy>=0.990",
"boto3-stubs[essential]>=1.20.0",
"types-PyYAML>=6.0.0",
"types-pytz>=2021.3.0",
"twine>=4.0.0",
"build>=0.8.0",
"rsa>=4.9",
"cryptography>=41.0.0",
"snowflake-sql-api>=0.1.1,<0.2.0",
"anthropic[bedrock]>=0.45.0,<1.0.0",
]
[project.urls]
Homepage = "https://github.com/nuimarkets/nui-python-shared-utils"
"Bug Tracker" = "https://github.com/nuimarkets/nui-python-shared-utils/issues"
Documentation = "https://github.com/nuimarkets/nui-python-shared-utils/blob/main/README.md"
Source = "https://github.com/nuimarkets/nui-python-shared-utils"
[project.scripts]
slack-channel-setup = "nui_shared_utils.cli:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["nui_shared_utils*", "nui_lambda_shared_utils*"]
[tool.setuptools.package-data]
"nui_shared_utils" = ["slack_setup/*.yaml"]
[tool.black]
line-length = 120
target-version = ['py39']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.9"
warn_return_any = false
warn_unused_configs = true
ignore_missing_imports = true
strict_optional = false
no_implicit_optional = false
check_untyped_defs = false
disallow_untyped_defs = false
[tool.coverage.run]
source = ["nui_shared_utils"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/venv/*",
]
[tool.coverage.report]
precision = 2
skip_covered = false
show_missing = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.ruff]
[tool.ruff.per-file-ignores]
"tests/**/*.py" = ["S105", "S106", "TRY003"]
[tool.setuptools_scm]
# Automatically derive version from git tags
# Tag format: v1.0.1 -> version 1.0.1
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"