1- [tool .poetry ]
1+ [build-system ]
2+ requires = [" hatchling" ]
3+ build-backend = " hatchling.build"
4+
5+ [dependency-groups ]
6+ dev = [
7+ " hatch" ,
8+ " mypy" ,
9+ " ruff" ,
10+ ]
11+ example = [
12+ " fastapi" ,
13+ ]
14+ test = [
15+ " pytest" ,
16+ " pytest-asyncio" ,
17+ " pytest-cov" ,
18+ ]
19+
20+ [project ]
221name = " python-cq"
322version = " 0.0.0"
423description = " Lightweight CQRS library."
5- license = " MIT"
6- authors = [" remimd" ]
24+ license = { text = " MIT" }
725readme = " README.md"
8- repository = " https://github.com/100nm/python-cq"
26+ requires-python = " >=3.12, <4"
27+ authors = [{ name = " remimd" }]
928keywords = [" cqrs" ]
1029classifiers = [
1130 " Development Status :: 4 - Beta" ,
@@ -20,24 +39,13 @@ classifiers = [
2039 " Natural Language :: English" ,
2140 " Typing :: Typed" ,
2241]
23- packages = [{ include = " cq" }]
24-
25- [tool .poetry .dependencies ]
26- python = " >=3.12, <4"
27- pydantic = " >=2, <3"
28- python-injection = " *"
29-
30- [tool .poetry .group .dev .dependencies ]
31- mypy = " *"
32- ruff = " *"
33-
34- [tool .poetry .group .example .dependencies ]
35- fastapi = " *"
42+ dependencies = [
43+ " pydantic (>=2, <3)" ,
44+ " python-injection" ,
45+ ]
3646
37- [tool .poetry .group .test .dependencies ]
38- pytest = " *"
39- pytest-asyncio = " *"
40- pytest-cov = " *"
47+ [project .urls ]
48+ Repository = " https://github.com/100nm/python-cq"
4149
4250[tool .coverage .report ]
4351exclude_lines = [
@@ -46,6 +54,15 @@ exclude_lines = [
4654 " raise NotImplementedError" ,
4755]
4856
57+ [tool .hatch .build ]
58+ skip-excluded-dirs = true
59+
60+ [tool .hatch .build .targets .sdist ]
61+ include = [" cq" ]
62+
63+ [tool .hatch .build .targets .wheel ]
64+ packages = [" cq" ]
65+
4966[tool .mypy ]
5067check_untyped_defs = true
5168disallow_any_generics = true
@@ -70,7 +87,6 @@ asyncio_mode = "auto"
7087testpaths = " **/tests/"
7188
7289[tool .ruff ]
73- target-version = " py312"
7490line-length = 88
7591indent-width = 4
7692
@@ -84,6 +100,6 @@ line-ending = "auto"
84100extend-select = [" F" , " I" , " N" ]
85101fixable = [" ALL" ]
86102
87- [build-system ]
88- requires = [" poetry-core " ]
89- build-backend = " poetry.core.masonry.api "
103+ [tool . uv ]
104+ default-groups = [" dev " , " test " ]
105+ package = true
0 commit comments