-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
87 lines (78 loc) · 1.99 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
[tool.poetry]
name = "cognite_replicator"
version = "1.3.2"
description = "Python package for replicating data across CDF projects. Copyright 2023 Cognite AS"
license = "Apache-2.0"
authors = [
"Even Wiik Thomassen <even.thomassen@cognite.com>",
"Nina Odegard <nina.odegard@cognite.com>",
"Sofie Haug <sofie.haug@cognite.com>",
"Torbjørn Opheim <torbjorn.opheim@cognite.com>",
"Tristan Monger <tristan.monger@cognite.com>",
"Gaetan Helness <gaetan.helness@cognite.com>"
]
readme = "README.md"
packages = [
{include = "cognite"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Natural Language :: English",
]
[tool.poetry.dependencies]
cognite-sdk = "^7.13.8"
google-cloud-logging = "^1.12"
python = "^3.11"
pyyaml = "^6.0.1"
protobuf = "^4.0.0"
[tool.poetry.dev-dependencies]
black = "^22.8"
isort = "^4.3"
pre-commit = "^1.18"
pytest = "^6.2.5"
pytest-cov = "^2.7.1"
pytest-mock = "^1.11.2"
sphinx = "^2.4.4"
sphinx-rtd-theme = "^0.4.3"
toml = "^0.10.0"
tox = "^3.14"
tox-pyenv = "^1.1"
twine = "^3.1.1"
pytz = "*"
[tool.poetry.scripts]
replicator = 'cognite.replicator.__main__:main'
[tool.isort]
line_length=120 # corresponds to -w flag
multi_line_output=3 # corresponds to -m flag
include_trailing_comma=true # corresponds to -tc flag
skip_glob = '^((?!py$).)*$' # isort all Python files
[tool.black]
line-length = 120
target-version = ['py36', 'py37', 'py38']
include = '\.pyi?$'
exclude = '''
/(
| \.git
| \.mypy_cache
| \.tox
| \.venv
| dist
)/
'''
[tool.tox]
legacy_tox_ini = '''
[tox]
isolated_build = true
envlist = py36,py37,py38
[testenv]
# install pytest in the virtualenv where commands will be executed
whitelist_externals = poetry
commands =
poetry install -v
poetry run pytest --cov-report xml:coverage.xml --cov=cognite --junitxml=test-report.xml
'''
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"