-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
148 lines (130 loc) · 3.83 KB
/
pyproject.toml
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
[build-system]
requires = [
"setuptools>=61.0",
'wheel',
'conan<2.0',
'uiucprescon.build @ git+https://github.com/UIUCLibrary/uiucprescon_build.git@v0.2.1'
]
build-backend = "uiucprescon.build"
[project]
name = "uiucprescon.ocr"
version = "0.1.5.dev1"
classifiers = [
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
]
readme = "README.rst"
requires-python = ">=3.9"
license = { file="LICENSE"}
description = "Image to text processing using Google Tesseract"
maintainers = [
{ name="Henry Borchers", email="hborcher@illinois.edu" }
]
authors = [
{name="University Library at The University of Illinois at Urbana Champaign: Preservation Services", email="prescons@library.illinois.edu"}
]
[project.urls]
Documentation = "https://www.library.illinois.edu/dccdocs/ocr"
Download = "https://github.com/UIUCLibrary/ocr"
[tool.setuptools]
packages = [
"uiucprescon.ocr"
]
zip-safe = false
[tool.setuptools.package-data]
"uiucprescon.ocr" = ["py.typed"]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests"
]
addopts = "--verbose"
markers = [
"integration"
]
norecursedirs = [
"features",
"build"
]
junit_logging = "all"
junit_log_passing_tests = true
junit_family="xunit2"
bdd_features_base_dir = "tests/features/"
[tool.coverage.run]
relative_files = true
branch = true
[tool.coverage.paths]
source = [
"uiucprescon/"
]
[tool.coverage.report]
exclude_lines = [
'raise NotImplementedError'
]
[tool.coverage.html]
directory = "reports/coverage"
[tool.pylint.MASTER]
init-hook="sys.path.append('.')"
[tool.cibuildwheel]
test-requires = "pytest"
test-command = "pytest {project}/tests"
manylinux-x86_64-image = "manylinux2014"
build-frontend = "build"
skip = [
"cp36-*",
"cp37-*",
"cp38-*",
"pp*",
"*-win32",
"*-musllinux*",
"*-manylinux_i686"
]
build-verbosity = 1
environment-pass = ["CONAN_COMPILER_LIBCXX", "CONAN_COMPILER_VERSION", "CONAN_USER_HOME"]
[tool.cibuildwheel.windows]
before-all = [
'pip install wheel',
'pip install -r requirements/requirements-conan.txt',
'conan profile new default --detect --force',
'conan config init',
'conan config set general.revisions_enabled=1',
'conan install ./ --build missing',
]
[tool.cibuildwheel.macos]
before-all = [
"pip3 install -r requirements/requirements-conan.txt",
'conan config init',
'conan config set general.revisions_enabled=1',
'conan profile update settings.compiler.version=$(cc -dumpfullversion -dumpversion | grep -oE "^([0-9]+(\.)?)([0-9]+?)") default',
'conan install ./ --build missing --no-import'
]
repair-wheel-command = [
"delocate-wheel --version",
"delocate-listdeps {wheel}",
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}",
]
[tool.cibuildwheel.linux]
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
environment-pass = ["CONAN_USER_HOME", "CONAN_COMPILER_VERSION"]
before-all = [
'pip3 install -r requirements/requirements-conan.txt',
'conan config init',
'conan config set general.revisions_enabled=1',
'conan profile update settings.compiler.version=$(cc -dumpfullversion -dumpversion | grep -oE "^([0-9]+(\.)?)([0-9]+?)") default',
'if [ -z \"$CONAN_COMPILER_LIBCXX\" ]; then : ; else conan profile update settings.compiler.libcxx=$CONAN_COMPILER_LIBCXX default; fi',
"conan profile show default",
"conan config get",
"conan install ./ --build missing -pr:b=default --no-import",
]
[tool.cibuildwheel.linux.environment]
PYTHONFAULTHANDLER="True"
CONAN_COMPILER_LIBCXX="libstdc++11"
#
[localbuilder]
conanfile = 'conanfile.py'
[localbuilder.win32]
conan_options = ['tesseract:shared=True']
[tool.pylint]
extension-pkg-allow-list="uiucprescon.ocr.tesseractwrap"