forked from KxSystems/pykx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
248 lines (231 loc) · 7.33 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
[project]
name = "pykx"
description = "An interface between Python and q"
readme = "README.md"
requires-python = ">=3.7"
license = { file = "LICENSE.txt" }
authors = [
{ name = "KX", email = "pykx@kx.com" },
]
keywords = ["pykx", "q", "kx", "database", "ffi"] # max of 5 keywords
dynamic=['version']
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Other Environment",
"Framework :: Flake8",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Information Technology",
"Intended Audience :: Manufacturing",
"Intended Audience :: Other Audience",
"Intended Audience :: Science/Research",
"Intended Audience :: Telecommunications Industry",
"License :: Other/Proprietary License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: C",
"Programming Language :: Cython",
"Programming Language :: Other",
"Programming Language :: Other Scripting Engines",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
# "Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Database",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Database :: Front-Ends",
"Topic :: Software Development",
"Topic :: Software Development :: Interpreters",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
dependencies = [
"numpy~=1.20; python_version=='3.7'",
"numpy~=1.22; python_version=='3.8'",
"numpy~=1.22; python_version=='3.9'",
"numpy~=1.22; python_version=='3.10'",
"numpy~=1.23; python_version>='3.11'",
"pandas>=1.2, < 2.2.0",
"pytz>=2022.1",
"toml~=0.10.2",
]
[project.optional-dependencies]
doc = [
"black==22.1.0", # Used by mkdocstrings to format function signatures
"griffe==0.14.0", # Force-install a newer version of griffe (mkdocstrings backend/dep) to get a required bugfix
"jupyter==1.0.0",
"mkdocs~=1.5.0",
"markdown==3.3.7",
"markdown-grid-tables==0.0.1",
"mkdocs-autorefs==0.4.1",
"mkdocs-click==0.5.0",
"mkdocs-exclude==1.0.2",
"mkdocs-jupyter~=0.24",
"mkdocs-material~=9.4.5",
"mkdocs-render-swagger-plugin==0.0.3",
"mkdocs-spellcheck==0.2.0",
"mkdocstrings[python]==0.18.0",
"pygments~=2.12",
"pymdown-extensions>=9.3",
]
debug = [
"find-libpython~=0.2",
]
lint = [
"flake8==4.0.1",
"flake8-bugbear==22.1.11",
"flake8-colors==0.1.9",
"flake8-docstrings==1.6.0",
"flake8-import-order==0.18.1",
"pep8-naming==0.12.1",
"pyproject-flake8==0.0.1a2",
]
pyarrow = [
# TODO: Fix pyarrow version 10.0 support
# TODO: Fix pyarrow support for python 3.11
"pyarrow>=3.0.0, <10.0.0; python_version!='3.11'",
]
dashboards = [
"ast2json~=0.3",
]
beta = [
"dill>=0.2.0",
]
test = [
"coverage[toml]==6.3.2",
"Cython~=3.0.0",
"plotly==5.10.0",
"pytest==7.1.2",
"pytest-asyncio==0.18.3",
"pytest-benchmark==3.4.1",
"pytest-cov==3.0.0",
"pytest-monitor==1.6.5; sys_platform!='darwin'",
"pytest-randomly==3.11.0",
"pytest-xdist==2.5.0",
"pytest-order==1.1.0",
"psutil==5.9.5",
"pytest-timeout>=2.0.0"
]
[project.urls]
homepage = "https://code.kx.com/pykx"
documentation = "https://code.kx.com/pykx"
repository = "https://code.kx.com/pykx"
changelog = "https://code.kx.com/pykx/changelog.html"
[build-system]
requires = [
"Cython~=3.0.0",
"numpy~=1.20.0; python_version=='3.7'", # Use numpy version 1.20.x for building the python 3.7 wheel
"numpy~=1.22, <1.23; python_version=='3.8'", # Use the highest patch version of numpy 1.22.x, this will still support a user using numpy version 1.22.0
"numpy~=1.22, <1.23; python_version=='3.9'", # Use the highest patch version of numpy 1.22.x, this will still support a user using numpy version 1.22.0
"numpy~=1.22, <1.23; python_version=='3.10'", # Use the highest patch version of numpy 1.22.x, this will still support a user using numpy version 1.22.0
"numpy~=1.23.2, <1.24; python_version=='3.11'",
"setuptools==60.9.3",
"setuptools-scm[toml]~=6.0.1",
"tomli>=2.0.1",
"wheel>=0.36.2",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/pykx/_version.py"
[tool.pytest.ini_options]
testpaths = [ 'tests' ]
filterwarnings = [
"ignore:Coverage disabled via --no-cov switch!:pytest.PytestWarning:pytest_cov.plugin",
"ignore:No data was collected",
"ignore:Module pykx was never imported",
]
markers = [
"embedded",
"ipc",
"isolate",
"large",
"licensed",
"unlicensed",
"nep49",
"pandas_api",
]
asyncio_mode = "strict"
[tool.flake8]
filename = "*.py,*.pyx,*.pxd"
exclude = [
".git",
"build",
"dist",
"*.pyc",
".eggs",
"*.egg",
"*.egg-info",
".cache",
".eggs",
".venv*",
"venv*",
"tmp",
"doc",
"site-package",
"docs/internal",
"vcpkg",
"tests/win_tests/*",
"scripts/*",
"_version.py",
]
show-source = "True"
max-complexity = 10
max-line-length = 100
import-order-style = "appnexus"
format = "${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s"
select = "C,E,F,I,W,B,B901,B902,B903"
per-file-ignores = [
"__init__.py:F401,F403" # Allow unused and * imports in __init__ files; this lets us expose definitions
]
ignore = [
"C901", # function is too complex
"D107", # missing docstring in __init__
"E124", # closing bracket does not match visual indentation; Google's Python style guide is incompatible with this
"E225", # missing whitespace around operator (It thinks the * used for pointers is an operator)
"E226", # missing whitespace around arithmetic operator (It thinks the * used for pointers is an operator)
"E227", # missing whitespace around bitwise operator (It thinks the < and > used for casting are operators)
"E241", # multiple spaces after ':'
"E261", # two spaces before inline comment
"E402", # module level import not at top of file (We use the `I` codes for import order related issues)
"E999", # syntax error (Cython syntax is not valid Python syntax)
"I100", # import statements are in the wrong order
"I202", # additional newline in a group of imports (We use three 3: built-in, third-party, local)
"W503", # depracated warning - goes against PEP8
]
[tool.coverage.run]
plugins = [ "Cython.Coverage" ]
concurrency = [ "multiprocessing" ]
parallel = true
branch = true
relative_files = true
data_file = "coverage/.coverage"
source = [ "pykx" ]
omit = [
"*.pxd",
"parse_tests.py",
"**/nbextension.py",
]
[tool.coverage.report]
show_missing = true
skip_covered = false
precision = 2
exclude_lines = [
"nocov",
"if TYPE_CHECKING:",
]
[tool.pyright]
include = ["src"]
exclude = [
"**/__pycache__",
]
reportMissingImports = false
reportMissingTypeStubs = false
reportGeneralTypeIssues = "warning"