-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (95 loc) · 2.74 KB
/
pyproject.toml
File metadata and controls
111 lines (95 loc) · 2.74 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
[project]
name = "gs1grader"
dynamic = ["version"]
description = "A library for grading Data Matrix codes via GS1 QA metrics"
authors = [
{name = "Ceyeb.org", email = "info@ceyeb.org"}
]
readme = "README.md"
license = "AGPL-3.0"
license-files = ["LICENSE*"]
requires-python = ">=3.9,<3.13"
dependencies = [
"matplotlib>=3.8.2,<4.0",
"numpy>=1.26,<2.0",
"opencv-python>=4.8,<5.0",
"pylibdmtx-gs1grader>=0.1.11,<1.0"
]
keywords = ["GS1", "Data Matrix", "grading", "quality assurance"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
]
[project.urls]
Repository = "https://github.com/Ceyeborg/GS1Grader"
Documentation = "https://ceyeborg.github.io/GS1Grader"
[tool.poetry]
version = "1.0.1" # base version
[tool.poetry.group.dev.dependencies]
pytest = "^8.4.2"
pytest-cov = "^7.0.0"
flake8 = "*"
pylint = "^3.3.8"
coverage = "*"
black = "^25.9.0"
python-semantic-release = "^10.4.1"
[tool.poetry.group.documentation.dependencies]
sphinx = ">=4.0.0"
sphinx-tabs = "*"
nbsphinx = "^0.9.7"
ipykernel = "*"
pypandoc = "*"
furo = "*"
# Poetry requires `packages` to be an array of tables because it allows specifying multiple packages to include,
# each with its own configuration. Using a single table would not support this flexibility.
[[tool.poetry.packages]]
include = "gs1grader"
from = "src"
[build-system]
requires = ["poetry-core>=2.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.semantic_release]
version_variables = [
"src/gs1grader/__init__.py:__version__",
"docs/source/conf.py:release"]
version_toml = [
"pyproject.toml:tool.poetry.version"
]
upload_to_pypi = true
upload_to_release = false
build_command = "pip install poetry && poetry build"
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
output_format = "md"
mask_initial_release = false
[tool.semantic_release.changelog.environment]
block_start_string = "{%"
block_end_string = "%}"
variable_start_string = "{{"
variable_end_string = "}}"
comment_start_string = "{#"
comment_end_string = "#}"
trim_blocks = false
lstrip_blocks = false
newline_sequence = "\n"
keep_trailing_newline = false
extensions = []
autoescape = false
[tool.black]
target-version = ['py311']
line-length = 160
skip_magic_trailing_comma = true
[tool.flake8]
max-line-length = 160
[tool.pylint.'MESSAGES CONTROL']
max-line-length = 160
[tool.pytest.ini_options]
addopts = "-W ignore::DeprecationWarning"
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.coverage.run]
omit = ["tests"]