Skip to content

Commit 946c1e6

Browse files
author
Tom Softreck
committed
update
1 parent 519a3ff commit 946c1e6

1 file changed

Lines changed: 47 additions & 33 deletions

File tree

pyproject.toml

Lines changed: 47 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[build-system]
2-
requires = ["poetry-core>=2.0.0"]
2+
requires = ["poetry-core>=1.0.0"]
33
build-backend = "poetry.core.masonry.api"
44

5-
[project]
5+
[tool.poetry]
66
name = "dialogchain"
7-
version = "0.1.10"
7+
version = "0.1.11"
88
description = "DialogChain - A flexible and extensible dialog processing framework"
9-
authors = [
10-
{name = "DialogChain Team", email = "team@dialogchain.org"},
11-
]
9+
authors = ["Tom Sapletta <info@softreck.dev>"]
1210
readme = "README.md"
13-
requires-python = ">=3.8.1,<3.13"
14-
license = {text = "Apache-2.0"}
11+
license = "Apache-2.0"
12+
homepage = "https://github.com/dialogchain/python"
13+
repository = "https://github.com/dialogchain/python"
14+
documentation = "https://github.com/dialogchain/python"
1515
classifiers = [
1616
"Development Status :: 4 - Beta",
1717
"Intended Audience :: Developers",
@@ -21,32 +21,31 @@ classifiers = [
2121
"Programming Language :: Python :: 3.9",
2222
"Programming Language :: Python :: 3.10",
2323
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
2425
"Topic :: Software Development :: Libraries :: Python Modules",
2526
"Topic :: Communications :: Chat",
2627
"Topic :: Scientific/Engineering :: Artificial Intelligence",
2728
"Topic :: Text Processing :: Linguistic",
2829
]
29-
dependencies = [
30-
"click>=8.0.0,<9.0.0",
31-
"pyyaml>=6.0,<7.0",
32-
"python-dotenv>=1.0.0,<2.0.0",
33-
"aiohttp>=3.8.0,<4.0.0",
34-
"asyncio-mqtt>=0.13.0,<0.14.0",
35-
"grpcio>=1.50.0,<2.0.0",
36-
"grpcio-tools>=1.50.0,<2.0.0",
37-
"jinja2>=3.1.0,<4.0.0",
38-
"opencv-python>=4.7.0,<5.0.0",
39-
"numpy>=1.21.0,<2.0.0",
40-
"python-nmap>=0.7.1,<1.0.0"
41-
]
30+
packages = [{include = "dialogchain", from = "src"}]
4231

43-
[project.urls]
44-
Homepage = "https://github.com/dialogchain/python"
45-
"Bug Tracker" = "https://github.com/dialogchain/python/issues"
32+
[tool.poetry.dependencies]
33+
python = ">=3.8.1,<3.13"
34+
click = ">=8.0.0,<9.0.0"
35+
pyyaml = ">=6.0,<7.0"
36+
python-dotenv = ">=1.0.0,<2.0.0"
37+
aiohttp = ">=3.8.0,<4.0.0"
38+
asyncio-mqtt = ">=0.13.0,<0.14.0"
39+
grpcio = ">=1.50.0,<2.0.0"
40+
grpcio-tools = ">=1.50.0,<2.0.0"
41+
jinja2 = ">=3.1.0,<4.0.0"
42+
opencv-python = ">=4.7.0,<5.0.0"
43+
numpy = ">=1.21.0,<2.0.0"
44+
python-nmap = ">=0.7.1,<1.0.0"
4645

4746
[tool.poetry.group.dev.dependencies]
4847
black = "^23.0.0"
49-
flake8 = ">=6.0.0"
48+
flake8 = "^6.0.0"
5049
flake8-bugbear = "^23.7.0"
5150
isort = "^5.12.0"
5251
mypy = "^1.0.0"
@@ -58,9 +57,8 @@ pytest-asyncio = "^0.21.0"
5857
pytest-cov = "^4.0.0"
5958
pytest-mock = "^3.10.0"
6059
coverage = {extras = ["toml"], version = "^7.0.0"}
61-
codecov = "^2.1.0"
6260

63-
[project.scripts]
61+
[tool.poetry.scripts]
6462
dialogchain = "dialogchain.cli:main"
6563

6664
[tool.black]
@@ -90,6 +88,15 @@ warn_unused_ignores = true
9088
warn_no_return = true
9189
warn_unreachable = true
9290

91+
[[tool.mypy.overrides]]
92+
module = [
93+
"cv2.*",
94+
"nmap.*",
95+
"grpc.*",
96+
"asyncio_mqtt.*"
97+
]
98+
ignore_missing_imports = true
99+
93100
[[tool.mypy.overrides]]
94101
module = ["tests.*"]
95102
disallow_untyped_defs = false
@@ -99,16 +106,23 @@ testpaths = ["tests"]
99106
python_files = ["test_*.py"]
100107
python_classes = ["Test*"]
101108
python_functions = ["test_*"]
102-
addopts = "-v -s --cov=dialogchain --cov-report=term-missing"
109+
addopts = "-v --cov=src/dialogchain --cov-report=term-missing --cov-report=xml"
103110
asyncio_mode = "auto"
104111

105112
[tool.coverage.run]
106-
source = ["dialogchain"]
107-
omit = ["tests/*"]
113+
source = ["src/dialogchain"]
114+
omit = ["tests/*", "*/tests/*"]
108115

109116
[tool.coverage.report]
110117
show_missing = true
111118
fail_under = 80
112-
113-
[metadata]
114-
license_files = ["LICENSE"]
119+
exclude_lines = [
120+
"pragma: no cover",
121+
"def __repr__",
122+
"if self.debug:",
123+
"if settings.DEBUG",
124+
"raise AssertionError",
125+
"raise NotImplementedError",
126+
"if 0:",
127+
"if __name__ == .__main__.:"
128+
]

0 commit comments

Comments
 (0)