Files
amq-adapter-python/pyproject.toml
T
hurui200320 45357c42a8
Unit test coverage / pytest (push) Failing after 3h11m8s
test(General): write test for pydantic serializer, fixed serialization bug
This commit write unit tests for pydantic serializer using cursor ai, and found an issue related to serialization. Originally, the code uses comma to concat string, but map and list also has comma inside. During the deserialization, split using comma will break map and list, leaving `{` with first kv pair for map, and `[` with first element with list. Instead of using concat with comma as separator, I use json to encode the object dict.
2025-05-12 16:42:34 +08:00

55 lines
1.2 KiB
TOML

[build-system]
requires = ["setuptools>=61.0", "wheel"] # Specifies build tools to use
build-backend = "setuptools.build_meta"
[project]
name = "amq_adapter"
version = "0.2.31"
description = "The Python implementation of the AMQ Adapter for CleverMicro"
readme = "README.md"
authors = [
{ name = "Stanislav Hejny", email = "stanislav.hejny@cleverthis.com" }
]
license = { text = "Apache License 2.0" }
urls = { Homepage = "https://git.cleverthis.com/clevermicro/amq-adapter-python" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
requires-python = ">=3.11"
dependencies = [
"aio-pika",
"aiohttp",
"fastapi",
"opentelemetry-api",
"opentelemetry-sdk",
"opentelemetry-exporter-otlp",
"opentelemetry-exporter-prometheus",
"opentelemetry-instrumentation-pika",
"pika",
"psutil",
"python_multipart"
]
[tool.setuptools.packages.find]
where = ["."]
include = ["amqp*"]
[tool.black]
line-length = 100
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-asyncio",
"build",
"twine",
"black",
"isort",
"flake8",
"pre-commit",
"pylint"
]