-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (133 loc) · 4.05 KB
/
pyproject.toml
File metadata and controls
151 lines (133 loc) · 4.05 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[project]
name = "zint-bindings"
version = "1.2.2"
authors = [
{ name = "Anna Zhukova" }
]
description = "A barcode encoding library supporting over 50 symbologies."
readme = "README.md"
keywords = [
"QR", "qrcode", "datamatrix", "barcode", "generator", "gs1", "code128", "aztec", "pdf417", "ean", "code93",
"maxicode", "microqr", "rmqr"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Communications",
"Topic :: Multimedia :: Graphics",
]
requires-python = ">=3.9"
dependencies = []
[project.urls]
Documentation = "https://zint-bindings.readthedocs.io/"
Repository = "https://github.com/bindreams/zint-bindings"
Issues = "https://github.com/bindreams/zint-bindings/issues"
[project.optional-dependencies]
test = [
"pytest >= 7",
"pytest-sugar",
"mypy; platform_python_implementation == 'CPython'" # For commandline utility "stubtest"
]
docs = [
"sphinx",
"myst-parser",
"furo",
"sphinx-design",
"sphinx-copybutton",
"sphinx_substitution_extensions",
]
[dependency-groups]
dist = [
"build",
"cibuildwheel == 3.3.1",
]
[build-system]
requires = [
"scikit-build-core >= 0.11.6",
"pybind11 == 3.0.1",
"pip >= 24", # For installing script dependencies
# Requirements from src/zint/scripts/generate-stub.requirements.txt
"pybind11-stubgen == 2.5.5",
"typing-extensions >= 4.6",
"yapf",
]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
cmake.args = ["-GNinja"]
build.targets = ["zint_bindings"]
install.components = ["zint_bindings"]
cmake.version = ">=3.28,<4"
ninja.version = ">=1.11"
ninja.make-fallback = false
sdist.cmake = true # CMake required for generated files
sdist.exclude = [
# Included in repo for visibility, but generated at compile time
"src/generated",
# Development and CI
".github",
".editorconfig",
".clang-format",
".devcontainer",
"CMakePresets.json",
"scripts/build.sh",
"scripts/install.sh",
# Tests and docs
"tests",
"docs",
# Git files
".gitattributes",
".gitignore",
]
[tool.cibuildwheel]
enable = [
"cpython-prerelease",
"pypy",
]
skip = [
"*linux_i686*",
"*linux_ppc64le*",
"*linux_s390x*",
"*-win32",
]
environment = {CMAKE_GENERATOR="Ninja"} # Force Ninja even on Windows
# Hardcode manylinux2014 as the target because tool.cibuildwheel.linux uses yum to install packages.
manylinux-x86_64-image = "manylinux2014"
manylinux-aarch64-image = "manylinux2014"
manylinux-pypy_x86_64-image = "manylinux2014"
manylinux-pypy_aarch64-image = "manylinux2014"
musllinux-x86_64-image = "musllinux_1_2"
musllinux-aarch64-image = "musllinux_1_2"
test-extras = "test" # Install [test] optional requirements
test-command = "pytest {project}"
[tool.cibuildwheel.linux]
before-all = "yum install -y curl zip unzip tar" # For bootstrapping vcpkg
[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-all = "apk add build-base cmake ninja zip unzip curl git"
environment = {VCPKG_FORCE_SYSTEM_BINARIES="1"}
[tool.pytest.ini_options]
minversion = "7.0"
addopts = ["--doctest-glob=README.md"]
doctest_optionflags = "ELLIPSIS"
[tool.pylint.'MESSAGES CONTROL']
disable = "missing-function-docstring, too-many-arguments, too-many-locals"
max-line-length = 120
[tool.yapf]
based_on_style = "pep8"
column_limit = 120
each_dict_entry_on_separate_line = false
dedent_closing_brackets = true
coalesce_brackets = true