-
Notifications
You must be signed in to change notification settings - Fork 27
/
pyproject.toml
81 lines (73 loc) · 2.39 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
[tool.poetry]
name = "cognite-sdk"
version = "7.64.8"
description = "Cognite Python SDK"
readme = "README.md"
documentation = "https://cognite-sdk-python.readthedocs-hosted.com"
authors = [
"Erlend Vollset <[email protected]>",
"Håkon Treider <[email protected]>",
"Anders Albert <[email protected]>"
]
license = "Apache-2.0"
packages = [{ include="cognite", from="." }]
[tool.ruff.lint.per-file-ignores]
# let scripts use print statements
"scripts/*" = ["T201"]
[tool.poetry.dependencies]
python = "^3.10"
requests = "^2.27"
requests_oauthlib = "^1"
msal = "^1.31"
protobuf = ">=4"
pip = ">=20.0.0" # make optional once poetry doesn't auto-remove it on "simple install"
typing_extensions = ">= 4"
backports-zoneinfo = { version = ">=0.2.1", python = "<3.9" }
# Windows does not have a ANSI database and need tzdata... pyodide also needs it:
tzdata = { version = ">=2024.1", markers = "platform_system == 'Windows' or platform_system == 'Emscripten'" }
numpy = { version = ">=1.25", optional = true }
sympy = { version = "*", optional = true }
pandas = { version = ">=2.1", optional = true }
geopandas = { version = ">=0.14", optional = true }
shapely = { version = ">=1.7.0", optional = true }
pyodide-http = { version = "^0.2.1", optional = true }
graphlib-backport = { version = "^1.0.0", python = "<3.9" }
PyYAML = { version = "^6.0", optional = true }
[tool.poetry.extras]
pandas = ["pandas"]
numpy = ["numpy"]
geo = ["geopandas", "shapely"]
sympy = ["sympy"]
functions = ["pip"]
yaml = ["PyYAML"]
pyodide = ["pyodide-http", "tzdata"] # keep pyodide related dependencies outside of 'all'
all = ["numpy", "pandas", "geopandas", "shapely", "sympy", "pip", "PyYAML"]
[tool.poetry.group.dev.dependencies]
docutils = "==0.15.2"
sphinx = "^5.0.1"
sphinx-rtd-theme = ">=1.0.0"
pytest = ">=7"
pytest-cov = ">=3"
pytest-rerunfailures = ">=10"
pytest-asyncio = ">=0.23.5a0"
pytest-xdist = ">=2"
twine = ">=4.0.1"
pre-commit = "^3"
responses = "^0"
toml = "^0"
python-dotenv = "^0"
mypy = "^1"
types-urllib3 = "^1.26.16"
types-requests = "^2.28.1"
pep8-naming = "^0"
types-backports = "^0"
types-protobuf = "^4.22.0.2"
types-PyYAML = "^6"
packaging = ">=23"
IPython = ">=7.0.0" # Used in docstring examples
PyYAML = "^6.0"
pytest-icdiff = "*" # Used for better diffs in pytest
types-simplejson = "^3.19.0.20240801"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"