Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (121 loc) · 4.24 KB
/
Copy pathpyproject.toml
File metadata and controls
131 lines (121 loc) · 4.24 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "ministack"
version = "1.5.21"
description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
keywords = ["aws", "localstack", "testing", "s3", "sqs", "dynamodb", "local-dev"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Testing",
"Topic :: Internet",
]
dependencies = [
"hypercorn>=0.18.0",
"pyyaml>=6.0",
"defusedxml>=0.7",
# IAM enforcement reads request/response shapes out of botocore's service
# models to map a wire request to its IAM action. Without it that lookup
# finds nothing and AUTH=true would allow what it cannot classify, so this
# is a runtime dependency rather than a dev one. Pinned to the version the
# images carry.
"botocore==1.43.106",
# Step Functions JSONata expressions (QueryLanguage: JSONata) are evaluated
# by this pure-Python port of the reference jsonata-js engine, which AWS
# documents Step Functions as implementing per the JSONata 2.0.6 spec. Pure
# Python, no transitive dependencies.
"jsonata-python>=0.7.0",
# AppSync queries are parsed, validated and executed by the reference Python
# GraphQL implementation rather than by regular expressions. Pure Python, no
# transitive dependencies. Pinned: a parser change is a behaviour change.
"graphql-core==3.2.12",
]
[project.optional-dependencies]
full = [
"duckdb>=0.10.0",
"docker>=7.0.0",
"cryptography>=41.0",
"psycopg2-binary>=2.9",
"pymysql>=1.1",
"asyncssh>=2.14",
"aws-sam-translator>=1.90",
]
# Exactly what CI installs to run the test suite — kept separate from `dev`
# (which also carries linters and type stubs) so the workflow has one name to
# install instead of an inline package list that drifts from this file.
test = [
"boto3>=1.34",
"pytest>=8.0",
"pytest-xdist>=3.6",
"duckdb>=0.10.0",
"docker>=7.0.0",
"cbor2>=5.4.0",
"cryptography>=41.0",
"psycopg2-binary>=2.9",
"pymysql>=1.1",
"aws-sam-translator>=1.90",
"websockets>=12.0",
]
dev = [
"boto3>=1.34",
"pytest>=8.0",
"pytest-xdist>=3.6",
"pytest-cov>=5.0",
"duckdb>=0.10.0",
"docker>=7.0.0",
"cryptography>=41.0",
"psycopg2-binary>=2.9",
"pymysql>=1.1",
"ruff>=0.4",
"mypy-boto3-lambda (>=1.42.85,<2.0.0)",
"asyncssh>=2.14",
"websockets>=12.0",
"aws-sam-translator>=1.90",
]
[project.urls]
Homepage = "https://github.com/ministackorg/ministack"
Repository = "https://github.com/ministackorg/ministack"
Issues = "https://github.com/ministackorg/ministack/issues"
[project.scripts]
ministack = "ministack.app:main"
[tool.setuptools.packages.find]
include = ["ministack*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "--dist=loadfile"
markers = [
"serial: tests that mutate global server state and must run alone",
"data_plane: tests that require live Docker-backed service behavior",
]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = [
"E501", # line too long — XML templates and service tables make this impractical
"E402", # module import not at top — intentional lazy imports in service files
"F811", # redefined while unused — needs manual review
"F841", # unused variable — needs manual review
"E741", # ambiguous variable name — too noisy for emulator code
"F601", # multi-value repeated key — needs manual review
]
[tool.ruff.lint.per-file-ignores]
"ministack/services/dynamodb.py" = ["E701", "E702"] # compact tokenizer style is intentional
"ministack/services/lambda_svc.py" = ["E701", "E702"] # compact tokenizer style is intentional
[tool.coverage.run]
source = ["ministack"]
omit = ["tests/*"]