-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
131 lines (113 loc) · 3.06 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
[build-system]
requires = ["poetry>=1.0"]
build-backend = "poetry.masonry.api"
# Default section.
# Convert dephell metainfo and dependencies from poetry to setup.py:
# $ dephell deps convert
[tool.dephell.main]
from = {format = "poetry", path = "pyproject.toml"}
to = {format = "setuppy", path = "setup.py"}
# https://dephell.readthedocs.io/cmd-project-bump.html?highlight=versioning#versioning-schemes
# zerover: means can broke anything in any release, versioning is 0.x.y
versioning = "semver"
# TODO: buggy, https://github.com/dephell/dephell/issues/484
# Make lockfile
# $ dephell deps convert --env=lock
#[tool.dephell.lock]
#from = {format = "poetry", path = "pyproject.toml"}
#to = {format = "poetrylock", path = "poetry.lock"}
# TODO: buggy, use poetry2conda for now, see README
#[tool.dephell.conda]
#from = {format = "poetry", path = "pyproject.toml"}
#to = {format = "conda", path = "environment.yml"}
[tool.poetry]
name = "birdfeeder-coinalpha"
version = "1.3.0"
description = "Helper library for CoinAlpha projects"
license = "MIT"
authors = ["Vladimir Kamarzin <[email protected]>"]
readme = "README.md"
repository = "https://github.com/coinalpha/birdfeeder"
keywords = []
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [
{ include = "birdfeeder" }
]
include = ["birdfeeder/sample_configs/redis_sentinel_config"]
[tool.poetry.dependencies]
python = "^3.8"
"ruamel.yaml" = "^0.16"
python-json-logger = "^2"
environs = "^9"
typer = ">=0.3"
pandas = "^1.1"
cachetools = "^4"
aiohttp = "^3.2"
aiorun = "^2020"
kafka-python = "^2"
pydantic = "^1.9.0"
boto3 = "^1"
aioconsole = ">=0.1.16"
[tool.poetry.dev-dependencies]
# See https://python-poetry.org/docs/dependency-specification/
poetry2conda = "^0.3"
pre-commit = "^2.2.0"
pytest = "^6"
pytest-cov = "^2.7"
pytest-mock = "^3.1.0"
pytest-asyncio = "^0.14"
pytest-aiohttp = "*"
docker = "^4"
SQLAlchemy = "^1.4"
SQLAlchemy-Utils = "^0.37"
redis = "^3.5"
PyMySQL = "^1.0.2"
mysqlclient = "^2"
[tool.poetry.scripts]
build_image = 'birdfeeder.build_image:app'
[tool.poetry2conda]
name = "birdfeeder"
[tool.poetry2conda.dependencies]
poetry2conda = { channel = "pip" }
pre-commit = { channel = "pip" }
environs = { channel = "conda-forge" }
typer = { channel = "conda-forge" }
aiorun = { channel = "conda-forge" }
kafka-python = { channel = "conda-forge" }
docker = { name = "docker-py" }
[tool.black]
line-length = 120
skip-string-normalization = true
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.mypy_cache
| \.tox
| \venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 120
[tool.pytest.ini_options]
# Directories that are not visited by pytest collector:
norecursedirs = "*.egg .eggs dist build docs .tox .git __pycache__"
# Extra options:
addopts = [
"--strict-markers",
"--doctest-modules",
"--cov=birdfeeder",
"--cov-report=term:skip-covered",
"--cov-report=html",
"--cov-branch",
"--cov-append",
]