-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (137 loc) · 4.11 KB
/
pyproject.toml
File metadata and controls
148 lines (137 loc) · 4.11 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
[build-system]
requires = ["setuptools", "wheel"] # PEP 508 specifications.
[project]
name = "aws-sam-cli"
dynamic = ["version", "scripts"]
description = "AWS SAM CLI is a CLI tool for local development and testing of Serverless applications"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
authors = [
{ name = "Amazon Web Services", email = "aws-sam-developers@amazon.com" },
]
keywords = ["AWS", "SAM", "CLI"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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 :: Internet",
"Topic :: Software Development :: Build Tools",
"Topic :: Utilities",
]
dependencies = [
"chevron~=0.12",
"click==8.1.8",
"Flask<3.2",
"boto3[crt]==1.42.70",
"jmespath~=1.1.0",
"ruamel_yaml~=0.19.1",
"PyYAML~=6.0",
"cookiecutter>=2.6,<2.8",
"aws-sam-translator==1.108.0",
# docker minor version updates can include breaking changes. Auto update micro version only.
"docker~=7.1.0",
"dateparser~=1.3",
"requests>=2.32.5,<2.34.0",
"aws_lambda_builders==1.63.0",
"tomlkit==0.14.0",
"watchdog==4.0.2",
"rich~=14.3.3",
"pyopenssl>=25.3,<26.1",
# Pin to <4.27 until SAM-T no longer uses RefResolver
"jsonschema<4.27",
"typing_extensions>=4.4.0,<5",
# regex is not a direct dependency of SAM CLI, exclude version 2021.10.8 due to not working on M1 Mac
"regex!=2021.10.8",
"tzlocal==5.3.1",
"cfn-lint>=1.45,<1.48",
"boto3-stubs[apigateway,cloudformation,ecr,iam,lambda,s3,schemas,secretsmanager,signer,stepfunctions,sts,xray,sqs,kinesis]>=1.41.0",
"python-dotenv>=1.0,<1.3",
]
[project.optional-dependencies]
pre-dev = [
"ruff==0.15.8",
]
dev = [
"aws-sam-cli[pre-dev]",
"coverage==7.13.5",
"pytest-cov==7.1.0",
"mypy==1.19.1",
"types-pywin32==311.0.0.20260323",
"types-PyYAML==6.0.12.20250915",
"types-chevron==0.14.2.20250103",
"types-psutil==7.2.2.20260130",
"types-setuptools==82.0.0.20260210",
"types-Pygments==2.19.0.20251121",
"types-colorama==0.4.15.20250801",
"types-dateparser==1.3.0.20260323",
"types-docutils==0.22.3.20260316",
"types-jsonschema==4.26.0.20260202",
"types-pyOpenSSL==24.1.0.20240722",
"types-requests==2.32.4.20260107",
"types-urllib3==1.26.25.14",
"pytest==9.0.2",
"parameterized==0.9.0",
"pytest-xdist==3.8.0",
"pytest-forked==1.6.0",
"pytest-timeout==2.4.0",
"pytest-rerunfailures==16.1",
"pytest-metadata==3.1.1",
"pytest-json-report-wip==1.5.1",
"filelock==3.25.2",
"black==26.3.1",
"psutil==7.2.2",
"chardet<6",
]
[project.urls]
Homepage = "https://github.com/aws/aws-sam-cli"
[tool.setuptools]
packages = { find = { exclude = ["tests.*", "tests", "installer.*", "installer", "schema.*", "schema"] } }
[tool.setuptools.dynamic]
version = { attr = "samcli.__version__" }
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # Pycodestyle
"F", # Pyflakes
"PL", # pylint
"I", # isort
]
ignore = ["PLR0913", "PLC0415", "PLW1641"]
[tool.ruff.lint.pylint]
max-branches = 25
max-returns = 8
max-statements = 80
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "E501"]
"integration_uri.py" = ["E501"] # ARNs are long.
"app.py" = ["E501"] # Doc links are long.
[tool.black]
line-length = 120
target_version = ['py310', 'py311', 'py312', 'py313']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.tox
| \.venv
| dist
| pip-wheel-metadata
| samcli/lib/init/templates
| tests/integration/testdata
)/
)
'''